public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-nikic-php-parser5] epel10: define RPM_NIKIC_PHP_PARSER_VERSION in autoloader
@ 2026-09-15  6:22 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-09-15  6:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/php-nikic-php-parser5
            Branch : epel10
            Commit : 2a4ac3731f793029c3ab1e3523e7224aecd23f2d
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2026-09-15T08:21:46+02:00
            Stats  : +19/-2 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/php-nikic-php-parser5/c/2a4ac3731f793029c3ab1e3523e7224aecd23f2d?branch=epel10

            Log:
            define RPM_NIKIC_PHP_PARSER_VERSION in autoloader

(cherry picked from commit 55cec3fcbe0b43409ebd61ce7901812ee02d2b4a)

v5.9.0

(cherry picked from commit c4c68645919f6cfcb9c0e93f2506b5c8546a6d38)

---
diff --git a/.gitignore b/.gitignore
index adb9834..8f706e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
 /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
+/php-nikic-php-parser5-5.9.0.tgz

diff --git a/php-nikic-php-parser5.spec b/php-nikic-php-parser5.spec
index 89631d1..211b652 100644
--- a/php-nikic-php-parser5.spec
+++ b/php-nikic-php-parser5.spec
@@ -23,7 +23,7 @@
 %global forgeurl     https://github.com/%{gh_owner}/%{gh_project}
 
 Name:           php-%{gh_owner}-%{pk_project}%{major}
-Version:        5.8.0
+Version:        5.9.0
 Release:        1%{?dist}
 Summary:        A PHP parser written in PHP - version %{major}
 
@@ -90,6 +90,11 @@ phpab --template fedora \
       --output lib/%{ns_project}/autoload.php \
       lib/%{ns_project}
 
+cat << 'EOF' | tee -a lib/%{ns_project}/autoload.php
+
+@define('RPM_NIKIC_PHP_PARSER_VERSION', '%{version}');
+EOF
+
 
 %install
 : Library
@@ -101,6 +106,13 @@ install -Dpm 0755 bin/php-parse %{buildroot}%{_bindir}/php-parse%{major}
 
 
 %check
+: Test autoloader and exported constant
+php -r '
+require "%{buildroot}/%{php_home}/%{ns_project}%{major}/autoload.php";
+var_dump(RPM_NIKIC_PHP_PARSER_VERSION);
+exit (RPM_NIKIC_PHP_PARSER_VERSION !== "%{version}");
+'
+
 %if %{with tests}
 : Test the command
 sed -e 's:%{php_home}:%{buildroot}%{php_home}:' \
@@ -139,6 +151,10 @@ exit $ret
 
 
 %changelog
+* Mon Sep 14 2026 Remi Collet <remi@remirepo.net> - 5.9.0-1
+- update to 5.9.0
+- define RPM_NIKIC_PHP_PARSER_VERSION in autoloader
+
 * Mon Jul  6 2026 Remi Collet <remi@remirepo.net> - 5.8.0-1
 - update to 5.8.0
 

diff --git a/sources b/sources
index f79dcd9..964d595 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (php-nikic-php-parser5-5.8.0.tgz) = 6a65ec470175c21e5424ea7577fc1f682b9f5aa02c12f4ec788124ed8e5892f1d572adbf6a0cefa98898cd4128d89f4ae507a6a269e71ec012787686a5c769af
+SHA512 (php-nikic-php-parser5-5.9.0.tgz) = cddac55e20790440075ce1af8121b2b02a6b1d3719e37d31ba6c593a512c2213d84352109903ba2d51bd8edb880959267b808c315985a5913e74847fa92b0a25

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-15  6:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15  6:22 [rpms/php-nikic-php-parser5] epel10: define RPM_NIKIC_PHP_PARSER_VERSION in autoloader Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox