From d7873c9f5e69fcab3289ffe4957ff106f64e4973 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 14 Sep 2022 15:09:12 +0200 Subject: update to 3.0.5 sources from git snapshot --- makesrc.sh | 28 ++++++++++++++++++++++++++++ php-sebastian-comparator3.spec | 13 +++++++++---- 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100755 makesrc.sh 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-comparator3.spec b/php-sebastian-comparator3.spec index 8603d68..514c7d9 100644 --- a/php-sebastian-comparator3.spec +++ b/php-sebastian-comparator3.spec @@ -1,13 +1,13 @@ # remirepo/fedora spec file for php-sebastian-comparator3 # -# Copyright (c) 2014-2018 Remi Collet +# Copyright (c) 2014-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global bootstrap 0 -%global gh_commit c05dd1878ec74058a28a569c59fc5c53a8cc1c7a +%global gh_commit 1dc7ceb4a24aede938c7af2a9ed1de09609ca770 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project comparator @@ -24,13 +24,14 @@ %endif Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 3.0.4 +Version: 3.0.5 Release: 1%{?dist} Summary: Compare PHP values for equality 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.1 @@ -131,6 +132,10 @@ exit $ret %changelog +* Wed Sep 14 2022 Remi Collet - 3.0.5-1 +- update to 3.0.5 +- sources from git snapshot + * Wed Sep 14 2022 Remi Collet - 3.0.4-1 - update to 3.0.4 -- cgit