diff --git a/.gitignore b/.gitignore index 1580524..cedb029 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /phpunit9-9.0.2-c0ecbfb.tar.gz /phpunit9-9.1.3-a747804.tar.gz /phpunit9-9.1.4-2d7080c.tar.gz +/phpunit9-9.1.5-1b570cd.tgz diff --git a/makesrc.sh b/makesrc.sh new file mode 100755 index 0000000..8152336 --- /dev/null +++ b/makesrc.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +NAME=$(basename $PWD) +OWNER=$(sed -n '/^%global gh_vendor/{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/phpunit9.spec b/phpunit9.spec index 5034ca3..911a4f5 100644 --- a/phpunit9.spec +++ b/phpunit9.spec @@ -11,7 +11,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 2d7080c622cf7884992e7c3cf87853877bae8ff4 +%global gh_commit 1b570cd7edbe136055bf5f651857dc8af6b829d2 #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -24,17 +24,17 @@ %global php_home %{_datadir}/php %global ver_major 9 %global ver_minor 1 -%global ver_patch 4 %global specrel 1 Name: %{pk_project}%{ver_major} -Version: %{ver_major}.%{ver_minor}.%{ver_patch} +Version: 9.1.5 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: The PHP Unit Testing framework version %{ver_major} License: BSD URL: https://github.com/%{gh_vendor}/%{gh_project} -Source0: https://github.com/%{gh_vendor}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz +Source0: %{name}-%{version}-%{gh_short}.tgz +Source1: makesrc.sh # Fix command for autoload Patch0: %{name}-rpm.patch @@ -244,6 +244,10 @@ exit $ret %changelog +* Sat May 23 2020 Remi Collet - 9.1.5-1 +- update to 9.1.5 +- sources from git snapshot + * Thu Apr 30 2020 Remi Collet - 9.1.4-1 - update to 9.1.4 - raise dependency on sebastian/code-unit 1.0.2 diff --git a/sources b/sources index 537dcbc..4ce2cca 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phpunit9-9.1.4-2d7080c.tar.gz) = 82466806e42639318db1b93b71eceb4185d5f9570df8bf984635abf618c558b77a02d18f75fca41b624e3a547e0d3abcf63c115dcccb1c2d000f7608f22531ba +SHA512 (phpunit9-9.1.5-1b570cd.tgz) = e7c8977f4de232e59256d7d618b1141abb9d4bdc494394ecfdd0de2acb78b2fc1a05225db332a0bdbef1bd9f7227a1ab252e9a448ac712f318e87631b1158f19