diff options
Diffstat (limited to 'php-pecl-redis6.spec')
-rw-r--r-- | php-pecl-redis6.spec | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/php-pecl-redis6.spec b/php-pecl-redis6.spec index 19fd632..de359c4 100644 --- a/php-pecl-redis6.spec +++ b/php-pecl-redis6.spec @@ -1,4 +1,4 @@ -# remirepo spec file for php-pecl-redis6 +# remirepo spec file for php-pecl-redis5 # # Copyright (c) 2012-2023 Remi Collet # License: CC-BY-SA-4.0 @@ -7,6 +7,9 @@ # Please, preserve the changelog entries # +# we don't want -z defs linker flag +%undefine _strict_symbol_defs_build + %if 0%{?scl:1} %scl_package php-pecl-redis %else @@ -21,19 +24,21 @@ # after 20-json, 40-igbinary and 40-msgpack %global ini_name 50-%{pecl_name}.ini -%global upstream_version 6.0.0 -%global upstream_prever RC1 +%global upstream_version 5.3.7 +#global upstream_prever RC2 %global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} %global _configure ../%{sources}/configure Summary: Extension for communicating with the Redis key-value store -Name: %{?scl_prefix}php-pecl-redis6 +Name: %{?scl_prefix}php-pecl-redis5 Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP-3.01 URL: https://pecl.php.net/package/redis Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +Patch0: %{pecl_name}-tests.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 @@ -50,7 +55,7 @@ BuildRequires: pkgconfig(libzstd) >= 1.3.0 BuildRequires: pkgconfig(liblz4) # to run Test suite %if %{with tests} -BuildRequires: redis >= 7 +BuildRequires: redis >= 6 %endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -69,21 +74,17 @@ Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} -%if 0%{?fedora} >= 39 || 0%{?rhel} >= 10 || "%{php_version}" > "8.3" -Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 6 +%if 0%{?fedora} >= 31 || 0%{?rhel} >= 9 || "%{php_version}" > "7.4" +Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 5 Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}4 < 6 +Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}4 < 5 Provides: %{?scl_prefix}php-pecl-%{pecl_name}4 = %{version}-%{release} Provides: %{?scl_prefix}php-pecl-%{pecl_name}4%{?_isa} = %{version}-%{release} -Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}5 < 6 -Provides: %{?scl_prefix}php-pecl-%{pecl_name}5 = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-%{pecl_name}5%{?_isa} = %{version}-%{release} %else # A single version can be installed -Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 6 -Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}4 < 6 -Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}5 < 6 +Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 5 +Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}4 < 5 %endif %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} == 7 @@ -122,11 +123,13 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO # Don't install/register tests, license, and bundled library sed -e 's/role="test"/role="src"/' \ - %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + %{?_licensedir:-e '/COPYING/s/role="doc"/role="src"/' } \ -e '/liblzf/d' \ -i package.xml cd %{sources} +%patch -P0 -p1 -b.pr2335 + # Use system library rm -r liblzf @@ -334,7 +337,7 @@ fi %files -%{?_licensedir:%license %{sources}/LICENSE} +%{?_licensedir:%license %{sources}/COPYING} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -348,10 +351,6 @@ fi %changelog -* Wed Aug 2 2023 Remi Collet <remi@remirepo.net> - 6.0.0~RC1-1 -- update to 6.0.0RC1 -- rename to php-pecl-redis6 for new API - * Wed Jul 12 2023 Remi Collet <remi@remirepo.net> - 5.3.7-4 - build out of sources tree |