From 8ac9b9b78aa8d3b83662b9d7f236850a1b6d66eb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Apr 2026 06:57:22 +0200 Subject: update to 8.1.0 --- composer.json | 2 +- makesrc.sh | 26 +++++++++----------------- php-sebastian-comparator8.spec | 14 +++++++------- 3 files changed, 17 insertions(+), 25 deletions(-) diff --git a/composer.json b/composer.json index 9490160..e4e13b1 100644 --- a/composer.json +++ b/composer.json @@ -59,7 +59,7 @@ }, "extra": { "branch-alias": { - "dev-main": "8.0-dev" + "dev-main": "8.1-dev" } } } diff --git a/makesrc.sh b/makesrc.sh index ac0c720..59cf430 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -1,35 +1,27 @@ #!/bin/bash NAME=$(basename $PWD) -DATE=$(sed -n '/^%global gh_date/{s/.* //;p}' $NAME.spec) 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} -DATE=$(date -d "$DATE -4 days" +%Y-%m-%d) - -if [ -f $NAME-$VERSION-$SHORT.tgz ]; then - echo "$NAME-$VERSION-$SHORT.tgz already there" +if [ -f $NAME-$VERSION.tgz ]; then + echo "$NAME-$VERSION.tgz already there" else - echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Date=$DATE\n" + echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION \n" echo "Cloning..." - rm -rf $PROJECT-$COMMIT - git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 + rm -rf $PROJECT-$VERSION + git clone https://github.com/$OWNER/$PROJECT.git --depth 1 --branch $VERSION $PROJECT-$VERSION || exit 1 - echo "Getting commit..." - pushd $PROJECT-$COMMIT - git checkout $COMMIT || exit 1 - cp composer.json ../composer.json - popd + echo "Getting composer..." + cp $PROJECT-$VERSION/composer.json composer.json echo "Archiving..." - tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs --exclude tools $PROJECT-$COMMIT + tar czf $NAME-$VERSION.tgz --exclude-vcs --exclude tools $PROJECT-$VERSION echo "Cleaning..." - rm -rf $PROJECT-$COMMIT + rm -rf $PROJECT-$VERSION echo "Done." fi diff --git a/php-sebastian-comparator8.spec b/php-sebastian-comparator8.spec index 24774a0..650ef9f 100644 --- a/php-sebastian-comparator8.spec +++ b/php-sebastian-comparator8.spec @@ -9,11 +9,8 @@ %bcond_without tests -%global gh_commit 29b232ddc29c2b114c0358c69b3084e7c3da0d58 -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project comparator -%global gh_date 2026-02-06 # Packagist %global pk_vendor sebastian %global pk_project %{gh_project} @@ -24,14 +21,14 @@ %global ns_project Comparator Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 8.0.0 -Release: 2%{?dist} +Version: 8.1.0 +Release: 1%{?dist} Summary: Compare PHP values for equality, version %{major} License: BSD-3-Clause URL: https://github.com/%{gh_owner}/%{gh_project} # run makesrc.sh to create a git snapshot with test suite -Source0: %{name}-%{version}-%{gh_short}.tgz +Source0: %{name}-%{version}.tgz Source1: makesrc.sh BuildArch: noarch @@ -76,7 +73,7 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php %prep -%setup -q -n %{gh_project}-%{gh_commit} +%setup -q -n %{gh_project}-%{version} %build @@ -124,6 +121,9 @@ exit $ret %changelog +* Tue Apr 7 2026 Remi Collet - 8.1.0-1 +- update to 8.1.0 + * Tue Feb 10 2026 Remi Collet - 8.0.0-2 - enable test suite -- cgit