packages: php-pear/php-pear.spec - add all channel xmls

glen glen at pld-linux.org
Fri Oct 29 11:08:36 CEST 2010


Author: glen                         Date: Fri Oct 29 09:08:36 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add all channel xmls

---- Files affected:
packages/php-pear:
   php-pear.spec (1.65 -> 1.66) 

---- Diffs:

================================================================
Index: packages/php-pear/php-pear.spec
diff -u packages/php-pear/php-pear.spec:1.65 packages/php-pear/php-pear.spec:1.66
--- packages/php-pear/php-pear.spec:1.65	Fri Oct 29 11:04:51 2010
+++ packages/php-pear/php-pear.spec	Fri Oct 29 11:08:31 2010
@@ -64,16 +64,9 @@
 
 # add extra channels
 %{__pear} -c pearrc config-set php_dir $RPM_BUILD_ROOT%{php_pear_dir}
-%{__pear} -c pearrc channel-add %{SOURCE1}
-%{__pear} -c pearrc channel-add %{SOURCE2}
-%{__pear} -c pearrc channel-add %{SOURCE3}
-%{__pear} -c pearrc channel-add %{SOURCE4}
-%{__pear} -c pearrc channel-add %{SOURCE5}
-%{__pear} -c pearrc channel-add %{SOURCE6}
-%{__pear} -c pearrc channel-add %{SOURCE7}
-%{__pear} -c pearrc channel-add %{SOURCE8}
-%{__pear} -c pearrc channel-add %{SOURCE9}
-%{__pear} -c pearrc channel-add %{SOURCE10}
+for xml in $(awk '/^Source[0-9]+:.+channel-.+.xml$/ {print $NF}' %{_specdir}/%{name}.spec); do
+	%{__pear} -c pearrc channel-add %{_sourcedir}/$xml
+done
 
 while read dir; do
 	install -d $RPM_BUILD_ROOT$dir
@@ -217,6 +210,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.66  2010/10/29 09:08:31  glen
+- add all channel xmls
+
 Revision 1.65  2010/10/29 09:04:51  glen
 - 1.3.5: add propel channel
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pear/php-pear.spec?r1=1.65&r2=1.66&f=u



More information about the pld-cvs-commit mailing list