SPECS: tofu.spec - more universal shebang fix (allows to keep perl args) - ...

glen glen at pld-linux.org
Tue Apr 7 23:18:51 CEST 2009


Author: glen                         Date: Tue Apr  7 21:18:51 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more universal shebang fix (allows to keep perl args)
- %{_examplesdir} gets auto %doc like %{_mandir}
- group mkdir

---- Files affected:
SPECS:
   tofu.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/tofu.spec
diff -u SPECS/tofu.spec:1.3 SPECS/tofu.spec:1.4
--- SPECS/tofu.spec:1.3	Tue Apr  7 23:14:12 2009
+++ SPECS/tofu.spec	Tue Apr  7 23:18:45 2009
@@ -23,16 +23,15 @@
 
 %prep
 %setup -q
-%{__sed} -i "1s at .*@#!%{__perl}@" tofu
+%{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' tofu
 
 %build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 install tofu $RPM_BUILD_ROOT%{_bindir}
-install share/tofu.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -a share/tofu.1 $RPM_BUILD_ROOT%{_mandir}/man1
 %{__perl} playground.pl -root=$RPM_BUILD_ROOT%{_examplesdir}/%{name} playground
 
 %clean
@@ -41,9 +40,9 @@
 %files
 %defattr(644,root,root,755)
 %doc README CHANGELOG PLAY playground.pl
-%doc %{_examplesdir}/%{name}
 %attr(755,root,root) %{_bindir}/tofu
 %{_mandir}/man1/tofu.1*
+%{_examplesdir}/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -51,6 +50,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2009/04/07 21:18:45  glen
+- more universal shebang fix (allows to keep perl args)
+- %{_examplesdir} gets auto %doc like %{_mandir}
+- group mkdir
+
 Revision 1.3  2009/04/07 21:14:12  uzsolt
 - perl-base BR
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/tofu.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list