SPECS: ZendFramework.spec - replace bundled zf.sh with simple two-liner

adamg adamg at pld-linux.org
Mon Feb 16 20:01:43 CET 2009


Author: adamg                        Date: Mon Feb 16 19:01:43 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- replace bundled zf.sh with simple two-liner

---- Files affected:
SPECS:
   ZendFramework.spec (1.37 -> 1.38) 

---- Diffs:

================================================================
Index: SPECS/ZendFramework.spec
diff -u SPECS/ZendFramework.spec:1.37 SPECS/ZendFramework.spec:1.38
--- SPECS/ZendFramework.spec:1.37	Mon Feb 16 00:07:24 2009
+++ SPECS/ZendFramework.spec	Mon Feb 16 20:01:37 2009
@@ -1225,10 +1225,14 @@
 
 # copy Zend_Tool from incubator
 cp -a incubator/library/Zend/Tool $RPM_BUILD_ROOT%{php_pear_dir}/Zend
-cp -a incubator/bin/zf.{sh,php} $RPM_BUILD_ROOT%{php_pear_dir}/bin
+cp -a incubator/bin/zf.php $RPM_BUILD_ROOT%{php_pear_dir}/bin
 
-# create appropriate symlink
-ln -sf %{php_pear_dir}/bin/zf.sh $RPM_BUILD_ROOT%{_bindir}/zf
+# create script in bindir
+cat >> $RPM_BUILD_ROOT%{_bindir}/zf << 'EOF'
+#!/bin/sh
+cd %{php_pear_dir}/bin
+/usr/bin/php -d Safe_mode=off zf.php
+EOF
 
 ./find-lang.sh %{name}.lang
 
@@ -1560,9 +1564,8 @@
 
 %files Zend_Tool
 %defattr(644,root,root,755)
-%{_bindir}/zf
-%attr(755,root,root) %{php_pear_dir}/bin/zf.sh
-%attr(755,root,root) %{php_pear_dir}/bin/zf.php
+%attr(755,root,root) %{_bindir}/zf
+%{php_pear_dir}/bin/zf.php
 %{php_pear_dir}/Zend/Tool
 
 %files Zend_Translate
@@ -1611,6 +1614,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.38  2009/02/16 19:01:37  adamg
+- replace bundled zf.sh with simple two-liner
+
 Revision 1.37  2009/02/15 23:07:24  adamg
 - provide Zend_Tool from incubator (some files seem to be missing)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ZendFramework.spec?r1=1.37&r2=1.38&f=u



More information about the pld-cvs-commit mailing list