summaryrefslogtreecommitdiffstats
path: root/php-phpmd-PHP-PMD.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-phpmd-PHP-PMD.spec')
-rw-r--r--php-phpmd-PHP-PMD.spec47
1 files changed, 31 insertions, 16 deletions
diff --git a/php-phpmd-PHP-PMD.spec b/php-phpmd-PHP-PMD.spec
index e327918..133119d 100644
--- a/php-phpmd-PHP-PMD.spec
+++ b/php-phpmd-PHP-PMD.spec
@@ -7,7 +7,7 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit a05a999c644f4bc9a204846017db7bb7809fbe4c
+%global gh_commit 5664b95d484797582f5af9536238deb9ecde58a1
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner phpmd
%global gh_project phpmd
@@ -18,7 +18,7 @@
%global with_tests 0%{!?_without_tests:1}
Name: php-phpmd-PHP-PMD
-Version: 2.7.0
+Version: 2.8.1
Release: 1%{?dist}
Summary: PHPMD - PHP Mess Detector
@@ -38,17 +38,21 @@ BuildArch: noarch
# "phpunit/phpunit": "^4.8.36 || ^5.7.27",
# "squizlabs/php_codesniffer": "^2.0",
# "mikey179/vfsstream": "^1.6.4",
-# "gregwar/rst": "^1.0"
+# "gregwar/rst": "^1.0",
+# "easy-doc/easy-doc": "0.0.0 || ^1.3.2"
BuildRequires: php-composer(phpunit/phpunit) >= 4.8.36
BuildRequires: php(language) >= 5.3.9
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-BuildRequires: (php-composer(pdepend/pdepend) >= 2.5 with php-composer(pdepend/pdepend) < 3)
-BuildRequires: (php-composer(mikey179/vfsstream) >= 1.6.4 with php-composer(mikey179/vfsstream) < 2)
+BuildRequires: (php-composer(pdepend/pdepend) >= 2.6 with php-composer(pdepend/pdepend) < 3)
+BuildRequires: (php-composer(composer/xdebug-handler) >= 1.0 with php-composer(composer/xdebug-handler) < 2)
+BuildRequires: (php-composer(mikey179/vfsstream) >= 1.6.4 with php-composer(mikey179/vfsstream) < 2)
%else
-BuildRequires: php-composer(pdepend/pdepend) < 3
-BuildRequires: php-composer(pdepend/pdepend) >= 2.5
-BuildRequires: php-composer(mikey179/vfsstream) < 2
-BuildRequires: php-composer(mikey179/vfsstream) >= 1.6.4
+BuildRequires: php-composer(pdepend/pdepend) < 3
+BuildRequires: php-composer(pdepend/pdepend) >= 2.5
+BuildRequires: php-composer(composer/xdebug-handler) < 2
+BuildRequires: php-composer(composer/xdebug-handler) >= 1.0
+BuildRequires: php-composer(mikey179/vfsstream) < 2
+BuildRequires: php-composer(mikey179/vfsstream) >= 1.6.4
%endif
BuildRequires: php-date
BuildRequires: php-json
@@ -61,15 +65,19 @@ BuildRequires: php-composer(fedora/autoloader)
%endif
# From composer.json, "require": {
-# "php": ">=5.3.9",
-# "pdepend/pdepend": "^2.5",
-# "ext-xml": "*"
+# "php": ">=5.3.9",
+# "pdepend/pdepend": "^2.6",
+# "ext-xml": "*",
+# "composer/xdebug-handler": "^1.0"
Requires: php(language) >= 5.3.9
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-Requires: (php-composer(pdepend/pdepend) >= 2.5 with php-composer(pdepend/pdepend) < 3)
+Requires: (php-composer(pdepend/pdepend) >= 2.6 with php-composer(pdepend/pdepend) < 3)
+Requires: (php-composer(composer/xdebug-handler) >= 1.0 with php-composer(composer/xdebug-handler) < 2)
%else
-Requires: php-composer(pdepend/pdepend) < 3
-Requires: php-composer(pdepend/pdepend) >= 2.5
+Requires: php-composer(pdepend/pdepend) < 3
+Requires: php-composer(pdepend/pdepend) >= 2.6
+Requires: php-composer(composer/xdebug-handler) < 2
+Requires: php-composer(composer/xdebug-handler) >= 1.0
%endif
Requires: php-xml
# From phpcompatinfo report for version 2.7.0
@@ -99,7 +107,9 @@ stream measured by PHP Depend.
%prep
%setup -q -n %{gh_project}-%{gh_commit}
-%patch0 -p0
+%patch0 -p0 -b .rpm
+find . -name \*.rpm -delete
+
cp %{SOURCE2} src/main/php/PHPMD/autoload.php
find src/main/php -name \*php -exec sed -e 's:@package_version@:%{version}:' -i {} \;
@@ -166,6 +176,11 @@ fi
%changelog
+* Tue Jan 7 2020 Remi Collet <remi@remirepo.net> - 2.8.1-1
+- update to 2.8.1
+- raise dependency on pdepend/pdepend version 2.6
+- add dependency on composer/xdebug-handler
+
* Fri Aug 2 2019 Remi Collet <remi@remirepo.net> - 2.7.0-1
- update to 2.7.0