diff --git a/.gitignore b/.gitignore index f3db175..3225edc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ clog /php-phpunit-php-file-iterator2-2.0.3-4b49fb7.tar.gz /php-phpunit-php-file-iterator2-2.0.4-28af674.tar.gz /php-phpunit-php-file-iterator2-2.0.5-42c5ba5.tar.gz +/php-phpunit-php-file-iterator2-2.0.6-69deeb8.tgz diff --git a/makesrc.sh b/makesrc.sh new file mode 100755 index 0000000..3d8028d --- /dev/null +++ b/makesrc.sh @@ -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." diff --git a/php-phpunit-php-file-iterator2.spec b/php-phpunit-php-file-iterator2.spec index b3eb1c5..16e698f 100644 --- a/php-phpunit-php-file-iterator2.spec +++ b/php-phpunit-php-file-iterator2.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-phpunit-php-file-iterator2 # -# Copyright (c) 2009-2023 Christof Damian, Remi Collet +# Copyright (c) 2009-2024 Christof Damian, Remi Collet # # License: MIT # http://opensource.org/licenses/MIT @@ -8,7 +8,7 @@ # Please, preserve the changelog entries # %global bootstrap 0 -%global gh_commit 42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5 +%global gh_commit 69deeb8664f611f156a924154985fbd4911eb36b %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project php-file-iterator @@ -28,13 +28,14 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 2.0.5 -Release: 8%{?dist} +Version: 2.0.6 +Release: 1%{?dist} Summary: FilterIterator implementation that filters files based on a list of suffixes License: BSD-3-Clause URL: https://github.com/%{gh_owner}/%{gh_project} -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz +Source0: %{name}-%{version}-%{gh_short}.tgz +Source1: makesrc.sh BuildArch: noarch %if %{with_tests} @@ -86,7 +87,7 @@ touch vendor/autoload.php : Run upstream test suite ret=0 -for cmd in php php80 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}/phpunit8 --verbose || ret=1 @@ -106,6 +107,10 @@ exit $ret %changelog +* Fri Mar 1 2024 Remi Collet - 2.0.6-1 +- update to 2.0.6 (no change) +- sources from git snapshot + * Thu Jan 25 2024 Fedora Release Engineering - 2.0.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index e40fa67..0ace67c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpunit-php-file-iterator2-2.0.5-42c5ba5.tar.gz) = cbe51a5b9114b35b5aa1e4b498fe6c8bb832913d2a9b77993ebebed029856af13046abe61a5054c21c3fe8050992122be957a517dbe6ddb1c15d9f1538507b7a +SHA512 (php-phpunit-php-file-iterator2-2.0.6-69deeb8.tgz) = d2639d2c4c7f7431c10349965e75aae53c7fd32f48ec42508615a77d210be8dd7c0980c9e481b3c1255ac71f544e8e3bee9b0e729ce8aa110b29d2e7b36dc843