remi pushed to php-phpunit-PHP-Timer (f22). "- update to 1.0.6 (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Jun 15 07:46:33 UTC 2015
From 83d4c522e4ce0af86a5ecc5086aea38b70ddc3f1 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi at fedoraproject.org>
Date: Mon, 15 Jun 2015 09:34:55 +0200
Subject: - update to 1.0.6 - generate autoloader, no more provided by upstream
- enable test suite during build - add explicit spec license header
diff --git a/.gitignore b/.gitignore
index 4088f7f..9cd7b4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ clog
/PHP_Timer-1.0.4.tgz
/PHP_Timer-1.0.5.tgz
/php-timer-1.0.5.tar.gz
+/php-timer-1.0.6-83fe1bd.tar.gz
diff --git a/php-phpunit-PHP-Timer.spec b/php-phpunit-PHP-Timer.spec
index 0d79e95..d5e12f2 100644
--- a/php-phpunit-PHP-Timer.spec
+++ b/php-phpunit-PHP-Timer.spec
@@ -1,25 +1,34 @@
-%global gh_commit 19689d4354b295ee3d8c54b4f42c3efb69cbc17c
+# remirepo/fedora spec file for php-phpunit-PHP-Timer
+#
+# Copyright (c) 2010-2015 Christof Damian, Remi Collet
+#
+# License: MIT
+# http://opensource.org/licenses/MIT
+#
+# Please, preserve the changelog entries
+#
+%global gh_commit 83fe1bdc5d47658b727595c14da140da92b3d66d
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project php-timer
%global php_home %{_datadir}/php
%global pear_name PHP_Timer
%global pear_channel pear.phpunit.de
-# Circular dependency with phpunit
-%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
+%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
Name: php-phpunit-PHP-Timer
-Version: 1.0.5
-Release: 5%{?dist}
+Version: 1.0.6
+Release: 1%{?dist}
Summary: PHP Utility class for timing
Group: Development/Libraries
License: BSD
URL: https://github.com/%{gh_owner}/%{gh_project}
-Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
+Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
BuildArch: noarch
BuildRequires: php(language) >= 5.3.3
+BuildRequires: %{_bindir}/phpab
%if %{with_tests}
BuildRequires: %{_bindir}/phpunit
%endif
@@ -42,17 +51,16 @@ PHP Utility class for timing
%prep
%setup -q -n %{gh_project}-%{gh_commit}
-rm PHP/Timer/Autoload.php.in
+# Restore PSR-0 tree
+mv src PHP
+mkdir PHP/Timer
%build
-# Empty build section, most likely nothing required.
-
-# If upstream drop Autoload.php, command to generate it
-# phpab \
-# --output PHP/Timer/Autoload.php \
-# --template PHP/Timer/Autoload.php.in \
-# PHP
+phpab \
+ --output PHP/Timer/Autoload.php \
+ --basedir PHP/Timer \
+ PHP
%install
@@ -63,8 +71,8 @@ cp -pr PHP %{buildroot}%{php_home}
%if %{with_tests}
%check
phpunit \
- --bootstrap PHP/Timer/Autoload.php \
- -d date.timezone=UTC
+ --include-path=%{buildroot}%{php_home} \
+ --verbose .
%endif
@@ -79,10 +87,16 @@ fi
%doc README.md composer.json
%{!?_licensedir:%global license %%doc}
%license LICENSE
-%{php_home}
+%{php_home}/PHP
%changelog
+* Mon Jun 15 2015 Remi Collet <remi at fedoraproject.org> - 1.0.6-1
+- update to 1.0.6
+- generate autoloader, no more provided by upstream
+- enable test suite during build
+- add explicit spec license header
+
* Fri Jul 18 2014 Remi Collet <remi at fedoraproject.org> - 1.0.5-5
- add composer dependencies
diff --git a/sources b/sources
index a68641b..7c6432e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-714f9a194bcfbb407fb1ce16e4ff553f php-timer-1.0.5.tar.gz
+b342607be2acc18779aafb1f40abe91b php-timer-1.0.6-83fe1bd.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/php-phpunit-PHP-Timer.git/commit/?h=f22&id=83d4c522e4ce0af86a5ecc5086aea38b70ddc3f1
More information about the scm-commits
mailing list