[php-Metadata] Updated to version 1.3.0

Shawn Iwinski siwinski at fedoraproject.org
Sun Mar 31 02:29:05 UTC 2013


commit aa1b91296dc846f4d79f3ed941cb7bad756a6594
Author: Shawn Iwinski <siwinski at redhat.com>
Date:   Sat Mar 30 22:28:38 2013 -0400

    Updated to version 1.3.0
    
    - Removed tests sub-package

 .gitignore        |    1 +
 php-Metadata.spec |   43 +++++++++++++------------------------------
 sources           |    1 +
 3 files changed, 15 insertions(+), 30 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0cfb2e8..578cb92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /php-Metadata-1.1.1-84088bc4f6e2387ec8b549bffc1e037107572f5a.tar.gz
+/php-Metadata-1.3.0-f2ab7883f6f915d40bfc38a70e0ead5f130610dc.tar.gz
diff --git a/php-Metadata.spec b/php-Metadata.spec
index cd2bfe8..e700095 100644
--- a/php-Metadata.spec
+++ b/php-Metadata.spec
@@ -1,10 +1,10 @@
-%global github_owner   schmittjoh
-%global github_name    metadata
-%global github_version 1.1.1
-%global github_commit  84088bc4f6e2387ec8b549bffc1e037107572f5a
+%global github_owner    schmittjoh
+%global github_name     metadata
+%global github_version  1.3.0
+%global github_commit   f2ab7883f6f915d40bfc38a70e0ead5f130610dc
 
-%global lib_name       Metadata
-%global php_min_ver    5.3.0
+%global lib_name        Metadata
+%global php_min_ver     5.3.0
 
 Name:          php-%{lib_name}
 Version:       %{github_version}
@@ -20,6 +20,8 @@ BuildArch:     noarch
 # Test build requires
 BuildRequires: php-common >= %{php_min_ver}
 BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
+BuildRequires: php-pear(pear.doctrine-project.org/DoctrineCommon) >= 2.0
+BuildRequires: php-pear(pear.doctrine-project.org/DoctrineCommon) <  2.4
 # Test build requires: phpci
 BuildRequires: php-date
 BuildRequires: php-reflection
@@ -41,25 +43,11 @@ The metadata classes are used to abstract away that source and provide a common
 interface for all of them.
 
 
-%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) {
@@ -78,25 +66,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}:%{_datadir}/php" \
-    -c tests/phpunit.xml.dist
+%{_bindir}/phpunit -d include_path="./src:./tests:.:%{pear_phpdir}"
 
 
 %files
 %doc LICENSE README.rst CHANGELOG.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.3.0-1
+- Updated to version 1.3.0
+- Removed tests sub-package
+
 * Wed Jan 23 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 1.1.1-1
 - Initial package
diff --git a/sources b/sources
index bba143b..dde9b88 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 45fd3f30ea84e1d45062d70ebb349fad  php-Metadata-1.1.1-84088bc4f6e2387ec8b549bffc1e037107572f5a.tar.gz
+b50b480cd18fd115920b7dff3d1c201d  php-Metadata-1.3.0-f2ab7883f6f915d40bfc38a70e0ead5f130610dc.tar.gz


More information about the scm-commits mailing list