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] rawhide: define RPM_NIKIC_PHP_PARSER_VERSION in autoloader
Date: Tue, 11 Aug 2026 05:27:51 GMT [thread overview]
Message-ID: <178642607177.1.5919234044091245548.rpms-php-nikic-php-parser5-55cec3fcbe0b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/php-nikic-php-parser5
Branch : rawhide
Commit : 55cec3fcbe0b43409ebd61ce7901812ee02d2b4a
Author : Remi Collet <remi@fedoraproject.org>
Date : 2026-08-11T07:27:41+02:00
Stats : +16/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/php-nikic-php-parser5/c/55cec3fcbe0b43409ebd61ce7901812ee02d2b4a?branch=rawhide
Log:
define RPM_NIKIC_PHP_PARSER_VERSION in autoloader
---
diff --git a/php-nikic-php-parser5.spec b/php-nikic-php-parser5.spec
index 4749850..c163a77 100644
--- a/php-nikic-php-parser5.spec
+++ b/php-nikic-php-parser5.spec
@@ -24,7 +24,7 @@
Name: php-%{gh_owner}-%{pk_project}%{major}
Version: 5.8.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A PHP parser written in PHP - version %{major}
License: BSD-3-Clause
@@ -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,9 @@ exit $ret
%changelog
+* Fri Aug 7 2026 Remi Collet <remi@remirepo.net> - 5.8.0-3
+- define RPM_NIKIC_PHP_PARSER_VERSION in autoloader
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 5.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-08-11 5: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=178642607177.1.5919234044091245548.rpms-php-nikic-php-parser5-55cec3fcbe0b@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