rpms/php-phpunit-File-Iterator/devel php-phpunit-File-Iterator.spec, 1.7, 1.8

Christof Damian cdamian at fedoraproject.org
Thu Jul 22 17:10:15 UTC 2010


Author: cdamian

Update of /cvs/pkgs/rpms/php-phpunit-File-Iterator/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv31316

Modified Files:
	php-phpunit-File-Iterator.spec 
Log Message:
fix php-pear requirement


Index: php-phpunit-File-Iterator.spec
===================================================================
RCS file: /cvs/pkgs/rpms/php-phpunit-File-Iterator/devel/php-phpunit-File-Iterator.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- php-phpunit-File-Iterator.spec	22 Jul 2010 16:52:50 -0000	1.7
+++ php-phpunit-File-Iterator.spec	22 Jul 2010 17:10:15 -0000	1.8
@@ -4,7 +4,7 @@
 
 Name:           php-phpunit-File-Iterator
 Version:        1.2.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        FilterIterator implementation that filters files based on a list of suffixes
 
 Group:          Development/Libraries
@@ -14,8 +14,7 @@ Source0:        http://pear.phpunit.de/g
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
-# package.xml states 1.9.1, but does not use it
-BuildRequires:  php-pear >= 1:1.9.0 
+BuildRequires:  php-pear >= 1:1.9.0
 BuildRequires:  php-channel(%{channel})
 Requires:       php-channel(%{channel})
 Requires:       php-common >= 5.2.7
@@ -30,8 +29,11 @@ FilterIterator implementation that filte
 
 %prep
 %setup -q -c
-[ -f package2.xml ] || mv package.xml package2.xml
+[ -f package2.xml ] || %{__mv} package.xml package2.xml
 %{__mv} package2.xml %{pear_name}-%{version}/%{name}.xml
+cd %{pear_name}-%{version}
+%{__sed} -i -e "s@<min>1.9.1</min>@<min>1.9.0</min>@" %{name}.xml
+
 
 %build
 cd %{pear_name}-%{version}
@@ -40,7 +42,8 @@ cd %{pear_name}-%{version}
 
 %install
 cd %{pear_name}-%{version}
-%{__rm} -rf $RPM_BUILD_ROOT docdir
+%{__rm} -rf $RPM_BUILD_ROOT docdir# package.xml states 1.9.1, but does not use it
+
 %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
 
 # Clean up unnecessary files
@@ -73,6 +76,9 @@ fi
 %{pear_phpdir}/File
 
 %changelog
+* Thu Jul 22 2010 Christof Damian <christof at damian.net> - 1.2.2-2
+- fix minimum pear requirement
+
 * Thu Jul 22 2010 Christof Damian <christof at damian.net> - 1.2.2-1
 - upstream 1.2.2, bugfix
 



More information about the scm-commits mailing list