diff options
| -rw-r--r-- | REFLECTION | 20 | ||||
| -rw-r--r-- | php-pecl-yac.spec | 58 |
2 files changed, 37 insertions, 41 deletions
@@ -1,4 +1,4 @@ -Extension [ <persistent> extension #119 yac version 2.3.1 ] { +Extension [ <persistent> extension #151 yac version 2.3.1 ] { - Dependencies { Dependency [ msgpack (Required) ] @@ -31,15 +31,15 @@ Extension [ <persistent> extension #119 yac version 2.3.1 ] { } - Constants [9] { - Constant [ string YAC_VERSION ] { 2.3.1 } - Constant [ int YAC_MAX_KEY_LEN ] { 48 } - Constant [ int YAC_MAX_VALUE_RAW_LEN ] { 67108863 } - Constant [ int YAC_MAX_RAW_COMPRESSED_LEN ] { 1048576 } - Constant [ int YAC_SERIALIZER_PHP ] { 0 } - Constant [ int YAC_SERIALIZER_MSGPACK ] { 2 } - Constant [ int YAC_SERIALIZER_IGBINARY ] { 3 } - Constant [ int YAC_SERIALIZER_JSON ] { 1 } - Constant [ int YAC_SERIALIZER ] { 0 } + Constant [ <persistent> string YAC_VERSION ] { 2.3.1 } + Constant [ <persistent> int YAC_MAX_KEY_LEN ] { 48 } + Constant [ <persistent> int YAC_MAX_VALUE_RAW_LEN ] { 67108863 } + Constant [ <persistent> int YAC_MAX_RAW_COMPRESSED_LEN ] { 1048576 } + Constant [ <persistent> int YAC_SERIALIZER_PHP ] { 0 } + Constant [ <persistent> int YAC_SERIALIZER_MSGPACK ] { 2 } + Constant [ <persistent> int YAC_SERIALIZER_IGBINARY ] { 3 } + Constant [ <persistent> int YAC_SERIALIZER_JSON ] { 1 } + Constant [ <persistent> int YAC_SERIALIZER ] { 0 } } - Classes [1] { diff --git a/php-pecl-yac.spec b/php-pecl-yac.spec index 80898c9..3ec54cb 100644 --- a/php-pecl-yac.spec +++ b/php-pecl-yac.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-yac (previously php-yac) # -# SPDX-FileCopyrightText: Copyright 2013-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2013-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -12,34 +12,38 @@ %{?scl:%scl_package php-pecl-yac} # use system library by default -%bcond_without fastlz +%bcond_without fastlz # run test suite by default -%bcond_without tests +%bcond_without tests -%global gh_commit 7e5a9edfcfb6ad064c165a0b6abf8d11218fe4b5 -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_owner laruence -%global gh_project yac %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global pecl_name yac # after 20-json, 40-igbinary and 40-msgpack %global ini_name 50-%{pecl_name}.ini -%global sources %{pecl_name}-%{version} +%global sources %{gh_proj}-%{pecl_name}-%{version} %global _configure ../%{sources}/configure -Summary: Lockless user data cache +# Github forge +%global gh_vend laruence +%global gh_proj %{pecl_name} +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{pecl_name}-%{version} +# for EL-8 to avoid TAG usage +%global archivename %{gh_proj}-%{pecl_name}-%{version} + Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 2.3.1 +Summary: Lockless user data cache License: PHP-3.01 -URL: https://pecl.php.net/package/%{pecl_name} -Release: 8%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -Source0: https://pecl.php.net/get/%{sources}.tgz +Version: 2.3.1 +Release: 9%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 -BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json BuildRequires: %{?scl_prefix}php-pecl-msgpack-devel BuildRequires: %{?scl_prefix}php-pecl-igbinary-devel @@ -53,12 +57,14 @@ Requires: %{?scl_prefix}php-json%{?_isa} Requires: %{?scl_prefix}php-igbinary%{?_isa} Requires: %{?scl_prefix}php-msgpack%{?_isa} -# Package have be renamed +# Extension Obsoletes: %{?scl_prefix}php-%{pecl_name} < %{version} 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 @@ -77,14 +83,8 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -qc -# Don't install (register) the tests -sed -e 's/role="test"/role="src"/' \ - -e '/LICENSE/s/role="doc"/role="src"/' \ - -i package.xml - cd %{sources} %if %{with fastlz} -sed -e '\:name="compressor/fastlz:d' -i ../package.xml rm -r compressor/fastlz %endif @@ -154,20 +154,12 @@ peclconf %{__ztsphpconfig} %make_install -C NTS 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} # Install the ZTS stuff %make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation -for i in README.md $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do [ -f %{sources}/$i ] && install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i -done - %check cd %{sources} @@ -211,8 +203,8 @@ REPORT_EXIT_STATUS=1 \ %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/CREDITS +%doc %{sources}/*.md %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -224,6 +216,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Fri Mar 27 2026 Remi Collet <remi@remirepo.net> - 2.3.1-9 +- drop pear/pecl dependency +- sources from github + * Wed Jul 30 2025 Remi Collet <remi@remirepo.net> - 2.3.1-8 - re-license spec file to CECILL-2.1 |
