packages: unscd/unscd.spec - simplify prep, fix build, adapterize.

pluto pluto at pld-linux.org
Wed Dec 28 12:15:03 CET 2011


Author: pluto                        Date: Wed Dec 28 11:15:03 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- simplify prep, fix build, adapterize.

---- Files affected:
packages/unscd:
   unscd.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/unscd/unscd.spec
diff -u packages/unscd/unscd.spec:1.1 packages/unscd/unscd.spec:1.2
--- packages/unscd/unscd.spec:1.1	Wed Dec 28 10:52:50 2011
+++ packages/unscd/unscd.spec	Wed Dec 28 12:14:58 2011
@@ -17,12 +17,10 @@
 
 %prep
 %setup -qcT
-cp -p %{SOURCE0} %{name}.c
-sed -ne '/Description:/,/\*\*\*/p' %{name}.c > README
+sed -ne '/Description:/,/\*\*\*/p' %{SOURCE0} > README
 
 %build
-%{__cc} -o %{name}.o %{rpmcflags} %{rpmcppflags} -Wall -Wunused-parameter -Os %{name}.c
-%{__cc} -o %{name} %{rpmldflags} -fomit-frame-pointer -Wl,--sort-section -Wl,alignment -Wl,--sort-common -Os %{name}.o
+%{__cc} -o %{name} %{rpmcflags} -Os %{rpmcppflags} %{rpmldflags} -Wall -Wunused-parameter -Wl,--sort-section -Wl,alignment -Wl,--sort-common %{SOURCE0}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -35,7 +33,7 @@
 %files
 %defattr(644,root,root,755)
 %doc README
-%{_sbindir}/%{name}
+%attr(755,root,root) %{_sbindir}/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -43,5 +41,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/12/28 11:14:58  pluto
+- simplify prep, fix build, adapterize.
+
 Revision 1.1  2011/12/28 09:52:50  glen
 - new, i'm having trouble to link it
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/unscd/unscd.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list