summaryrefslogtreecommitdiffstats
path: root/php-mnapoli-phpunit-easymock.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-01-05 07:32:05 +0100
committerRemi Collet <fedora@famillecollet.com>2016-01-05 07:32:05 +0100
commit0d8d159ba9b0ea8fdd327614f57209cb5252b1d5 (patch)
tree517f51cb97934b95cce5456756e03120371ff6d4 /php-mnapoli-phpunit-easymock.spec
parent8f99b0ee7d1d9cefef2133c653853e361528e01c (diff)
php-mnapoli-phpunit-easymock: add backport stuff
Diffstat (limited to 'php-mnapoli-phpunit-easymock.spec')
-rw-r--r--php-mnapoli-phpunit-easymock.spec15
1 files changed, 15 insertions, 0 deletions
diff --git a/php-mnapoli-phpunit-easymock.spec b/php-mnapoli-phpunit-easymock.spec
index a697689..ed82e12 100644
--- a/php-mnapoli-phpunit-easymock.spec
+++ b/php-mnapoli-phpunit-easymock.spec
@@ -1,3 +1,4 @@
+# remirepo spec file for php-mnapoli-phpunit-easymock, from:
#
# Fedora spec file for php-mnapoli-phpunit-easymock
#
@@ -42,6 +43,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}
@@ -109,6 +111,7 @@ AUTOLOAD
%install
+rm -rf %{buildroot}
mkdir -p %{buildroot}%{phpdir}/EasyMock
cp -rp src/* %{buildroot}%{phpdir}/EasyMock/
@@ -128,12 +131,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
@@ -142,6 +154,9 @@ BOOTSTRAP
%changelog
+* Tue Jan 5 2016 Remi Collet <remi@remirepo.net> - 0.2.1-1
+- backport for #remirepo
+
* Mon Jan 04 2016 Shawn Iwinski <shawn@iwin.ski> - 0.2.1-1
- Updated to 0.2.1
- Fixed directory ownership in %%files