From 282e07129455d785120bf828b8ac3390c7ef2a5e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 27 Nov 2016 09:25:01 +0100 Subject: php-simplepie: honours with_test option --- php-simplepie.spec | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit