From e8bab270c618f4cb7f12c6eb4d6a1937348bd473 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 15 Sep 2022 13:42:53 +0200 Subject: update to 3.1.4 --- php-pecl-mailparse.spec | 48 +++++++++++++++--------------------------------- 1 file changed, 15 insertions(+), 33 deletions(-) (limited to 'php-pecl-mailparse.spec') diff --git a/php-pecl-mailparse.spec b/php-pecl-mailparse.spec index 1f3d0f5..9cb3b1b 100644 --- a/php-pecl-mailparse.spec +++ b/php-pecl-mailparse.spec @@ -15,28 +15,25 @@ # we don't want -z defs linker flag %undefine _strict_symbol_defs_build -%if 0%{?scl:1} -%global sub_prefix %{scl_prefix} -%scl_package php-pecl-mailparse -%endif +%{?scl:%scl_package php-pecl-mailparse} + +%bcond_without tests %global pecl_name mailparse %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global ini_name 40-%{pecl_name}.ini Summary: PHP PECL package for parsing and working with email messages -Name: %{?sub_prefix}php-pecl-mailparse -Version: 3.1.3 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Name: %{?scl_prefix}php-pecl-mailparse +Version: 3.1.4 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP URL: https://pecl.php.net/package/mailparse Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz -Patch0: 0001-declare-mimemessage-data-property-for-8.2.patch - BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7.0 +BuildRequires: %{?scl_prefix}php-devel >= 7.3 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-mbstring # Required by phpize @@ -54,26 +51,6 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version} 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 "%{?scl_prefix}" != "%{?sub_prefix}" -Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -%endif - -%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} -# Other third party repo stuff -%if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.0" -Obsoletes: php80-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.1" -Obsoletes: php81-pecl-%{pecl_name} <= %{version} -%endif -%endif %description @@ -94,8 +71,6 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS -%patch0 -p1 - extver=$(sed -n '/#define PHP_MAILPARSE_VERSION/{s/.* "//;s/".*$//;p}' php_mailparse.h) if test "x${extver}" != "x%{version}"; then : Error: Upstream version is ${extver}, expecting %{version}. @@ -161,6 +136,7 @@ done --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ --modules | grep '^%{pecl_name}$' +%if %{with tests} : Upstream test suite for NTS extension cd NTS TEST_PHP_EXECUTABLE=%{__php} \ @@ -168,6 +144,7 @@ TEST_PHP_EXECUTABLE=%{__php} \ -d extension=mbstring.so \ -d extension=$PWD/modules/%{pecl_name}.so \ --show-diff +%endif %if %{with_zts} : Minimal load test for ZTS extension @@ -176,6 +153,7 @@ TEST_PHP_EXECUTABLE=%{__php} \ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --modules | grep '^%{pecl_name}$' +%if %{with tests} : Upstream test suite for ZTS extension cd ../ZTS TEST_PHP_EXECUTABLE=%{__ztsphp} \ @@ -184,6 +162,7 @@ php run-tests.php -n -q \ -d extension=$PWD/modules/%{pecl_name}.so \ --show-diff %endif +%endif %if 0%{?fedora} < 24 && 0%{?rhel} < 8 @@ -221,7 +200,10 @@ fi %changelog -* Mon May 24 2022 Remi Collet - 3.1.3-2 +* Thu Sep 15 2022 Remi Collet - 3.1.4-1 +- update to 3.1.4 + +* Tue May 24 2022 Remi Collet - 3.1.3-2 - add upstream patch for PHP 8.2 * Mon Feb 21 2022 Remi Collet - 3.1.3-1 -- cgit