diff options
author | Remi Collet <remi@remirepo.net> | 2021-12-06 09:42:33 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2021-12-06 09:42:33 +0100 |
commit | b1522fc87ff36c53084daf99f2cf1b31aa021b89 (patch) | |
tree | 6c0587d0037d028ca4809b5f459d1c291b7273ec | |
parent | 7e635cc5228cbb09b782f9327864263183aa770b (diff) |
disable test suite on EL
-rw-r--r-- | php-theseer-directoryscanner.spec | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/php-theseer-directoryscanner.spec b/php-theseer-directoryscanner.spec index c5b677e..4eaf27c 100644 --- a/php-theseer-directoryscanner.spec +++ b/php-theseer-directoryscanner.spec @@ -14,9 +14,15 @@ %global pear_name DirectoryScanner %global pear_channel pear.netpirates.net +%if 0%{?fedora} +%bcond_without tests +%else +%bcond_with tests +%endif + Name: php-theseer-directoryscanner Version: 1.3.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A recursive directory scanner and filter Group: Development/Libraries @@ -24,10 +30,11 @@ License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php(language) >= 5.3.1 +%if %{with tests} BuildRequires: %{_bindir}/phpunit +%endif # From composer.json Requires: php(language) >= 5.3.1 @@ -52,14 +59,14 @@ A recursive directory scanner and filter. %install -rm -rf %{buildroot} mkdir -p %{buildroot}%{php_home} cp -pr src %{buildroot}%{php_home}/%{gh_project} %check +%if %{with tests} ret=0 -for cmd in php php73 php74 php80; do +for cmd in php php74 php80 php81; do if which $cmd; then $cmd %{_bindir}/phpunit \ --bootstrap %{buildroot}%{php_home}/%{gh_project}/autoload.php \ @@ -68,10 +75,7 @@ for cmd in php php73 php74 php80; do fi done exit $ret - - -%clean -rm -rf %{buildroot} +%endif %post @@ -82,7 +86,6 @@ fi %files -%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc composer.json @@ -91,6 +94,9 @@ fi %changelog +* Mon Dec 6 2021 Remi Collet <remi@remirepo.net> - 1.3.3-2 +- disable test suite on EL + * Mon Jul 26 2021 Remi Collet <remi@remirepo.net> - 1.3.3-1 - update to 1.3.3 |