summaryrefslogtreecommitdiffstats
path: root/php-phpunit-PHPUnit-Selenium.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-02-06 09:59:48 +0100
committerRemi Collet <remi@remirepo.net>2018-02-06 09:59:48 +0100
commitd7e9de5fb3988fdccb0e076742a48d38b8543831 (patch)
tree510e125e40ba85612aa51908d58b38971a92d784 /php-phpunit-PHPUnit-Selenium.spec
parent138b9223218a0b87d7bd19cdab31675aa40f38d9 (diff)
use range dependencies on F27+HEADmaster
Diffstat (limited to 'php-phpunit-PHPUnit-Selenium.spec')
-rw-r--r--php-phpunit-PHPUnit-Selenium.spec26
1 files changed, 12 insertions, 14 deletions
diff --git a/php-phpunit-PHPUnit-Selenium.spec b/php-phpunit-PHPUnit-Selenium.spec
index 2e5888d..4ef92db 100644
--- a/php-phpunit-PHPUnit-Selenium.spec
+++ b/php-phpunit-PHPUnit-Selenium.spec
@@ -1,6 +1,6 @@
# remirepo/fedora spec file for php-phpunit-PHPUnit-Selenium
#
-# Copyright (c) 2010-2017 Remi Collet
+# Copyright (c) 2010-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -17,15 +17,13 @@
Name: php-phpunit-PHPUnit-Selenium
Version: 3.0.3
-Release: 1%{?dist}
+Release: 4%{?dist}
Summary: Selenium RC integration for PHPUnit
-Group: Development/Libraries
License: BSD
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php(language) >= 5.6
BuildRequires: php-fedora-autoloader-devel
@@ -37,10 +35,13 @@ BuildRequires: php-fedora-autoloader-devel
# "ext-curl": "*",
# "ext-dom": "*"
Requires: php(language) >= 5.6
-Requires: php-composer(phpunit/phpunit) >= 5
-Requires: php-composer(phpunit/phpunit) < 6
-Requires: php-composer(sebastian/comparator) >= 1.0
-Requires: php-composer(sebastian/comparator) < 2
+%if 0%{?fedora} >= 27
+Requires: (php-composer(phpunit/phpunit) >= 5 with php-composer(phpunit/phpunit) < 6)
+Requires: (php-composer(sebastian/comparator) >= 1.0 with php-composer(sebastian/comparator) < 2)
+%else
+Requires: php-phpunit-PHPUnit >= 5
+Requires: php-phpunit-comparator
+%endif
Requires: php-curl
Requires: php-dom
# From phpcompatinfo report for version 1.3.3
@@ -88,15 +89,10 @@ EOF
%install
-rm -rf %{buildroot}
mkdir -p %{buildroot}%{php_home}
cp -pr PHPUnit %{buildroot}%{php_home}/PHPUnit
-%clean
-rm -rf %{buildroot}
-
-
%post
if [ -x %{_bindir}/pear ]; then
%{_bindir}/pear uninstall --nodeps --ignore-errors --register-only \
@@ -105,7 +101,6 @@ fi
%files
-%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc ChangeLog.markdown README.md
@@ -114,6 +109,9 @@ fi
%changelog
+* Tue Feb 6 2018 Remi Collet <remi@fedoraproject.org> - 3.0.3-4
+- use range dependencies on F27+
+
* Tue Jan 24 2017 Remi Collet <remi@fedoraproject.org> - 3.0.3-1
- update to 3.0.3
- switch to fedora/autoloader