diff options
| author | Remi Collet <remi@remirepo.net> | 2026-03-12 08:44:28 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-03-12 08:44:28 +0100 |
| commit | 33d9494a144487c5f14775aea7d55c7ec0b6c6d0 (patch) | |
| tree | 46579087d2b6700fba141027f925b94e6758bd02 | |
| parent | 7009531be25ba4a227e176a94268a62bc1c9da58 (diff) | |
sources from github
| -rw-r--r-- | composer.json | 12 | ||||
| -rw-r--r-- | php-pecl-raphf.spec | 70 |
2 files changed, 49 insertions, 33 deletions
diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..81ae894 --- /dev/null +++ b/composer.json @@ -0,0 +1,12 @@ +{ + "name": "m6w6/ext-raphf", + "type": "php-ext", + "license": "BSD-2-Clause", + "description": "Resource and Persistent Handle Factory (internal)", + "require": { + "php": ">= 7.0.0" + }, + "php-ext": { + "extension-name": "raphf" + } +} diff --git a/php-pecl-raphf.spec b/php-pecl-raphf.spec index 4228678..da6b166 100644 --- a/php-pecl-raphf.spec +++ b/php-pecl-raphf.spec @@ -14,29 +14,37 @@ # tests disabled because of circular dependency on pecl/http # tests requires pecl/http 2.0.0 -%bcond_with tests - -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global pecl_name raphf -%global pie_vend m6w6 -%global pie_proj ext-raphf -#global prever RC1 -%global ini_name 40-%{pecl_name}.ini -%global sources %{pecl_name}-%{version} -%global _configure ../%{sources}/configure +%bcond_with tests + +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global pecl_name raphf +%global pie_vend m6w6 +%global pie_proj ext-raphf +#global prever RC1 +%global ini_name 40-%{pecl_name}.ini +%global sources %{archivename} +%global _configure ../%{sources}/configure + +# Github forge +%global gh_vend m6w6 +%global gh_proj ext-raphf +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag v%{version} +# for EL-8 to avoid TAG usage +%global archivename %{gh_proj}-%{version} Summary: Resource and persistent handles factory Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 2.0.2 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz License: BSD-2-Clause -URL: https://pecl.php.net/package/%{pecl_name} +Version: 2.0.2 +%forgemeta +Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 -BuildRequires: %{?scl_prefix}php-pear %if %{with tests} BuildRequires: %{?scl_prefix}php-pecl-http >= 2.0.0 %endif @@ -44,11 +52,13 @@ BuildRequires: %{?scl_prefix}php-pecl-http >= 2.0.0 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} -# PECL/PIE +# Extension Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +# PECL Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +# PIE Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version} Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version} @@ -74,8 +84,6 @@ These are the files needed to compile programs using %{name}. %prep %setup -qc -sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml - cd %{sources} # Sanity check, really often broken extver=$(sed -n '/#define PHP_RAPHF_VERSION/{s/.* "//;s/".*$//;p}' php_raphf.h) @@ -129,24 +137,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 -# Test & Documentation -for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do [ -f %{sources}/tests/$i ] && install -Dpm 644 %{sources}/tests/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/tests/$i - [ -f %{sources}/$i ] && install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i -done -for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i -done - %check cd %{sources} @@ -190,8 +186,9 @@ REPORT_EXIT_STATUS=1 \ %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/composer.json +%doc %{sources}/*.md +%doc %{sources}/CREDITS %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -202,7 +199,7 @@ REPORT_EXIT_STATUS=1 \ %endif %files devel -%doc %{pecl_testdir}/%{pecl_name} +%doc %{sources}/tests %{php_incldir}/ext/%{pecl_name} %if %{with_zts} @@ -211,6 +208,13 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Thu Mar 12 2026 Remi Collet <remi@remirepo.net> - 2.0.2-3 +- drop pear/pecl dependency +- sources from github + +* Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 2.0.2-2 +- rebuild for PHP 8.5.0RC1 + * Fri Aug 29 2025 Remi Collet <remi@remirepo.net> - 2.0.2-1 - update to 2.0.2 - re-license spec file to CECILL-2.1 |
