From 3c942f3c83561d4744fadf7971789747ed6bcaab Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 22 Oct 2016 10:36:31 +0200 Subject: php-sebastian-global-state: use fedora/autoloader --- php-sebastian-global-state.spec | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/php-sebastian-global-state.spec b/php-sebastian-global-state.spec index 935d404..bae9612 100644 --- a/php-sebastian-global-state.spec +++ b/php-sebastian-global-state.spec @@ -20,7 +20,7 @@ Name: php-sebastian-global-state Version: 1.1.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Snapshotting of global state Group: Development/Libraries @@ -31,7 +31,7 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php(language) >= 5.3.3 -BuildRequires: %{_bindir}/phpab +BuildRequires: php-fedora-autoloader-devel %if %{with_tests} # from composer.json, "require-dev": { # "phpunit/phpunit": "~4.2" @@ -46,6 +46,8 @@ Requires: php(language) >= 5.3.3 %if 0%{?fedora} > 21 Suggests: php-uopz %endif +# Autoloader +Requires: php-composer(fedora/autoloader) Provides: php-composer(sebastian/global-state) = %{version} @@ -61,10 +63,10 @@ factored out of PHPUnit into a stand-alone component. %build # Generate the Autoloader -phpab --output src/autoload.php src +phpab --template fedora --output src/autoload.php src # For the test suite -phpab --basedir tests --output tests/autoload.php tests/_fixture/ +phpab --template fedora --output tests/autoload.php tests/_fixture/ %install @@ -75,7 +77,8 @@ cp -pr src %{buildroot}%{php_home}/GlobalState %check %if %{with_tests} -cat < - 1.1.1-4 +- switch to fedora/autoloader + * Thu Oct 13 2016 Remi Collet - 1.1.1-3 - add optional dependency on uopz extension -- cgit