[php-Pimple] Removed "5.3" from summary and description

Shawn Iwinski siwinski at fedoraproject.org
Sun Dec 2 19:57:58 UTC 2012


commit 9d1ad875705e1b3acb171c8a485b959ee5456e74
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Sun Dec 2 14:50:52 2012 -0500

    Removed "5.3" from summary and description
    
    - Changed update tests' require path to use standard PHP include_path
    - Changed %check to override include_path in PHPunit call instead of
      updating file

 php-Pimple.spec |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/php-Pimple.spec b/php-Pimple.spec
index a149636..2225eab 100644
--- a/php-Pimple.spec
+++ b/php-Pimple.spec
@@ -3,8 +3,8 @@
 
 Name:          php-%{libname}
 Version:       1.0.0
-Release:       1%{?dist}
-Summary:       A simple Dependency Injection Container for PHP 5.3
+Release:       2%{?dist}
+Summary:       A simple Dependency Injection Container for PHP
 
 Group:         Development/Libraries
 License:       MIT
@@ -24,7 +24,7 @@ Requires:      php-common >= %{php_min_ver}
 Requires:      php-spl
 
 %description
-Pimple is a small Dependency Injection Container for PHP 5.3 that consists of
+Pimple is a small Dependency Injection Container for PHP that consists of
 just one file and one class.
 
 
@@ -36,7 +36,7 @@ sed 's#tests/##' -i phpunit.xml.dist
 mv phpunit.xml.dist tests/
 
 # Update tests' require
-sed "s#.*require.*Pimple.php.*#require_once '%{_datadir}/php/%{libname}/Pimple.php';#" \
+sed "s#.*require.*Pimple.php.*#require_once '%{libname}/Pimple.php';#" \
     -i tests/bootstrap.php
 
 
@@ -53,10 +53,9 @@ cp -pr tests/* %{buildroot}%{_datadir}/tests/%{name}/
 
 
 %check
-# Update tests' require to use buildroot
-sed 's#%{_datadir}#%{buildroot}%{_datadir}#' -i tests/bootstrap.php
-
-%{_bindir}/phpunit -c tests/phpunit.xml.dist
+%{_bindir}/phpunit \
+    -d include_path=%{buildroot}%{_datadir}/php:.:%{pear_phpdir} \
+    -c tests/phpunit.xml.dist
 
 
 %files
@@ -67,5 +66,11 @@ sed 's#%{_datadir}#%{buildroot}%{_datadir}#' -i tests/bootstrap.php
 
 
 %changelog
+* Sun Dec  2 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 1.0.0-2
+- Removed "5.3" from summary and description
+- Changed update tests' require path to use standard PHP include_path
+- Changed %%check to override include_path in PHPunit call instead of
+  updating file
+
 * Fri Nov 30 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 1.0.0-1
 - Initial package


More information about the scm-commits mailing list