From 9be81f1ecc487f18cc14acc51e477d9b541d0ced Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 15 Apr 2016 14:42:06 +0200 Subject: php-league-climate: backport --- php-league-climate.spec | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'php-league-climate.spec') diff --git a/php-league-climate.spec b/php-league-climate.spec index 66b58ad..d7059d9 100644 --- a/php-league-climate.spec +++ b/php-league-climate.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-league-climate, from: # # Fedora spec file for php-league-climate # @@ -50,6 +51,7 @@ URL: http://climate.thephpleague.com/ 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} @@ -132,6 +134,8 @@ AUTOLOAD %install +rm -rf %{buildroot} + mkdir -p %{buildroot}%{phpdir}/League/CLImate cp -rp src/* %{buildroot}%{phpdir}/League/CLImate/ @@ -157,12 +161,21 @@ BOOTSTRAP sed '/require.*vendor\/mikey179/d' -i tests/FileTest.php %{_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.md %doc CHANGELOG.md @@ -173,5 +186,8 @@ sed '/require.*vendor\/mikey179/d' -i tests/FileTest.php %changelog +* Fri Apr 15 2016 Remi Collet - 3.2.1-1 +- backport for remi repository + * Mon Apr 11 2016 Shawn Iwinski - 3.2.1-1 - Initial package -- cgit