summaryrefslogtreecommitdiffstats
path: root/php-simplepie.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-11-27 09:25:01 +0100
committerRemi Collet <fedora@famillecollet.com>2016-11-27 09:25:01 +0100
commit282e07129455d785120bf828b8ac3390c7ef2a5e (patch)
tree95a7a94b2e0c981bcfb13647937615d2b0244608 /php-simplepie.spec
parentcf54d55b0591d8299b7f42162b1f613b01ce856a (diff)
php-simplepie: honours with_test option
Diffstat (limited to 'php-simplepie.spec')
-rw-r--r--php-simplepie.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/php-simplepie.spec b/php-simplepie.spec
index c1b7514..43411f2 100644
--- a/php-simplepie.spec
+++ b/php-simplepie.spec
@@ -30,7 +30,9 @@ Patch0: %{name}-rpm.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
+%if %{with_tests}
BuildRequires: php-phpunit-PHPUnit
+%endif
Requires: php-IDNA_Convert
Requires: php-curl
@@ -79,6 +81,7 @@ install -pm 644 autoloader.php \
%{buildroot}/%{_datadir}/php/%{name}/autoloader.php
+%if %{with_tests}
%check
sed -e 's:@PATH@:%{buildroot}/%{_datadir}/php/%{name}:' \
-i tests/bootstrap.php
@@ -103,6 +106,7 @@ if [ $run -eq 0 ]; then
# remirepo:2
fi
exit $ret
+%endif
%clean