rpms/nedit/devel nedit-5.4-makefiles.patch, 1.2, 1.3 nedit.desktop, 1.1, 1.2 nedit.spec, 1.15, 1.16

Jindrich Novy (jnovy) fedora-extras-commits at redhat.com
Fri Jan 18 14:34:43 UTC 2008


Author: jnovy

Update of /cvs/extras/rpms/nedit/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2186

Modified Files:
	nedit-5.4-makefiles.patch nedit.desktop nedit.spec 
Log Message:
minor cleanups from Patrice Dumas


nedit-5.4-makefiles.patch:

Index: nedit-5.4-makefiles.patch
===================================================================
RCS file: /cvs/extras/rpms/nedit/devel/nedit-5.4-makefiles.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- nedit-5.4-makefiles.patch	16 Dec 2005 15:33:50 -0000	1.2
+++ nedit-5.4-makefiles.patch	18 Jan 2008 14:34:35 -0000	1.3
@@ -1,5 +1,17 @@
---- nedit-5.4/makefiles/Makefile.linux.makefiles	2003-05-20 02:27:56.000000000 +0200
-+++ nedit-5.4/makefiles/Makefile.linux	2004-03-17 15:28:40.000000000 +0100
+diff -up nedit-5.5/Makefile.makefiles nedit-5.5/Makefile
+--- nedit-5.5/Makefile.makefiles	2004-09-30 22:51:05.000000000 +0200
++++ nedit-5.5/Makefile	2008-01-06 11:07:45.000000000 +0100
+@@ -29,7 +29,6 @@ all:
+ 	   then ln -s ../makefiles/Makefile.$@ .; fi)
+ 
+ 	(cd util; \
+-	    $(MAKE) -f Makefile.$@ verify_config && \
+ 	    $(MAKE) -f Makefile.$@ libNUtil.a)
+ 	(cd Xlt;    $(MAKE) -f Makefile.$@ libXlt.a)
+ 	(cd Microline/XmL;    $(MAKE) -f Makefile.$@ libXmL.a)
+diff -up nedit-5.5/makefiles/Makefile.linux.makefiles nedit-5.5/makefiles/Makefile.linux
+--- nedit-5.5/makefiles/Makefile.linux.makefiles	2003-05-20 02:27:56.000000000 +0200
++++ nedit-5.5/makefiles/Makefile.linux	2008-01-06 11:10:31.000000000 +0100
 @@ -1,5 +1,5 @@
  # $Id$
 -CC=cc
@@ -7,17 +19,17 @@
  AR=ar
  
  # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
-@@ -17,11 +17,11 @@
+@@ -17,11 +17,11 @@ AR=ar
  # To test if the Motif library exports the runtime version
  # add -DHAVE__XMVERSIONSTRING to CFLAGS
  #
 -CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
-+CFLAGS=-I/usr/X11R6/include $(RPM_OPT_FLAGS) -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DBUILD_UNTESTED_NEDIT
++CFLAGS= $(C_OPT_FLAGS) -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DBUILD_UNTESTED_NEDIT
  
  ARFLAGS=-urs
  
 -LIBS= -L/usr/X11R6/lib -Wl,-Bstatic -lXm -Wl,-Bdynamic -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -lm
-+LIBS= -lXm -lXmu -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -lm
++LIBS= $(LD_OPT_FLAGS) -lXm -lXmu -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -lm
  
  include Makefile.common
  


Index: nedit.desktop
===================================================================
RCS file: /cvs/extras/rpms/nedit/devel/nedit.desktop,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- nedit.desktop	27 Jul 2005 08:46:29 -0000	1.1
+++ nedit.desktop	18 Jan 2008 14:34:35 -0000	1.2
@@ -22,7 +22,6 @@
 Name[et]=Tekstiredaktor Nedit
 Name[ru]=NEdit
 Exec=nedit %f
-Icon=nedit-icon.png
-Path=
+Icon=nedit
 Type=Application
 Terminal=false


Index: nedit.spec
===================================================================
RCS file: /cvs/extras/rpms/nedit/devel/nedit.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- nedit.spec	30 Oct 2007 09:08:59 -0000	1.15
+++ nedit.spec	18 Jan 2008 14:34:35 -0000	1.16
@@ -1,7 +1,7 @@
 Summary: A GUI text editor for systems with X
 Name: nedit
 Version: 5.5
-Release: 15%{?dist}
+Release: 16%{?dist}
 Source: http://nedit.org/ftp/v5_5/nedit-%{version}-src.tar.bz2
 Source1: nedit.desktop
 Source2: nedit-icon.png
@@ -38,11 +38,14 @@
 %patch6 -p1 -b .visfix
 %patch7 -p1 -b .nocsh
 %patch8 -p1 -b .scroll
+for file in README doc/nedit.doc; do
+  iconv -f latin1 -t utf8 < $file > $file.utf8
+  touch -r $file $file.utf8
+  mv $file.utf8 $file
+done
 
 %build
-make linux LIB=%{_lib} << EOF
-
-EOF
+make linux C_OPT_FLAGS="$RPM_OPT_FLAGS"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -51,33 +54,41 @@
 install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
 mv source/nc source/nedit-client
 install -m 755 source/nedit source/nedit-client $RPM_BUILD_ROOT%{_bindir}
-install -m 644 doc/nedit.man $RPM_BUILD_ROOT%{_mandir}/man1/nedit.1x
+install -p -m 644 doc/nedit.man $RPM_BUILD_ROOT%{_mandir}/man1/nedit.1x
 mv doc/nc.man doc/nedit-client.man
-install -m 644 doc/nedit-client.man $RPM_BUILD_ROOT%{_mandir}/man1/nedit-client.1x
-
-mkdir -p $RPM_BUILD_ROOT/etc/X11/applnk/Applications
-install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/applnk/Applications
+install -p -m 644 doc/nedit-client.man $RPM_BUILD_ROOT%{_mandir}/man1/nedit-client.1x
 
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
-install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps
-mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/applications
-desktop-file-install --vendor fedora --delete-original \
-        --dir $RPM_BUILD_ROOT%{_prefix}/share/applications \
-        --add-category "Application;Development;X-Fedora" \
-        $RPM_BUILD_ROOT/etc/X11/applnk/Applications/nedit.desktop
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
+install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/nedit.png
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
+desktop-file-install --vendor fedora \
+        --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+        --add-category "Development;" \
+        %{SOURCE1}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+touch --no-create %{_datadir}/icons/hicolor || :
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
 %files
 %defattr(-,root,root)
 %doc doc/nedit.doc README ReleaseNotes
 %{_mandir}/*/*
 %{_bindir}/*
 %{_prefix}/share/applications/*
-%{_datadir}/pixmaps/nedit-icon.png
+%{_datadir}/icons/hicolor/
 
 %changelog
+* Sun Jan  6 2008 Patrice Dumas <pertusus at free.fr> 5.5-16
+- minor cleanups
+
 * Tue Oct 30 2007 Jindrich Novy <jnovy at redhat.com> 5.5-15
 - make mouse wheel scrolling compatible with lesstif (#354591)
 




More information about the fedora-extras-commits mailing list