diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-01-31 18:39:01 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-01-31 18:39:01 +0100 |
commit | febe682c1abb0099dc07458d77c2cdf519196f3f (patch) | |
tree | 4a52b7f83d70c700bd48f325f62e19e7f2c71ae8 /php-guzzlehttp-guzzle6.spec | |
parent | 9a50287fd5eea98023363a9451d0b70b383ea9f9 (diff) |
php-guzzlehttp-guzzle6: backport for #remirepo
Diffstat (limited to 'php-guzzlehttp-guzzle6.spec')
-rw-r--r-- | php-guzzlehttp-guzzle6.spec | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/php-guzzlehttp-guzzle6.spec b/php-guzzlehttp-guzzle6.spec index 0865b89..f8e9de4 100644 --- a/php-guzzlehttp-guzzle6.spec +++ b/php-guzzlehttp-guzzle6.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-guzzlehttp-guzzle6, from: # # Fedora spec file for php-guzzlehttp-guzzle6 # @@ -50,6 +51,7 @@ URL: http://guzzlephp.org Source0: %{name}-%{github_version}-%{github_commit}.tar.gz Source1: %{name}-get-source.sh +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch # Tests %if %{with_tests} @@ -152,6 +154,7 @@ AUTOLOAD %install +rm -rf %{buildroot} mkdir -p %{buildroot}%{phpdir}/GuzzleHttp6 cp -pr src/* %{buildroot}%{phpdir}/GuzzleHttp6/ @@ -167,12 +170,21 @@ $fedoraPsr4ClassLoader->addPrefix('GuzzleHttp\\Tests\\', __DIR__.'/tests'); AUTOLOAD %{_bindir}/phpunit --verbose + +if which php70; then + php70 %{_bindir}/phpunit --verbose +fi %else : Tests skipped %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md @@ -181,6 +193,9 @@ AUTOLOAD %changelog +* Sun Jan 31 2016 Remi Collet <remi@remirepo.net> - 6.1.1-2 +- backport for remi repository + * Thu Jan 28 2016 Shawn Iwinski <shawn@iwin.ski> - 6.1.1-2 - Added min version of autoloader dependency - Fix directory ownership |