public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php-nikic-php-parser5] epel10: v5.8.0
Date: Tue, 07 Jul 2026 04:27:55 GMT	[thread overview]
Message-ID: <178339847522.1.14924121745586007013.rpms-php-nikic-php-parser5-161cde4d0999@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/php-nikic-php-parser5
            Branch : epel10
            Commit : 161cde4d09995da0cc224b9861c845af68c03380
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2026-07-07T06:27:47+02:00
            Stats  : +24/-34 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/php-nikic-php-parser5/c/161cde4d09995da0cc224b9861c845af68c03380?branch=epel10

            Log:
            v5.8.0

(cherry picked from commit fb384d941c3e9f3ba080918721ad334310272b49)
(cherry picked from commit d896be58b6038f0aef7b45ce8f39cae6dffd4bdb)

---
diff --git a/.gitignore b/.gitignore
index 89a8d22..adb9834 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
 /php-nikic-php-parser5-5.6.1-f103601.tgz
 /php-nikic-php-parser5-5.6.2-3a454ca.tgz
 /php-nikic-php-parser5-5.7.0-dca41cd.tgz
+/php-nikic-php-parser5-5.8.0.tgz

diff --git a/makesrc.sh b/makesrc.sh
index ade795f..7676644 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -3,32 +3,25 @@
 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 '/^%global upstream_version/{s/.* //;p}'  $NAME.spec)
-PREVER=$(sed -n '/^%global upstream_prever/{s/.* //;p}'  $NAME.spec)
-COMMIT=$(sed  -n '/^%global gh_commit/{s/.* //;p}'  $NAME.spec)
-SHORT=${COMMIT:0:7}
+VERSION=$(sed -n '/^Version:/{s/.* //;p}'           $NAME.spec)
 
-echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION$PREVER, Commit=$COMMIT\n"
-
-TAR=$NAME-$VERSION$PREVER-$SHORT.tgz
-
-if [ -f $TAR ]; then
-	echo "Skip $TAR"
+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	\n"
+
 	echo "Cloning..."
-	git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
+	rm -rf $PROJECT-$VERSION
+	git clone https://github.com/$OWNER/$PROJECT.git --depth 1 --branch v$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 $TAR --exclude-vcs $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-nikic-php-parser5.spec b/php-nikic-php-parser5.spec
index 9c13017..89631d1 100644
--- a/php-nikic-php-parser5.spec
+++ b/php-nikic-php-parser5.spec
@@ -1,6 +1,6 @@
 # remirepo/fedora spec file for php-nikic-php-parser5
 #
-# SPDX-FileCopyrightText:  Copyright 2016-2025 Remi Collet
+# SPDX-FileCopyrightText:  Copyright 2016-2026 Remi Collet
 # SPDX-License-Identifier: CECILL-2.1
 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 #
@@ -14,27 +14,23 @@
 %bcond_with    tests
 %endif
 
-%global gh_commit    dca41cd15c2ac9d055ad70dbfd011130757d1f82
-%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
 %global gh_owner     nikic
 %global gh_project   PHP-Parser
 %global pk_project   php-parser
 %global php_home     %{_datadir}/php
 %global ns_project   PhpParser
 %global major        5
-
-%global upstream_version 5.7.0
-#global upstream_prever  rc1
+%global forgeurl     https://github.com/%{gh_owner}/%{gh_project}
 
 Name:           php-%{gh_owner}-%{pk_project}%{major}
-Version:        %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
+Version:        5.8.0
 Release:        1%{?dist}
 Summary:        A PHP parser written in PHP - version %{major}
 
 License:        BSD-3-Clause
-URL:            https://github.com/%{gh_owner}/%{gh_project}
+URL:            %{forgeurl}
 # run makesrc.sh to create a git snapshot with test suite
-Source0:        %{name}-%{upstream_version}%{?upstream_prever}-%{gh_short}.tgz
+Source0:        %{name}-%{version}.tgz
 Source1:        makesrc.sh
 
 # Autoloader
@@ -45,7 +41,6 @@ BuildArch:      noarch
 # For tests
 BuildRequires:  php(language) >= 7.4
 BuildRequires:  php-tokenizer
-BuildRequires:  php-ctype
 BuildRequires:  php-json
 # From composer.json, "require-dev": {
 #        "phpunit/phpunit": "^9.0",
@@ -59,12 +54,10 @@ BuildRequires:  php-fedora-autoloader-devel
 # From composer.json, "require": {
 #        "php": ">=7.4",
 #        "ext-tokenizer": "*",
-#        "ext-json": "*",
-#        "ext-ctype": "*"
+#        "ext-json": "*"
 Requires:       php(language) >= 7.4
 Requires:       php-tokenizer
 Requires:       php-json
-Requires:       php-ctype
 # From phpcompatinfo report for version 5.0.0
 Requires:       php-cli
 # Autoloader
@@ -85,7 +78,7 @@ Autoloader: %{php_home}/%{ns_project}%{major}/autoload.php
 
 
 %prep
-%setup -q -n %{gh_project}-%{gh_commit}
+%setup -q -n %{gh_project}-%{version}
 
 %patch -P0 -p1 -b .rpm
 
@@ -123,7 +116,7 @@ AUTOLOAD
 
 : Upstream test suite
 ret=0
-for cmdarg in "php %{phpunit}" php81 php82 php83 php84 php85; do
+for cmdarg in "php %{phpunit}" php82 php83 php84 php85 php86; do
   if which $cmdarg; then
     set $cmdarg
     $1 -d include_path=%{php_home} \
@@ -146,6 +139,9 @@ exit $ret
 
 
 %changelog
+* Mon Jul  6 2026 Remi Collet <remi@remirepo.net> - 5.8.0-1
+- update to 5.8.0
+
 * Tue Dec  9 2025 Remi Collet <remi@remirepo.net> - 5.7.0-1
 - update to 5.7.0
 

diff --git a/sources b/sources
index ec881d5..f79dcd9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (php-nikic-php-parser5-5.7.0-dca41cd.tgz) = 8222a9547323f76cbec5cbb7a43a5080612a2eaeb76190b555395b585718d9236ad6191092bbcd669555efa6b5b22361166d42543e073a2b68c7c14ff3c3ccc6
+SHA512 (php-nikic-php-parser5-5.8.0.tgz) = 6a65ec470175c21e5424ea7577fc1f682b9f5aa02c12f4ec788124ed8e5892f1d572adbf6a0cefa98898cd4128d89f4ae507a6a269e71ec012787686a5c769af

                 reply	other threads:[~2026-07-07  4:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178339847522.1.14924121745586007013.rpms-php-nikic-php-parser5-161cde4d0999@fedoraproject.org \
    --to=remi@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox