[php-phpunit-PHP-TokenStream] upstream 1.0.0 final

Christof Damian cdamian at fedoraproject.org
Sun Sep 26 10:58:02 UTC 2010


commit 57a0b12cb7bc1807efd5c24167334568b6a10809
Author: Christof Damian <christof at damian.net>
Date:   Sun Sep 26 12:58:01 2010 +0200

    upstream 1.0.0 final

 .gitignore                       |    1 +
 php-phpunit-PHP-TokenStream.spec |   30 +++++++++++++++++-------------
 sources                          |    2 +-
 3 files changed, 19 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 34814cb..eb9736f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 PHP_TokenStream-1.0.0beta2.tgz
 PHP_TokenStream-1.0.0RC1.tgz
+/PHP_TokenStream-1.0.0.tgz
diff --git a/php-phpunit-PHP-TokenStream.spec b/php-phpunit-PHP-TokenStream.spec
index 39620eb..41ae6e8 100644
--- a/php-phpunit-PHP-TokenStream.spec
+++ b/php-phpunit-PHP-TokenStream.spec
@@ -2,26 +2,22 @@
 %global pear_name     PHP_TokenStream
 %global channel       pear.phpunit.de
 
-%global pear_major    1.0.0
-%global pear_minor    RC1
-%global pear_version  %{pear_major}%{pear_minor}
-
 Name:           php-phpunit-PHP-TokenStream
-Version:        %{pear_major}
-Release:        1.%{pear_minor}%{?dist}
+Version:        1.0.0
+Release:        1%{?dist}
 Summary:        Wrapper around PHP tokenizer extension
 
 Group:          Development/Libraries
 License:        BSD
 URL:            http://github.com/sebastianbergmann/php-token-stream
-Source0:        http://pear.phpunit.de/get/%{pear_name}-%{pear_version}.tgz
+Source0:        http://pear.phpunit.de/get/%{pear_name}-%{version}.tgz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
-BuildRequires:  php-pear >= 1:1.8.1
+BuildRequires:  php-pear >= 1:1.9.1
 BuildRequires:  php-channel(%{channel})
 Requires:       php-channel(%{channel})
-Requires:       php-common >= 5.2.0
+Requires:       php-common >= 5.2.7
 Requires:       php-tokenizer
 Requires:       php-pear(components.ez.no/ConsoleTools) >= 1.6 
 Requires(post): %{__pear}
@@ -36,18 +32,23 @@ Wrapper around PHP tokenizer extension.
 %prep
 %setup -q -c
 [ -f package2.xml ] || mv package.xml package2.xml
-%{__mv} package2.xml %{pear_name}-%{pear_version}/%{name}.xml
+%{__mv} package2.xml %{pear_name}-%{version}/%{name}.xml
+
+cd %{pear_name}-%{version}
 
+# Create a "localized" php.ini to avoid build warning
+cp /etc/php.ini .
+echo "date.timezone=UTC" >>php.ini
 
 %build
-cd %{pear_name}-%{pear_version}
+cd %{pear_name}-%{version}
 # Empty build section, most likely nothing required.
 
 
 %install
-cd %{pear_name}-%{pear_version}
+cd %{pear_name}-%{version}
 %{__rm} -rf $RPM_BUILD_ROOT docdir
-%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
+PHPRC=./php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
 
 # Clean up unnecessary files
 %{__rm} -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
@@ -80,6 +81,9 @@ fi
 %{_bindir}/phptok
 
 %changelog
+* Sun Sep 26 2010 Christof Damian <christof at damian.net> - 1.0.0-1
+- upstream 1.0.0 final 
+
 * Sat Jul 31 2010 Christof Damian <christof at damian.net> - 1.0.0-1.RC1
 - upstream 1.0.0RC1
 
diff --git a/sources b/sources
index bdb39f5..b58058c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-53cf19cb0772a1120802811037472618  PHP_TokenStream-1.0.0RC1.tgz
+86625f347f55128ff0d935ab6aacba32  PHP_TokenStream-1.0.0.tgz


More information about the scm-commits mailing list