diff options
author | Remi Collet <remi@remirepo.net> | 2024-02-05 09:36:00 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-02-05 09:36:00 +0100 |
commit | b1300140f233c431c0496b1dba7683f6649f7fe3 (patch) | |
tree | 5d0700fd7bd562c9858f2863b9d80fbd1f799abb | |
parent | 62903f21ad07faea660c7213588097b639ce6103 (diff) |
update to 5.0.0
raise dependency on PHP 8.2
rename to php-sebastian-version5
move to /usr/share/php/SebastianBergmann/Version5
-rw-r--r-- | composer.json | 9 | ||||
-rwxr-xr-x | makesrc.sh | 9 | ||||
-rw-r--r-- | php-sebastian-version5.spec | 48 |
3 files changed, 41 insertions, 25 deletions
diff --git a/composer.json b/composer.json index 88b1589..ff88c33 100644 --- a/composer.json +++ b/composer.json @@ -11,18 +11,19 @@ } ], "support": { - "issues": "https://github.com/sebastianbergmann/version/issues" + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy" }, "config": { "platform": { - "php": "7.4.0" + "php": "8.2.0" }, "optimize-autoloader": true, "sort-packages": true }, "prefer-stable": true, "require": { - "php": ">=7.4" + "php": ">=8.2" }, "autoload": { "classmap": [ @@ -31,7 +32,7 @@ }, "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } } } @@ -1,20 +1,23 @@ #!/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 '/^%global upstream_version/{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" else - echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n" + echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Date=$DATE\n" echo "Cloning..." rm -rf $PROJECT-$COMMIT - git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT + git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1 echo "Getting commit..." pushd $PROJECT-$COMMIT diff --git a/php-sebastian-version5.spec b/php-sebastian-version5.spec index d60fb02..e7cf35a 100644 --- a/php-sebastian-version5.spec +++ b/php-sebastian-version5.spec @@ -1,46 +1,43 @@ -# remirepo/fedora spec file for php-sebastian-version4 +# remirepo/fedora spec file for php-sebastian-version5 # -# Copyright (c) 2013-2021 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2013-2024 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit c4a4bb93c63e7449e849b1c80a7083fec21dbdc7 +%global gh_commit 13999475d2cb1ab33cb73403ba356a814fdbb001 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project version -%global gh_date 20210216 +%global gh_date 2024-02-02 # Packagist %global pk_vendor sebastian %global pk_project %{gh_project} # Namespace (fake ns_project as not PSR-4 compliant) %global ns_vendor SebastianBergmann %global ns_project Version -%global ver_major 4 +%global ver_major 5 %global php_home %{_datadir}/php -%global upstream_version 4.0.0 -%global upstream_prever dev - Name: php-%{pk_vendor}-%{pk_project}%{ver_major} -Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?gh_date:.%{gh_date}.%{gh_short}}%{?dist} +Version: 5.0.0 +Release: 1%{?dist} Summary: Managing the version number of Git-hosted PHP projects, version %{ver_major} License: BSD-3-Clause URL: https://github.com/%{gh_owner}/%{gh_project} -Source0: %{name}-%{upstream_version}-%{gh_short}.tgz +Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -BuildRequires: php(language) >= 7.4 +BuildRequires: php(language) >= 8.2 BuildRequires: php-cli BuildRequires: php-fedora-autoloader-devel # From composer.json, "require": { -# "php": ">=7.4" -Requires: php(language) >= 7.4 +# "php": ">=8.2" +Requires: php(language) >= 8.2 Requires: git # Autoloader Requires: php-composer(fedora/autoloader) @@ -52,6 +49,10 @@ Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version} Library that helps with managing the version number of Git-hosted PHP projects. +This package provides version %{ver_major} of %{pk_vendor}/%{pk_project} library. + +Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{ver_major}/autoload.php + %prep %setup -q -n %{gh_project}-%{gh_commit} @@ -87,9 +88,20 @@ exit (class_exists("%{ns_vendor}\\%{ns_project}") ? 0 : 1); %changelog -* Tue Mar 16 2021 Remi Collet <remi@remirepo.net> - 4.0.0~dev-1.20210216.c4a4bb9 -- update to 4.0.0 dev -- raise dependency on PHP 7.4 +* Mon Feb 5 2024 Remi Collet <remi@remirepo.net> - 5.0.0-1 +- update to 5.0.0 +- raise dependency on PHP 8.2 +- rename to php-sebastian-version5 +- move to /usr/share/php/SebastianBergmann/Version5 + +* Tue Jun 6 2023 Remi Collet <remi@remirepo.net> - 4.0.1-1 +- update to 4.0.1 (no change) + +* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 4.0.0-1 +- update to 4.0.0 +- raise dependency on PHP 8.1 +- rename to php-sebastian-version4 +- move to /usr/share/php/SebastianBergmann/Version4 * Mon Sep 28 2020 Remi Collet <remi@remirepo.net> - 3.0.2-1 - update to 3.0.2 (no change) |