Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5cd71bd9e0 | ||
|
|
b663b51d15 | ||
|
|
31770e7648 |
3 changed files with 27 additions and 11 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1 +1,4 @@
|
|||
/php-sebastian-complexity3-3.0.0-e67d240.tgz
|
||||
/php-sebastian-complexity3-3.0.1-c70b738.tgz
|
||||
/php-sebastian-complexity3-3.1.0-68cfb34.tgz
|
||||
/php-sebastian-complexity3-3.2.0-68ff824.tgz
|
||||
|
|
|
|||
|
|
@ -7,11 +7,10 @@
|
|||
# Please, preserve the changelog entries
|
||||
#
|
||||
|
||||
# disabled until phpunit10 available
|
||||
%bcond_with tests
|
||||
%bcond_without tests
|
||||
|
||||
# github
|
||||
%global gh_commit e67d240970c9dc7ea7b2123a6d520e334dd61dc6
|
||||
%global gh_commit 68ff824baeae169ec9f2137158ee529584553799
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner sebastianbergmann
|
||||
%global gh_project complexity
|
||||
|
|
@ -25,8 +24,8 @@
|
|||
%global ns_project Complexity
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}%{major}
|
||||
Version: 3.0.0
|
||||
Release: 2%{?dist}
|
||||
Version: 3.2.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Calculating the complexity of PHP code units, version %{major}
|
||||
|
||||
License: BSD-3-Clause
|
||||
|
|
@ -37,7 +36,7 @@ Source1: makesrc.sh
|
|||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php(language) >= 8.1
|
||||
BuildRequires: (php-composer(nikic/php-parser) >= 4.10 with php-composer(nikic/php-parser) < 5)
|
||||
BuildRequires: (php-composer(nikic/php-parser) >= 4.18 with php-composer(nikic/php-parser) < 6)
|
||||
# Autoloader
|
||||
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
|
||||
%if %{with tests}
|
||||
|
|
@ -48,9 +47,9 @@ BuildRequires: phpunit10
|
|||
|
||||
# from composer.json, "require": {
|
||||
# "php": ">=8.1",
|
||||
# "nikic/php-parser": "^4.10"
|
||||
# "nikic/php-parser": "^4.18 || ^5.0"
|
||||
Requires: php(language) >= 8.1
|
||||
Requires: (php-composer(nikic/php-parser) >= 4.10 with php-composer(nikic/php-parser) < 5)
|
||||
Requires: (php-composer(nikic/php-parser) >= 4.18 with php-composer(nikic/php-parser) < 6)
|
||||
# from phpcompatinfo report for version 3.0.0
|
||||
# none
|
||||
# Autoloader
|
||||
|
|
@ -77,7 +76,10 @@ phpab --template fedora --output src/autoload.php src
|
|||
|
||||
cat <<EOF | tee -a src/autoload.php
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
'%{php_home}/PhpParser4/autoload.php',
|
||||
[
|
||||
'%{php_home}/PhpParser5/autoload.php',
|
||||
'%{php_home}/PhpParser4/autoload.php',
|
||||
],
|
||||
]);
|
||||
EOF
|
||||
|
||||
|
|
@ -94,7 +96,7 @@ touch vendor/autoload.php
|
|||
|
||||
: Run upstream test suite
|
||||
ret=0
|
||||
for cmd in php php81 php82; do
|
||||
for cmd in php php81 php82 php83; do
|
||||
if which $cmd; then
|
||||
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
|
||||
%{_bindir}/phpunit10 || ret=1
|
||||
|
|
@ -115,6 +117,17 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Dec 21 2023 Remi Collet <remi@remirepo.net> - 3.2.0-1
|
||||
- update to 3.2.0
|
||||
- raise dependency on nikic/php-parser 4.18 and allow 5.0
|
||||
|
||||
* Thu Sep 28 2023 Remi Collet <remi@remirepo.net> - 3.1.0-1
|
||||
- update to 3.1.0
|
||||
|
||||
* Thu Aug 31 2023 Remi Collet <remi@remirepo.net> - 3.0.1-1
|
||||
- update to 3.0.1
|
||||
- Enable test suite
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-sebastian-complexity3-3.0.0-e67d240.tgz) = 228787b0e65690851f45d2c100cfaa674f06faa9339700f07c595d42ca4c63355e3c9cdfefa52513a111350071b470b8c9103d3d1e578feaed98dfbf082b7a33
|
||||
SHA512 (php-sebastian-complexity3-3.2.0-68ff824.tgz) = c4bbae7fd782adf1d5f86d95aa32f439cbdf6c9ac273b04671ca112cc789926c6279f63662743c0faea9cb18133eec31ac0d074f9e5eb30b392005a981402010
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue