summaryrefslogtreecommitdiffstats
path: root/php-league-climate.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-15 14:42:06 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-15 14:42:06 +0200
commit9be81f1ecc487f18cc14acc51e477d9b541d0ced (patch)
tree88e1b314e443b0db6059806eb7089c523b983f0c /php-league-climate.spec
parentb3c3e99e4070f7be5ca6961e1be224166edb7591 (diff)
php-league-climate: backport
Diffstat (limited to 'php-league-climate.spec')
-rw-r--r--php-league-climate.spec16
1 files changed, 16 insertions, 0 deletions
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 <remi@remirepo.net> - 3.2.1-1
+- backport for remi repository
+
* Mon Apr 11 2016 Shawn Iwinski <shawn@iwin.ski> - 3.2.1-1
- Initial package