SOURCES: php-pear-build-macros - create _noautoreq file to help de...

glen glen at pld-linux.org
Sun Sep 18 20:31:15 CEST 2005


Author: glen                         Date: Sun Sep 18 18:31:15 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- create _noautoreq file to help developer

---- Files affected:
SOURCES:
   php-pear-build-macros (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/php-pear-build-macros
diff -u SOURCES/php-pear-build-macros:1.4 SOURCES/php-pear-build-macros:1.5
--- SOURCES/php-pear-build-macros:1.4	Sun Sep 18 16:06:20 2005
+++ SOURCES/php-pear-build-macros	Sun Sep 18 20:31:09 2005
@@ -16,7 +16,11 @@
 	%{S:%{-a*}%{!-a:0}} | tee install.log \
 # make post message of optional packages \
 grep 'can optionally use package' install.log | sed -e 's,pear/,php-pear-,g' > optional-packages.txt \
-test -s optional-packages.txt || rm -f optional-packages.txt \
+if [ -s optional-packages.txt ]; then \
+	awk -F'"' '{print $2}' optional-packages.txt | sed -e "s,php-pear-, 'pear(,;s,$,/*)'," | tr -d '\\\n' > _noautoreq \
+else \
+	rm -f optional-packages.txt \
+fi \
 rm ./%{php_pear_dir}/.{lock,filemap} \
 # undos sources \
 find . -type f -print0 | xargs -0 sed -i -e 's,\\r$,,' \
@@ -27,6 +31,11 @@
  
 %define	pear_package_install() \
 cp -a ./%{php_pear_dir}/{.registry,*} $RPM_BUILD_ROOT%{php_pear_dir} \
+# help the developer out a little: \
+if [ -f _noautoreq ]; then \
+	echo "AutoReqdep detected:" \
+	echo "_noautoreq $(cat _noautoreq)" \
+fi \
 %{nil}
 
 # displayed in post
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/php-pear-build-macros?r1=1.4&r2=1.5&f=u




More information about the pld-cvs-commit mailing list