rpms/hardlink/devel hardlink.c,1.5,1.6 hardlink.spec,1.17,1.18

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Nov 14 08:31:56 UTC 2005


Author: jnovy

Update of /cvs/dist/rpms/hardlink/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv11924

Modified Files:
	hardlink.c hardlink.spec 
Log Message:
mostly spec cleanup



Index: hardlink.c
===================================================================
RCS file: /cvs/dist/rpms/hardlink/devel/hardlink.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- hardlink.c	7 Nov 2005 14:07:33 -0000	1.5
+++ hardlink.c	14 Nov 2005 08:31:25 -0000	1.6
@@ -17,7 +17,8 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
   
-/*  Changes by Rémy Card to use constants and add option -n.  */
+/*  Changes by Rémy Card to use constants and add option -n.  */
+/*  Changes by Jindrich Novy to add option -h.  */
 
 #define _GNU_SOURCE
 #include <sys/types.h>


Index: hardlink.spec
===================================================================
RCS file: /cvs/dist/rpms/hardlink/devel/hardlink.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- hardlink.spec	7 Nov 2005 14:18:16 -0000	1.17
+++ hardlink.spec	14 Nov 2005 08:31:25 -0000	1.18
@@ -1,32 +1,30 @@
-Summary:        Create a tree of hardlinks.
-Name:           hardlink
-Version:        1.0
-Release: 	%(R="$Revision$"; RR="${R##: }"; echo ${RR%%?})
+Summary:	Create a tree of hardlinks
+Name:		hardlink
+Version:	1.0
+Release:	%(R="$Revision$"; RR="${R##: }"; echo ${RR%%?})
 Epoch:		1
-Group:          System Environment/Base
-License:        GPL
+Group:		System Environment/Base
+License:	GPL
 Source0:	hardlink.c
 Source1:	hardlink.1
-Buildroot:      %{_tmppath}/%{name}-%{version}-root
+Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-root
 Obsoletes:	kernel-utils
 
 %description
 hardlink is used to create a tree of hard links.
 It's used by kernel installation to dramatically reduce the
-amount of diskspace used by each kernel RPM installed.
+amount of diskspace used by each kernel package installed.
 
 %prep
-mkdir -p %{NAME}
-cp -f %{SOURCE0} %{NAME}
+%setup -c -T
 
 %build
 rm -rf $RPM_BUILD_ROOT
-gcc -Wall $RPM_OPT_FLAGS -g %{NAME}/hardlink.c -o %{NAME}/hardlink
+gcc -Wall $RPM_OPT_FLAGS -g %{SOURCE0} -o hardlink
 
 %install
-mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_mandir}/man1
-install -m444 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
-install -m555 %{NAME}/hardlink $RPM_BUILD_ROOT%{_sbindir}
+install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/hardlink.1
+install -D -m 755 hardlink $RPM_BUILD_ROOT%{_sbindir}/hardlink
 
 %clean
 [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
@@ -37,6 +35,10 @@
 %{_mandir}/man1/hardlink.1*
 
 %changelog
+* Mon Nov 14 2005 Jindrich Novy <jnovy at redhat.com>
+- more spec cleanup - thanks to Matthias Saou (#172968)
+- use UTF-8 encoding in the source
+
 * Mon Nov  7 2005 Jindrich Novy <jnovy at redhat.com>
 - add hardlink man page
 - add -h option




More information about the fedora-cvs-commits mailing list