summaryrefslogtreecommitdiffstats
path: root/php-mnapoli-phpunit-easymock.spec
diff options
context:
space:
mode:
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