diff options
Diffstat (limited to 'php-pecl-yaf.spec')
| -rw-r--r-- | php-pecl-yaf.spec | 62 |
1 files changed, 26 insertions, 36 deletions
diff --git a/php-pecl-yaf.spec b/php-pecl-yaf.spec index 1511647..7163aa0 100644 --- a/php-pecl-yaf.spec +++ b/php-pecl-yaf.spec @@ -11,23 +11,25 @@ %bcond_without tests -%global gh_commit 51e458e9746d7061efc565d49baaca26feacd7ff -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_owner laruence -%global gh_project yaf -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global pecl_name yaf +%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 laruence +%global gh_proj %{pecl_name} +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{version} -Summary: Yet Another Framework Name: %{?scl_prefix}php-pecl-yaf -Version: 3.3.7 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Summary: Yet Another Framework License: PHP-3.01 -URL: https://pecl.php.net/package/yaf -Source0: https://pecl.php.net/get/%{sources}%{?prever}.tgz +Version: 3.3.7 +Release: 2%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} Source1: %{pecl_name}.ini BuildRequires: make @@ -40,10 +42,13 @@ BuildRequires: %{?scl_prefix}php-json Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} +# 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} +# No PIE for now %description @@ -54,21 +59,14 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %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_YAF_VERSION/{s/.*\t"//;s/".*$//;p}' php_yaf.h ) if test "x${extver}" != "x%{version}"; then : Error: Upstream extension version is ${extver}, expecting %{version}. exit 1 fi -cd .. mkdir NTS %if %{with_zts} @@ -81,12 +79,11 @@ mkdir ZTS export CFLAGS="%{optflags} -Wno-duplicate-decl-specifier" -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 @@ -110,19 +107,8 @@ install -D -m 644 %{SOURCE1} %{buildroot}%{php_inidir}/%{ini_name} install -D -m 644 %{SOURCE1} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Install the package XML file -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - -# 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 -cd %{sources} - OPTS="-n" [ -f %{php_extdir}/json.so ] && OPTS="$OPTS -d extension=json.so" @@ -148,9 +134,9 @@ REPORT_EXIT_STATUS=1 \ %files -%license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%license LICENSE +%doc CREDITS +%doc *.md %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -162,6 +148,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Apr 21 2026 Remi Collet <remi@remirepo.net> - 3.3.7-2 +- drop pear/pecl dependency +- sources from github + * Tue Jul 29 2025 Remi Collet <remi@remirepo.net> - 3.3.7-1 - update to 3.3.7 - drop patches merged upstream |
