update to 7.0.17
sources from git snapshot
This commit is contained in:
parent
fb04a39f08
commit
6b468fb7e5
4 changed files with 44 additions and 15 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -12,3 +12,4 @@
|
||||||
/php-phpunit-php-code-coverage7-7.0.13-ad0dcd7.tar.gz
|
/php-phpunit-php-code-coverage7-7.0.13-ad0dcd7.tar.gz
|
||||||
/php-phpunit-php-code-coverage7-7.0.14-bb7c9a2.tar.gz
|
/php-phpunit-php-code-coverage7-7.0.14-bb7c9a2.tar.gz
|
||||||
/php-phpunit-php-code-coverage7-7.0.15-819f92b.tar.gz
|
/php-phpunit-php-code-coverage7-7.0.15-819f92b.tar.gz
|
||||||
|
/php-phpunit-php-code-coverage7-7.0.17-40a4ed1.tgz
|
||||||
|
|
|
||||||
28
makesrc.sh
Executable file
28
makesrc.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=$(basename $PWD)
|
||||||
|
OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec)
|
||||||
|
PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec)
|
||||||
|
VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec)
|
||||||
|
COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
|
||||||
|
SHORT=${COMMIT:0:7}
|
||||||
|
|
||||||
|
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n"
|
||||||
|
|
||||||
|
echo "Cloning..."
|
||||||
|
rm -rf $PROJECT-$COMMIT
|
||||||
|
git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
|
||||||
|
|
||||||
|
echo "Getting commit..."
|
||||||
|
pushd $PROJECT-$COMMIT
|
||||||
|
git checkout $COMMIT
|
||||||
|
cp composer.json ../composer.json
|
||||||
|
popd
|
||||||
|
|
||||||
|
echo "Archiving..."
|
||||||
|
tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs --exclude tools $PROJECT-$COMMIT
|
||||||
|
|
||||||
|
echo "Cleaning..."
|
||||||
|
rm -rf $PROJECT-$COMMIT
|
||||||
|
|
||||||
|
echo "Done."
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# remirepo/fedora spec file for php-phpunit-php-code-coverage7
|
# remirepo/fedora spec file for php-phpunit-php-code-coverage7
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013-2023 Remi Collet
|
# Copyright (c) 2013-2024 Remi Collet
|
||||||
# License: CC-BY-SA-4.0
|
# License: CC-BY-SA-4.0
|
||||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||||
#
|
#
|
||||||
|
|
@ -9,10 +9,10 @@
|
||||||
|
|
||||||
%global bootstrap 0
|
%global bootstrap 0
|
||||||
# Github
|
# Github
|
||||||
%global gh_commit 819f92bba8b001d4363065928088de22f25a3a48
|
%global gh_commit 40a4ed114a4aea5afd6df8d0f0c9cd3033097f66
|
||||||
#global gh_date 20150924
|
#global gh_date 20150924
|
||||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||||
%global gh_vendor sebastianbergmann
|
%global gh_owner sebastianbergmann
|
||||||
%global gh_project php-code-coverage
|
%global gh_project php-code-coverage
|
||||||
# Packagist
|
# Packagist
|
||||||
%global pk_vendor phpunit
|
%global pk_vendor phpunit
|
||||||
|
|
@ -29,8 +29,8 @@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: php-%{pk_vendor}-%{pk_project}%{ver_major}
|
Name: php-%{pk_vendor}-%{pk_project}%{ver_major}
|
||||||
Version: 7.0.15
|
Version: 7.0.17
|
||||||
Release: 8%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: PHP code coverage information
|
Summary: PHP code coverage information
|
||||||
|
|
||||||
# SPDX: Main license is BSD-3-Clause
|
# SPDX: Main license is BSD-3-Clause
|
||||||
|
|
@ -38,8 +38,9 @@ Summary: PHP code coverage information
|
||||||
# MIT: boostrap, d3, holder, html5shiv, jquery, respond
|
# MIT: boostrap, d3, holder, html5shiv, jquery, respond
|
||||||
# Apache-2.0: nvd3
|
# Apache-2.0: nvd3
|
||||||
License: BSD-3-Clause AND MIT AND Apache-2.0
|
License: BSD-3-Clause AND MIT AND Apache-2.0
|
||||||
URL: https://github.com/%{gh_vendor}/%{gh_project}
|
URL: https://github.com/%{gh_owner}/%{gh_project}
|
||||||
Source0: https://github.com/%{gh_vendor}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
|
Source0: %{name}-%{version}-%{gh_short}.tgz
|
||||||
|
Source1: makesrc.sh
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
|
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
|
||||||
|
|
@ -160,14 +161,9 @@ EOF
|
||||||
|
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
for cmd in php php74 php80 php81 php82; do
|
for cmd in php php81 php82 php83; do
|
||||||
if which $cmd; then
|
if which $cmd; then
|
||||||
if [ $($cmd -r 'echo PHP_VERSION_ID;') -lt 80000 ]; then
|
FILTER="--filter '^((?!(testCloverForFileWithIgnoredLines|testCloverForClassWithAnonymousFunction|testForFileWithIgnoredLines|testForClassWithAnonymousFunction|testForBankAccountTest|testGetLinesToBeIgnored3|testGetLinesToBeIgnoredOneLineAnnotations)).)*$'"
|
||||||
# ignore test failing with phpunit/php-token-stream v4
|
|
||||||
FILTER="--filter '^((?!(testCloverForFileWithIgnoredLines|testCloverForClassWithAnonymousFunction|testForFileWithIgnoredLines|testForClassWithAnonymousFunction)).)*$'"
|
|
||||||
else
|
|
||||||
FILTER="--filter '^((?!(testCloverForFileWithIgnoredLines|testCloverForClassWithAnonymousFunction|testForFileWithIgnoredLines|testForClassWithAnonymousFunction|testForBankAccountTest)).)*$'"
|
|
||||||
fi
|
|
||||||
$cmd $EXT \
|
$cmd $EXT \
|
||||||
-d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php \
|
-d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php \
|
||||||
%{_bindir}/phpunit8 \
|
%{_bindir}/phpunit8 \
|
||||||
|
|
@ -187,6 +183,10 @@ exit $ret
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 5 2024 Remi Collet <remi@remirepo.net> - 7.0.17-1
|
||||||
|
- update to 7.0.17
|
||||||
|
- sources from git snapshot
|
||||||
|
|
||||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.15-8
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.15-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (php-phpunit-php-code-coverage7-7.0.15-819f92b.tar.gz) = ba8921ddeacb6831baf922c80f62eb3d968036219e491f125737bd12db932b7dd97e88cb2466dce04dfeb14ca2e97af0e60d1de6b128ace13e2a51d4a6ebff1c
|
SHA512 (php-phpunit-php-code-coverage7-7.0.17-40a4ed1.tgz) = 6141c867d1d1992d1dc8b16e10db6f91d912e5cf70879d792def6796444a8b47e5815e8bb958156d20c08278c15efd5dd140c60a1ce876d8a7321f196c798f33
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue