Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b368ed65c2 | ||
|
|
14f003e35d | ||
|
|
e8e551e3e4 | ||
|
|
10dab174c4 | ||
|
|
8d03d6ac97 | ||
|
|
3199cbe557 | ||
|
|
3a47a34ea3 | ||
|
|
c7d615660f | ||
|
|
623836ee9a | ||
|
|
cef1d56971 | ||
|
|
7cec9759c3 | ||
|
|
2736eedd37 |
3 changed files with 87 additions and 16 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1 +1,6 @@
|
|||
/php-phpspec-prophecy-phpunit-2.0.1-2d7a9df.tgz
|
||||
/php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz
|
||||
/php-phpspec-prophecy-phpunit-2.1.0-29f8114.tgz
|
||||
/php-phpspec-prophecy-phpunit-2.2.0-16e1247.tgz
|
||||
/php-phpspec-prophecy-phpunit-2.3.0-8819516.tgz
|
||||
/php-phpspec-prophecy-phpunit-2.4.0-d3c2804.tgz
|
||||
|
|
|
|||
|
|
@ -1,22 +1,22 @@
|
|||
# remirepo/fedora spec file for php-phpspec-prophecy-phpunit
|
||||
#
|
||||
# Copyright (c) 2020 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
# SPDX-FileCopyrightText: Copyright 2020-2025 Remi Collet
|
||||
# SPDX-License-Identifier: CECILL-2.1
|
||||
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%global gh_commit 2d7a9df55f257d2cba9b1d0c0963a54960657177
|
||||
%global gh_commit d3c28041d9390c9bca325a08c5b2993ac855bded
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner phpspec
|
||||
%global gh_project prophecy-phpunit
|
||||
|
||||
Name: php-%{gh_owner}-%{gh_project}
|
||||
Version: 2.0.1
|
||||
Release: 5%{?dist}
|
||||
Version: 2.4.0
|
||||
Release: 2%{?dist}
|
||||
Summary: Integrating the Prophecy mocking library in PHPUnit test cases
|
||||
|
||||
License: MIT
|
||||
|
|
@ -27,7 +27,10 @@ Source2: makesrc.sh
|
|||
BuildArch: noarch
|
||||
BuildRequires: php(language) >= 7.3
|
||||
%if %{with tests}
|
||||
BuildRequires: (php-composer(phpspec/prophecy) >= 1.3 with php-composer(phpspec/prophecy) < 2)
|
||||
BuildRequires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2)
|
||||
BuildRequires: phpunit12 >= 12.0
|
||||
BuildRequires: phpunit11 >= 11.0
|
||||
BuildRequires: phpunit10 >= 10.1
|
||||
BuildRequires: phpunit9 >= 9.1
|
||||
%endif
|
||||
# Autoloader
|
||||
|
|
@ -35,11 +38,11 @@ BuildRequires: php-fedora-autoloader-devel
|
|||
|
||||
# from composer.json, "requires": {
|
||||
# "php": "^7.3 || ^8",
|
||||
# "phpspec/prophecy": "^1.3",
|
||||
# "phpunit/phpunit":"^9.1"
|
||||
# "phpspec/prophecy": "^1.18",
|
||||
# "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0 || ^12.0"
|
||||
Requires: php(language) >= 7.3
|
||||
Requires: (php-composer(phpspec/prophecy) >= 1.3 with php-composer(phpspec/prophecy) < 2)
|
||||
Requires: phpunit9 >= 9.1
|
||||
Requires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2)
|
||||
Requires: (phpunit9 >= 9.1 or phpunit10 >= 10.1 or phpunit11 >= 11.0 or phpunit12 >= 12.0)
|
||||
# From phpcompatinfo report for version 2.0.1
|
||||
#none
|
||||
# Autoloader
|
||||
|
|
@ -78,22 +81,44 @@ cp -pr src/* %{buildroot}%{_datadir}/php/Prophecy/PhpUnit/
|
|||
%if %{with tests}
|
||||
: Dev autoloader
|
||||
mkdir vendor
|
||||
phpab --output vendor/autoload.php fixtures tests
|
||||
phpab --output vendor/autoload.php.in fixtures tests
|
||||
|
||||
cat << 'EOF' | tee -a vendor/autoload.php
|
||||
cat << 'EOF' | tee -a vendor/autoload.php.in
|
||||
require_once '%{buildroot}%{_datadir}/php/Prophecy/PhpUnit/autoload.php';
|
||||
require_once '%{_datadir}/php/@PHPUNIT@/autoload.php';
|
||||
EOF
|
||||
|
||||
: check autoloader
|
||||
php %{buildroot}%{_datadir}/php/Prophecy/PhpUnit/autoload.php
|
||||
|
||||
: Fix expecteed path
|
||||
sed -e 's:src/::' -i tests/MockFailure.phpt
|
||||
|
||||
: upstream test suite
|
||||
ret=0
|
||||
for cmd in php php73 php74 php80; do
|
||||
for cmd in php php81 php82 php83 php84; do
|
||||
if which $cmd; then
|
||||
sed -e 's/@PHPUNIT@/PHPUnit9/' vendor/autoload.php.in > vendor/autoload.php
|
||||
$cmd -d auto_prepend_file=vendor/autoload.php \
|
||||
%{_bindir}/phpunit9 || ret=1
|
||||
%{_bindir}/phpunit9 --no-coverage|| ret=1
|
||||
|
||||
sed -e 's/@PHPUNIT@/PHPUnit10/' vendor/autoload.php.in > vendor/autoload.php
|
||||
$cmd -d auto_prepend_file=vendor/autoload.php \
|
||||
%{_bindir}/phpunit10 --no-coverage|| ret=1
|
||||
fi
|
||||
done
|
||||
for cmd in php php82 php83 php84; do
|
||||
if which %{_bindir}/phpunit11 && which $cmd; then
|
||||
sed -e 's/@PHPUNIT@/PHPUnit11/' vendor/autoload.php.in > vendor/autoload.php
|
||||
$cmd -d auto_prepend_file=vendor/autoload.php \
|
||||
%{_bindir}/phpunit11 --no-coverage|| ret=1
|
||||
fi
|
||||
done
|
||||
for cmd in php php83 php84; do
|
||||
if which %{_bindir}/phpunit12 && which $cmd; then
|
||||
sed -e 's/@PHPUNIT@/PHPUnit12/' vendor/autoload.php.in > vendor/autoload.php
|
||||
$cmd -d auto_prepend_file=vendor/autoload.php \
|
||||
%{_bindir}/phpunit11 --no-coverage|| ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
|
|
@ -110,6 +135,47 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Mon May 26 2025 Remi Collet <remi@remirepo.net> - 2.4.0-1
|
||||
- update to 2.4.0 (no change)
|
||||
- allow phpunit12
|
||||
- re-license spec file to CECILL-2.1
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Nov 21 2024 Remi Collet <remi@remirepo.net> - 2.3.0-1
|
||||
- update to 2.3.0
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Fri Mar 1 2024 Remi Collet <remi@remirepo.net> - 2.2.0-1
|
||||
- update to 2.2.0
|
||||
- allow phpunit11
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Mon Dec 11 2023 Remi Collet <remi@remirepo.net> - 2.1.0-1
|
||||
- update to 2.1.0
|
||||
- raise dependency on phpspec/prophecy 1.18
|
||||
- allow phpunit9 or phpunit10
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Apr 19 2023 Remi Collet <remi@remirepo.net> - 2.0.2-1
|
||||
- update to 2.0.2
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-phpspec-prophecy-phpunit-2.0.1-2d7a9df.tgz) = 71cf6cfcb20d2371ca98f35add668503fa46fd508864976977834ef91ff52e4389a3fe9c5f0e8a07e5cbe3bf49fffeb7de16ebcf757077a9358d96e66bafe3c7
|
||||
SHA512 (php-phpspec-prophecy-phpunit-2.4.0-d3c2804.tgz) = 5075b397ef393ef4da8246eeb7087c6b6f3c4c654ff27e11396f58f8e75b1ec4562f114c07aaaa9b4dcf5718b4b337235bcf864236f9fb734dd7bf605b1f3069
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue