[php-PhpOption] Updated to version 1.2.0

Shawn Iwinski siwinski at fedoraproject.org
Sun Mar 31 02:12:18 UTC 2013


commit e2618b744a369cd612d611124ea511aa32cf1ae6
Author: Shawn Iwinski <siwinski at redhat.com>
Date:   Sat Mar 30 22:11:53 2013 -0400

    Updated to version 1.2.0
    
    - Removed tests sub-package

 .gitignore         |    1 +
 php-PhpOption.spec |   39 ++++++++++-----------------------------
 sources            |    1 +
 3 files changed, 12 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 561f646..af17202 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /php-PhpOption-1.1.0-617bd84bf0d918da79b06ac6765b5390b83b1321.tar.gz
+/php-PhpOption-1.2.0-24e55357ced5bb041da1416711737b9e144505b4.tar.gz
diff --git a/php-PhpOption.spec b/php-PhpOption.spec
index 7b95990..ccfd2d4 100644
--- a/php-PhpOption.spec
+++ b/php-PhpOption.spec
@@ -1,7 +1,7 @@
 %global github_owner   schmittjoh
 %global github_name    php-option
-%global github_version 1.1.0
-%global github_commit  617bd84bf0d918da79b06ac6765b5390b83b1321
+%global github_version 1.2.0
+%global github_commit  24e55357ced5bb041da1416711737b9e144505b4
 
 %global lib_name       PhpOption
 %global php_min_ver    5.3.0
@@ -17,14 +17,14 @@ URL:           https://github.com/%{github_owner}/%{github_name}
 Source0:       %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
 
 BuildArch:     noarch
-# Test build requires
+# For tests
 BuildRequires: php-common >= %{php_min_ver}
 BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
-# Test build requires: phpci
+# For tests: phpci
 BuildRequires: php-spl
 
 Requires:      php-common >= %{php_min_ver}
-# phpci requires
+# phpci
 Requires:      php-spl
 
 %description
@@ -49,25 +49,11 @@ API developer to provide more concise API methods, and empowers the API user in
 how he consumes these methods.
 
 
-%package tests
-Summary:  Test suite for %{name}
-Group:    Development/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description tests
-%{summary}.
-
-
 %prep
 %setup -q -n %{github_name}-%{github_commit}
 
-# PHPUnit config
-sed 's:\(\./\)\?tests/:./:' -i phpunit.xml.dist
-mv phpunit.xml.dist tests/
-
 # Rewrite tests' bootstrap (which uses Composer autoloader) with simple
 # autoloader that uses include path
-mv tests/bootstrap.php tests/bootstrap.php.dist
 ( cat <<'AUTOLOAD'
 <?php
 spl_autoload_register(function ($class) {
@@ -86,25 +72,20 @@ AUTOLOAD
 mkdir -p -m 755 %{buildroot}%{_datadir}/php
 cp -rp src/%{lib_name} %{buildroot}%{_datadir}/php/
 
-mkdir -p -m 755 %{buildroot}%{_datadir}/tests/%{name}
-cp -rp tests/* %{buildroot}%{_datadir}/tests/%{name}/
-
 
 %check
-%{_bindir}/phpunit \
-    -d include_path="./src:./tests:.:%{pear_phpdir}" \
-    -c tests/phpunit.xml.dist
+%{_bindir}/phpunit -d include_path="./src:./tests:.:%{pear_phpdir}"
 
 
 %files
 %doc LICENSE README.md composer.json
 %{_datadir}/php/%{lib_name}
 
-%files tests
-%dir %{_datadir}/tests
-     %{_datadir}/tests/%{name}
-
 
 %changelog
+* Sat Mar 30 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 1.2.0-1
+- Updated to version 1.2.0
+- Removed tests sub-package
+
 * Tue Jan 22 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 1.1.0-1
 - Initial package
diff --git a/sources b/sources
index cbba266..c89b0b9 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 80b1e36db833658b02f57950c22d2841  php-PhpOption-1.1.0-617bd84bf0d918da79b06ac6765b5390b83b1321.tar.gz
+e6da5c730829064b49de51ad6bbca337  php-PhpOption-1.2.0-24e55357ced5bb041da1416711737b9e144505b4.tar.gz


More information about the scm-commits mailing list