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.spec32
1 files changed, 23 insertions, 9 deletions
diff --git a/php-phpmd-PHP-PMD.spec b/php-phpmd-PHP-PMD.spec
index 12edf39..e327918 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 7425e155cf22cdd2b4dd3458a7da4cf6c0201562
+%global gh_commit a05a999c644f4bc9a204846017db7bb7809fbe4c
%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.6.1
+Version: 2.7.0
Release: 1%{?dist}
Summary: PHPMD - PHP Mess Detector
@@ -35,17 +35,23 @@ BuildArch: noarch
%if %{with_tests}
# For tests
# From composer.json, "require-dev": {
-# "phpunit/phpunit": "^4.0",
-# "squizlabs/php_codesniffer": "^2.0"
-BuildRequires: php-composer(phpunit/phpunit) >= 4.0
+# "phpunit/phpunit": "^4.8.36 || ^5.7.27",
+# "squizlabs/php_codesniffer": "^2.0",
+# "mikey179/vfsstream": "^1.6.4",
+# "gregwar/rst": "^1.0"
+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(pdepend/pdepend) >= 2.5 with php-composer(pdepend/pdepend) < 3)
+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(pdepend/pdepend) < 3
+BuildRequires: php-composer(pdepend/pdepend) >= 2.5
+BuildRequires: php-composer(mikey179/vfsstream) < 2
+BuildRequires: php-composer(mikey179/vfsstream) >= 1.6.4
%endif
BuildRequires: php-date
+BuildRequires: php-json
BuildRequires: php-libxml
BuildRequires: php-pcre
BuildRequires: php-simplexml
@@ -66,8 +72,9 @@ Requires: php-composer(pdepend/pdepend) < 3
Requires: php-composer(pdepend/pdepend) >= 2.5
%endif
Requires: php-xml
-# From phpcompatinfo report for version 2.6.0
+# From phpcompatinfo report for version 2.7.0
Requires: php-date
+Requires: php-json
Requires: php-libxml
Requires: php-pcre
Requires: php-simplexml
@@ -122,6 +129,10 @@ cat << 'EOF' | tee src/test/php/bootstrap.php
<?php
require '%{buildroot}%{php_home}/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('PHPMD\\', __DIR__ . '/PHPMD');
+\Fedora\Autoloader\Dependencies::required([
+ '%{_datadir}/php/org/bovigo/vfs/autoload.php',
+]);
+
EOF
ret=0
@@ -155,6 +166,9 @@ fi
%changelog
+* Fri Aug 2 2019 Remi Collet <remi@remirepo.net> - 2.7.0-1
+- update to 2.7.0
+
* Mon Jul 15 2019 Remi Collet <remi@remirepo.net> - 2.6.1-1
- update to 2.6.1
- use range dependencies