From 7de4a0eb2874c4a50458eeceb7699fd2fb0cdaf0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 6 Nov 2016 19:11:46 +0100 Subject: php-sentry: add backport stuff --- php-sentry.spec | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'php-sentry.spec') 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 - 0.22.0-1 +- add backport stuff for remi repo. + * Thu Nov 03 2016 Shawn Iwinski - 0.22.0-1 - Initial package -- cgit