diff options
Diffstat (limited to 'php-pecl-yaconf.spec')
-rw-r--r-- | php-pecl-yaconf.spec | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/php-pecl-yaconf.spec b/php-pecl-yaconf.spec index 673005b..2bb622f 100644 --- a/php-pecl-yaconf.spec +++ b/php-pecl-yaconf.spec @@ -20,15 +20,17 @@ Summary: Yet Another Configurations Container Name: %{?scl_prefix}php-pecl-yaconf Version: 1.1.0 +License: PHP +URL: https://github.com/%{gh_owner}/%{gh_project} %if 0%{?gh_date:1} Release: 0.4.%{gh_date}.%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz %else -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz %endif -License: PHP -URL: https://github.com/%{gh_owner}/%{gh_project} + +Patch0: https://patch-diff.githubusercontent.com/raw/laruence/yaconf/pull/63.patch BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 7 @@ -38,18 +40,15 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} -%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} -%if "%{php_version}" > "7.2" -Obsoletes: php72u-pecl-%{pecl_name} <= %{version} -Obsoletes: php72w-pecl-%{pecl_name} <= %{version} -%endif +%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} %if "%{php_version}" > "7.3" Obsoletes: php73-pecl-%{pecl_name} <= %{version} -Obsoletes: php73w-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.4" Obsoletes: php74-pecl-%{pecl_name} <= %{version} -Obsoletes: php74w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "8.0" +Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif %endif @@ -99,6 +98,8 @@ mv %{pecl_name}-%{version} NTS %{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} cd NTS +%patch0 -p1 -b .pr63 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_YACONF_VERSION/{s/.* "//;s/".*$//;p}' php_yaconf.h) if test "x${extver}" != "x%{version}%{?gh_date:-dev}"; then @@ -168,9 +169,6 @@ cp -pr NTS/tests %{buildroot}%{pecl_testdir}/%{pecl_name}/tests %check -# ignore bad test -rm ?TS/tests/010.phpt - cd NTS : Minimal load test for NTS extension %{__php} --no-php-ini \ @@ -244,6 +242,9 @@ fi %changelog +* Wed Sep 23 2020 Remi Collet <remi@remirepo.net> - 1.1.0-2 +- add patch for PHP 8 from https://github.com/laruence/yaconf/pull/63 + * Thu Mar 12 2020 Remi Collet <remi@remirepo.net> - 1.1.0-1 - update to 1.1.0 |