summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-02-07 16:08:12 +0100
committerRemi Collet <remi@remirepo.net>2018-02-07 16:08:12 +0100
commite4f93e19de24f89d60b9854c1a504b1ad8c596b6 (patch)
tree1ef66355206a666e3f5d28ae3aac18dc86a9fa66
parent2be823e647ff595d86ff64c0a3f02030159fcdf6 (diff)
cleanup
-rw-r--r--phpcpd.spec11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpcpd.spec b/phpcpd.spec
index 0bd73fd..9497de8 100644
--- a/phpcpd.spec
+++ b/phpcpd.spec
@@ -5,6 +5,10 @@
#
# Please, preserve the changelog entries
#
+
+# For compatibility with SCL
+%undefine __brp_mangle_shebangs
+
%global gh_commit bb7953b81fb28e55964d76d5fe2dbe725d43fab3
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
@@ -35,11 +39,13 @@ BuildRequires: php(language) >= 7.1
BuildRequires: php-fedora-autoloader-devel
%if %{with_tests}
BuildRequires: phpunit7
+# remirepo:1
%if 0%{?fedora} >= 27
BuildRequires: (php-composer(sebastian/finder-facade) >= 1.1 with php-composer(sebastian/finder-facade) < 2)
BuildRequires: (php-composer(sebastian/version) >= 1.0 with php-composer(sebastian/version) < 3)
BuildRequires: (php-composer(symfony/console) >= 2.7 with php-composer(symfony/console) < 5)
BuildRequires: (php-composer(phpunit/php-timer) >= 2.0 with php-composer(phpunit/php-timer) < 3)
+# remirepo:6
%else
BuildRequires: php-phpunit-FinderFacade
BuildRequires: php-phpunit-Version
@@ -55,11 +61,13 @@ BuildRequires: php-phpunit-php-timer2
# "symfony/console": "^2.7|^3.0|^4.0",
# "phpunit/php-timer": "^2.0"
Requires: php(language) >= 7.1
+# remirepo:1
%if 0%{?fedora} >= 27
Requires: (php-composer(sebastian/finder-facade) >= 1.1 with php-composer(sebastian/finder-facade) < 2)
Requires: (php-composer(sebastian/version) >= 1.0 with php-composer(sebastian/version) < 3)
Requires: (php-composer(symfony/console) >= 2.7 with php-composer(symfony/console) < 5)
Requires: (php-composer(phpunit/php-timer) >= 2.0 with php-composer(phpunit/php-timer) < 3)
+# remirepo:6
%else
Requires: php-phpunit-FinderFacade
Requires: php-phpunit-Version
@@ -75,9 +83,11 @@ Requires: php-spl
Requires: php-tokenizer
Requires: php-xml
+# remirepo:1
%if 0%{?fedora} >= 26
Obsoletes: php-phpunit-%{pk_project} < 4
Provides: php-phpunit-%{pk_project} = %{version}
+# remirepo:3
%else
Conflicts: php-phpunit-%{pk_project} < 4
%endif
@@ -144,6 +154,7 @@ exit $ret
%files
+# remirepo:1
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.md composer.json