diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-01-04 19:14:13 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-01-04 19:14:13 +0100 |
commit | b22e17754905173132458d4101fa876fdec2e2b4 (patch) | |
tree | d6bacdf7c84326e1ae7d903ff3b9905b7aa39f62 /php-di-phpdoc-reader.spec | |
parent | b274539714bb311576cd156252d746bf57ad1164 (diff) |
php-di-phpdoc-reader: add backport stuff
Diffstat (limited to 'php-di-phpdoc-reader.spec')
-rw-r--r-- | php-di-phpdoc-reader.spec | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/php-di-phpdoc-reader.spec b/php-di-phpdoc-reader.spec index a2cf70b..a795dde 100644 --- a/php-di-phpdoc-reader.spec +++ b/php-di-phpdoc-reader.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-di-phpdoc-reader, from: # # Fedora spec file for php-di-phpdoc-reader # @@ -39,6 +40,7 @@ URL: https://github.com/%{github_owner}/%{github_name} 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} @@ -107,6 +109,7 @@ AUTOLOAD %install +rm -rf %{buildroot} mkdir -p %{buildroot}%{phpdir} cp -rp src/* %{buildroot}%{phpdir}/ @@ -126,12 +129,21 @@ BOOTSTRAP : Run tests %{_bindir}/phpunit --verbose --bootstrap bootstrap.php + +if which php70; then + php70 %{_bindir}/phpunit --verbose --bootstrap bootstrap.php +fi %else : Tests skipped %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md @@ -140,5 +152,8 @@ BOOTSTRAP %changelog +* Mon Jan 04 2016 Remi Collet <remi@remirepo.net> - 2.0.1-1 +- backport for #remirepo + * Sun Jan 03 2016 Shawn Iwinski <shawn@iwin.ski> - 2.0.1-1 - Initial package |