From 9bb58ae1523b2f2cc7f0dee95d64ead1fada43fc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 16 Jun 2020 08:53:02 +0200 Subject: [PATCH] update to 1.0.3 (no change) sources from git snapshot --- .gitignore | 1 + makesrc.sh | 28 ++++++++++++++++++++++++++++ php-sebastian-code-unit.spec | 11 ++++++++--- sources | 2 +- 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100755 makesrc.sh diff --git a/.gitignore b/.gitignore index 9cb84be..e756223 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /php-sebastian-code-unit-1.0.0-8d8f09b.tar.gz /php-sebastian-code-unit-1.0.1-00d2094.tar.gz /php-sebastian-code-unit-1.0.2-ac95808.tar.gz +/php-sebastian-code-unit-1.0.3-d650ef9.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-sebastian-code-unit.spec b/php-sebastian-code-unit.spec index 9c8ca6a..df0e4c5 100644 --- a/php-sebastian-code-unit.spec +++ b/php-sebastian-code-unit.spec @@ -8,7 +8,7 @@ # %global bootstrap 0 # Sources -%global gh_commit ac958085bc19fcd1d36425c781ef4cbb5b06e2a5 +%global gh_commit d650ef9b1fece15ed4d6eaed6e6b469b7b81183a %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project code-unit @@ -27,13 +27,14 @@ %endif Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 1.0.2 +Version: 1.0.3 Release: 1%{?dist} Summary: Collection of value objects that represent the PHP code units 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 BuildRequires: php(language) >= 7.3 @@ -117,6 +118,10 @@ exit $ret %changelog +* Tue Jun 16 2020 Remi Collet - 1.0.3-1 +- update to 1.0.3 (no change) +- sources from git snapshot + * Thu Apr 30 2020 Remi Collet - 1.0.2-1 - update to 1.0.2 diff --git a/sources b/sources index e90f9f2..52a927f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-sebastian-code-unit-1.0.2-ac95808.tar.gz) = 3083c205f6a05f18083475e5d891167e9db401ef22e61f332a0d3af96b52a9d112e66c45caae69a6d619528facf245906f4280f544e4d87ccc2e41b0fcc0f111 +SHA512 (php-sebastian-code-unit-1.0.3-d650ef9.tgz) = 6182f4f6d9368536d74f479281b38a46173f8877cab0de4ca03e5214a82262fc2182f8e33800fb0ecca35abacede992724e51e6711f615951935d3a100e29574