SPECS: php-pear.spec - define pear.phpunit.de channel completely here; rel 2
glen
glen at pld-linux.org
Wed Dec 10 09:51:29 CET 2008
Author: glen Date: Wed Dec 10 08:51:29 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- define pear.phpunit.de channel completely here; rel 2
---- Files affected:
SPECS:
php-pear.spec (1.43 -> 1.44)
---- Diffs:
================================================================
Index: SPECS/php-pear.spec
diff -u SPECS/php-pear.spec:1.43 SPECS/php-pear.spec:1.44
--- SPECS/php-pear.spec:1.43 Wed Dec 10 00:15:26 2008
+++ SPECS/php-pear.spec Wed Dec 10 09:51:23 2008
@@ -3,10 +3,12 @@
Summary(pl.UTF-8): PEAR - rozszerzenie PHP i repozytorium aplikacji
Name: php-pear
Version: 1.1
-Release: 1
+Release: 2
Epoch: 4
License: Public Domain
Group: Development/Languages/PHP
+Source0: http://pear.phpunit.de/channel.xml
+# Source0-md5: b8ccb5f4727e7e6d4ee0c0e690f5423b
Obsoletes: php-pear-additional_classes
Obsoletes: php4-pear
Conflicts: php-pear-PEAR < 1:1.4.6-1.3
@@ -33,15 +35,24 @@
php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp).
%prep
+%setup -qcT
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_pear_dir}/{data,tests}
-# extra channel dirs
+# add extra channels
+pear -c pearrc config-set php_dir $RPM_BUILD_ROOT/%{php_pear_dir}
+pear -c pearrc channel-add %{SOURCE0}
+
+rm -f $RPM_BUILD_ROOT%{php_pear_dir}/.channels/.alias/{pear,pecl}.txt
+rm -f $RPM_BUILD_ROOT%{php_pear_dir}/.channels/__uri.reg
+rm -f $RPM_BUILD_ROOT%{php_pear_dir}/.channels/{pear,pecl}.php.net.reg
+rm -f $RPM_BUILD_ROOT%{php_pear_dir}/{.depdb*,.filemap,.lock}
+
+# TODO:
install -d $RPM_BUILD_ROOT%{_registrydir}/.channel.pear.phpdb.org
install -d $RPM_BUILD_ROOT%{_registrydir}/.channel.pear.phing.info
-install -d $RPM_BUILD_ROOT%{_registrydir}/.channel.pear.phpunit.de
while read dir; do
install -d $RPM_BUILD_ROOT$dir
@@ -93,7 +104,15 @@
%files
%defattr(644,root,root,755)
-%{php_pear_dir}
+%dir %{php_pear_dir}
+%{php_pear_dir}/*
+
+%dir %{php_pear_dir}/.registry
+%dir %{php_pear_dir}/.channels
+%dir %{php_pear_dir}/.channels/.alias
+
+%{php_pear_dir}/.channels/.alias/phpunit.txt
+%{php_pear_dir}/.channels/pear.phpunit.de.reg
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -101,6 +120,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.44 2008/12/10 08:51:23 glen
+- define pear.phpunit.de channel completely here; rel 2
+
Revision 1.43 2008/12/09 23:15:26 glen
- v1.1: package PEAR extra channel dirs here
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pear.spec?r1=1.43&r2=1.44&f=u
More information about the pld-cvs-commit
mailing list