diff options
| author | Remi Collet <remi@remirepo.net> | 2026-04-21 14:08:02 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-04-21 14:08:02 +0200 |
| commit | 039465cd204bbc98926c186d6d023a9bb3a3db6d (patch) | |
| tree | 15b7adb1cfcd7c23005c39f7307226d478b79399 | |
| parent | 98fd9983762a51be819c99235a462e707f11ad2b (diff) | |
sources from github
| -rw-r--r-- | REFLECTION | 2 | ||||
| -rw-r--r-- | php-pecl-vld.spec | 53 |
2 files changed, 24 insertions, 31 deletions
@@ -1,4 +1,4 @@ -Extension [ <persistent> extension #121 vld version 0.19.1 ] { +Extension [ <persistent> extension #130 vld version 0.19.1 ] { - INI { Entry [ vld.active <SYSTEM> ] diff --git a/php-pecl-vld.spec b/php-pecl-vld.spec index 9e8bba1..914e130 100644 --- a/php-pecl-vld.spec +++ b/php-pecl-vld.spec @@ -11,24 +11,29 @@ %global pecl_name vld %global pie_vend derickr -%global pie_proj vld +%global pie_proj %{pecl_name} %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global ini_name 40-%{pecl_name}.ini -%global sources %{pecl_name}-%{version} -%global _configure ../%{sources}/configure +%global _configure ../configure + +# Github forge +%global gh_vend %{pie_vend} +%global gh_proj %{pie_proj} +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{version} -Summary: Dump the internal representation of PHP scripts Name: %{?scl_prefix}php-pecl-%{pecl_name} +Summary: Dump the internal representation of PHP scripts License: PHP-3.01 Version: 0.19.1 -Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} -URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://pecl.php.net/get/%{sources}.tgz +Release: 4%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 -BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -52,20 +57,13 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep -%setup -q -c - -sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml - -pushd %{sources} -#: Fix version -#sed -e 's/"0.16.0"/"%{version}"/' -i vld.c +%forgesetup : Check version if ! grep -q '"%{version}"' vld.c; then : Error: Upstream extension version, expecting %{version}. exit 1 fi -popd mkdir NTS %if %{with_zts} @@ -93,12 +91,11 @@ EOF %build %{?dtsenable} -cd %{sources} %{__phpize} [ -f Makefile.global ] && GLOBAL=Makefile.global || GLOBAL=build/Makefile.global sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL -cd ../NTS +cd NTS %configure \ --with-php-config=%{__phpconfig} %make_build @@ -119,21 +116,12 @@ cd ../ZTS # install config file install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} -# Install XML package description -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - %if %{with_zts} %make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation -cd %{sources} -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 - %check # Minimal load test for NTS extension @@ -150,9 +138,10 @@ done %files -%license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%license LICENSE +%doc CREDITS +%doc Changelog +%doc *.rst %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -164,6 +153,10 @@ done %changelog +* Tue Apr 21 2026 Remi Collet <remi@remirepo.net> - 0.19.1-4 +- drop pear/pecl dependency +- sources from github + * Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 0.19.1-3 - rebuild for PHP 8.5.0RC1 |
