public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-ast] epel10: v1.1.4.
@ 2026-10-29  8:50 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-10-29  8:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/php-ast
Branch : epel10
Commit : 0f8fdbe2c7826261fee2fd8f85a3fb8f8eb67012
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2026-10-29T09:50:21+01:00
Stats  : +29/-35 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/php-ast/c/0f8fdbe2c7826261fee2fd8f85a3fb8f8eb67012?branch=epel10

Log:
v1.1.4.

---
diff --git a/.gitignore b/.gitignore
index 1053d60..aa3ab62 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,4 @@ clog
 /ast-1.1.1.tgz
 /ast-1.1.2.tgz
 /ast-1.1.3.tgz
+/php-ast-1.1.4.tar.gz

diff --git a/php-ast.spec b/php-ast.spec
index 0cd138d..38895ac 100644
--- a/php-ast.spec
+++ b/php-ast.spec
@@ -3,7 +3,7 @@
 #
 # remirepo spec file for php-ast
 #
-# SPDX-FileCopyrightText:  Copyright 2015-2025 Remi Collet
+# SPDX-FileCopyrightText:  Copyright 2015-2026 Remi Collet
 # SPDX-License-Identifier: CECILL-2.1
 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 #
@@ -15,29 +15,35 @@
 %global pie_proj    php-ast
 # After 20-tokenizer.ini
 %global ini_name    40-%{pecl_name}.ini
-%global sources     %{pecl_name}-%{version}
+
+# Github forge
+%global gh_vend     nikic
+%global gh_proj     php-ast
+%global forgeurl    https://github.com/%{gh_vend}/%{gh_proj}
 
 Summary:       Abstract Syntax Tree
 Name:          php-ast
-Version:       1.1.3
-Release:       1%{?dist}
 License:       BSD-3-Clause
-URL:           https://pecl.php.net/package/ast
-Source0:       httpd://pecl.php.net/get/%{sources}.tgz
+Version:       1.1.4
+Release:       1%{?dist}
+%forgemeta
+URL:           %{forgeurl}
+Source0:       %{forgesource}
 
 ExcludeArch:   %{ix86}
 
 BuildRequires: make
 BuildRequires: gcc
-BuildRequires: php-devel >= 7.2
-BuildRequires: php-pear
+# Ensure default PHP 8.3 on EPEL-10
+BuildRequires: (php-devel >= 8.3 with php-devel < 8.4)
 BuildRequires: php-tokenizer
 
-# PECL/PIE
+# PECL
 Provides:      php-pecl-%{pecl_name}            = %{version}-%{release}
 Provides:      php-pecl-%{pecl_name}%{?_isa}    = %{version}-%{release}
 Provides:      php-pecl(%{pecl_name})           = %{version}
 Provides:      php-pecl(%{pecl_name})%{?_isa}   = %{version}
+# PIE
 Provides:      php-pie(%{pie_vend}/%{pie_proj}) = %{version}
 Provides:      php-%{pie_vend}-%{pie_proj}      = %{version}
 
@@ -51,21 +57,14 @@ This extension exposes the abstract syntax tree generated by PHP 7.
 
 
 %prep
-%setup -qc
+%forgesetup
 
-# Don't install/register tests
-sed -e 's/role="test"/role="src"/' \
-    -e '/LICENSE/s/role="doc"/role="src"/' \
-    -i package.xml
-
-cd %{sources}
 # Sanity check, really often broken
 extver=$(sed -n '/#define PHP_AST_VERSION/{s/.* "//;s/".*$//;p}' php_ast.h)
 if test "x${extver}" != "x%{version}"; then
    : Error: Upstream extension version is ${extver}, expecting %{version}.
    exit 1
 fi
-cd ..
 
 # Drop in the bit of configuration
 cat << 'EOF' | tee %{ini_name}
@@ -75,7 +74,6 @@ EOF
 
 
 %build
-cd %{sources}
 %{__phpize}
 sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
@@ -87,26 +85,14 @@ sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
 
 
 %install
-cd %{sources}
-
 : Install the extension
 %make_install
 
-: Install XML package description
-install -D -m 644 ../package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
 : Install the configuration file
-install -D -m 644 ../%{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
-
-: Documentation
-for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
-done
+install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
 
 
 %check
-cd %{sources}
-
 : Minimal load test for the extension
 %{__php} --no-php-ini \
     --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
@@ -118,15 +104,22 @@ TEST_PHP_ARGS="-n -d extension=tokenizer.so -d extension=%{buildroot}%{php_extdi
 
 
 %files
-%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%license LICENSE
+%doc composer.json
+%doc *.md
+%doc ast_stub.php
+%doc util.php
 
 %config(noreplace) %{php_inidir}/%{ini_name}
 %{php_extdir}/%{pecl_name}.so
 
 
 %changelog
+* Thu Oct 29 2026 Remi Collet <remi@remirepo.net> - 1.1.4-1
+- update to 1.1.4
+- drop pear/pecl dependency
+- sources from github
+
 * Fri Aug 29 2025 Remi Collet <remi@remirepo.net> - 1.1.3-1
 - update to 1.1.3
 - re-license spec file to CECILL-2.1

diff --git a/sources b/sources
index c0cab25..bb78606 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (ast-1.1.3.tgz) = 39126ace145a097687676ffefaa8d8112d729ccfeaca2b79702a13ea52ab1ef3f2981f245310a5bb7b362db91c41770cc8d376cb716e6aaa178684c4692199f8
+SHA512 (php-ast-1.1.4.tar.gz) = ed00a0a38c094aff09cd623a75fa85f30fb101902a8b333015ebd7d02dd4aab331bc3880add803a157ab460b179cffb861d50a5d18210115b6b73daf05ae35e4

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

only message in thread, other threads:[~2026-10-29  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29  8:50 [rpms/php-ast] epel10: v1.1.4 Remi Collet

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