diff options
author | Remi Collet <remi@remirepo.net> | 2023-08-29 09:40:36 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-08-29 09:40:36 +0200 |
commit | 3c68b42bef4e4828e17b59654dd7946f50295550 (patch) | |
tree | 85bc3b88c7795d4ba9d07dd26ec7822fb1b4809f | |
parent | a38db89484f0615a1173accbae6a926390fe59a6 (diff) |
update to 1.0.5 (no change)
sources from git snapshot
-rwxr-xr-x | makesrc.sh | 28 | ||||
-rw-r--r-- | php-dasprid-enum.spec | 14 |
2 files changed, 38 insertions, 4 deletions
diff --git a/makesrc.sh b/makesrc.sh new file mode 100755 index 0000000..206a586 --- /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, Commit=$COMMIT\n" + +echo "Cloning..." +git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT + +echo "Getting commit..." +pushd $PROJECT-$COMMIT + git checkout $COMMIT || exit 1 + cp composer.json ../composer.json +popd + +echo "Archiving..." +tar czf $NAME-$VERSION-$SHORT.tgz --exclude .git $PROJECT-$COMMIT + +echo "Cleaning..." +rm -rf $PROJECT-$COMMIT + +echo "Done." + diff --git a/php-dasprid-enum.spec b/php-dasprid-enum.spec index 2abd0af..1b88a45 100644 --- a/php-dasprid-enum.spec +++ b/php-dasprid-enum.spec @@ -8,7 +8,7 @@ # %bcond_without tests -%global gh_commit 8e6b6ea76eabbf19ea2bf5b67b98e1860474012f +%global gh_commit 6faf451159fb8ba4126b925ed2d78acfce0dc016 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner DASPRiD %global gh_project Enum @@ -22,13 +22,15 @@ %global major %nil Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 1.0.4 +Version: 1.0.5 Release: 1%{?dist} Summary: PHP enum implementation License: BSD-2-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 +# git snapshot to retrieve test suite removed by .gitattributes +Source0: %{name}-%{version}-%{gh_short}.tgz +Source1: makesrc.sh BuildArch: noarch %if %{with tests} @@ -98,7 +100,7 @@ require '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php'; EOF ret=0 -for cmd in "php %{phpunit}" php80 php81 php82; do +for cmd in "php %{phpunit}" php80 php81 php82 php83; do if which $cmd; then set $cmd $1 ${2:-%{_bindir}/phpunit9} --verbose || ret=1 @@ -120,6 +122,10 @@ exit $ret %changelog +* Tue Aug 29 2023 Remi Collet <remi@remirepo.net> - 1.0.5-1 +- update to 1.0.5 (no change) +- sources from git snapshot + * Thu Mar 2 2023 Remi Collet <remi@remirepo.net> - 1.0.4-1 - update to 1.0.4 |