diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-11-06 19:11:46 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-11-06 19:11:46 +0100 |
commit | 7de4a0eb2874c4a50458eeceb7699fd2fb0cdaf0 (patch) | |
tree | c36ae6e3da24c5d178a15e46e4861eb5043358ce /php-sentry.spec | |
parent | 77c1472edf9e3b2b5dd6efb421ef9aa0b9753baf (diff) |
php-sentry: add backport stuff
Diffstat (limited to 'php-sentry.spec')
-rw-r--r-- | php-sentry.spec | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/php-sentry.spec b/php-sentry.spec index 59ffb5f..7d980b7 100644 --- a/php-sentry.spec +++ b/php-sentry.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-sentry, from # # Fedora spec file for php-sentry # @@ -46,6 +47,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 BuildArch: noarch # Library version value check BuildRequires: php-cli @@ -138,6 +140,8 @@ AUTOLOAD %install +rm -rf %{buildroot} + mkdir -p %{buildroot}%{phpdir} cp -rp lib/* %{buildroot}%{phpdir}/ @@ -165,13 +169,33 @@ require_once '%{buildroot}%{phpdir}/Raven/autoload.php'; BOOTSTRAP : Run tests +# remirepo:11 +run=0 +ret=0 +if which php56; then + php56 %{_bindir}/phpunit --bootstrap bootstrap.php || ret=1 + run=1 +fi +if which php71; then + php71 %{_bindir}/phpunit --bootstrap bootstrap.php || ret=1 + run=1 +fi +if [ $run -eq 0 ]; then %{_bindir}/phpunit --verbose --bootstrap bootstrap.php +# remirepo:2 +fi +exit $ret %else : Tests skipped %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.rst @@ -184,5 +208,8 @@ BOOTSTRAP %changelog +* Sun Nov 6 2016 Remi Collet <remi@remirepo.net> - 0.22.0-1 +- add backport stuff for remi repo. + * Thu Nov 03 2016 Shawn Iwinski <shawn@iwin.ski> - 0.22.0-1 - Initial package |