From a3fe4f3bd988705bbf335b01b9b704db9b4544c5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 16 Jun 2020 08:22:44 +0200 Subject: [PATCH] update to 3.0.2 sources from git snapshot --- .gitignore | 1 + makesrc.sh | 28 ++++++++++++++++++++++++++++ php-phpunit-php-file-iterator3.spec | 11 ++++++++--- sources | 2 +- 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100755 makesrc.sh diff --git a/.gitignore b/.gitignore index 5153502..07c43af 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /php-phpunit-php-file-iterator3-3.0.0-354d4a5.tar.gz /php-phpunit-php-file-iterator3-3.0.1-4ac5b3e.tar.gz +/php-phpunit-php-file-iterator3-3.0.2-eba15e5.tgz diff --git a/makesrc.sh b/makesrc.sh new file mode 100755 index 0000000..4190c13 --- /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-iterator3.spec b/php-phpunit-php-file-iterator3.spec index 74e6fd7..f144488 100644 --- a/php-phpunit-php-file-iterator3.spec +++ b/php-phpunit-php-file-iterator3.spec @@ -8,7 +8,7 @@ # Please, preserve the changelog entries # %global bootstrap 0 -%global gh_commit 4ac5b3e13df14829daa60a2eb4fdd2f2b7d33cf4 +%global gh_commit eba15e538f2bb3fe018b7bbb47d2fe32d404bfd2 %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: 3.0.1 +Version: 3.0.2 Release: 1%{?dist} Summary: FilterIterator implementation that filters files based on a list of suffixes License: BSD 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} @@ -106,6 +107,10 @@ exit $ret %changelog +* Tue Jun 16 2020 Remi Collet - 3.0.2-1 +- update to 3.0.2 +- sources from git snapshot + * Sat Apr 18 2020 Remi Collet - 3.0.1-1 - update to 3.0.1 diff --git a/sources b/sources index fcc7cc3..b7a1d57 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpunit-php-file-iterator3-3.0.1-4ac5b3e.tar.gz) = c0b61d13d2a6492da83ffdbbf43cb5800f2d83f3e59fbf891039c4ce75d04994a6d0b46dfc7477294035138c2cd21f3eb2ec5de24042df2c4bac2eb3a9541eec +SHA512 (php-phpunit-php-file-iterator3-3.0.2-eba15e5.tgz) = 49977b10977ea7df148461084408ca53a0c704136daf06d6e8be8c08f8fb3ac7d4bfeaea56955dcbf4e8952157f4e2f11868ca0609eabb62acda7973ed1c268d