diff options
| author | Remi Collet <remi@remirepo.net> | 2026-05-18 07:44:26 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-05-18 07:44:26 +0200 |
| commit | 26f4c3955d197fc10a74b71d0ab6113b714fa274 (patch) | |
| tree | 3211b43f1d0542c43311172ff831a8142fab411d | |
| parent | 1560e6faf72d1870f3ce2fab646fcf15c625ff0c (diff) | |
| -rw-r--r-- | composer.json | 2 | ||||
| -rwxr-xr-x | makesrc.sh | 26 | ||||
| -rw-r--r-- | php-sebastian-cli-parser4.spec | 18 |
3 files changed, 19 insertions, 27 deletions
diff --git a/composer.json b/composer.json index d8be843..1cab0ef 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^12.5.25" }, "config": { "platform": { @@ -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 || exit1 - 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-cli-parser4.spec b/php-sebastian-cli-parser4.spec index f75a03a..dae7f76 100644 --- a/php-sebastian-cli-parser4.spec +++ b/php-sebastian-cli-parser4.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-sebastian-cli-parser4 # -# SPDX-FileCopyrightText: Copyright 2020-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2020-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -10,11 +10,8 @@ %bcond_without tests # github -%global gh_commit 90f41072d220e5c40df6e8635f5dafba2d9d4d04 -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project cli-parser -%global gh_date 2025-09-14 # packagist %global pk_vendor sebastian %global pk_project %{gh_project} @@ -25,14 +22,14 @@ %global ns_project CliParser Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 4.2.0 +Version: 4.2.1 Release: 1%{?dist} Summary: Library for parsing CLI options, 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 @@ -41,8 +38,8 @@ BuildRequires: php(language) >= 8.3 BuildRequires: php-fedora-autoloader-devel >= 1.0.0 %if %{with tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^12.0" -BuildRequires: phpunit12 +# "phpunit/phpunit": "^12.5.25" +BuildRequires: phpunit12 >= 12.5.25 %endif # from composer.json, "require": { @@ -64,7 +61,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 @@ -105,6 +102,9 @@ exit $ret %changelog +* Mon May 18 2026 Remi Collet <remi@remirepo.net> - 4.2.1-1 +- update to 4.2.1 + * Mon Sep 15 2025 Remi Collet <remi@remirepo.net> - 4.2.0-1 - update to 4.2.0 |
