diff options
Diffstat (limited to 'php-pecl-mailparse.spec')
-rw-r--r-- | php-pecl-mailparse.spec | 44 |
1 files changed, 13 insertions, 31 deletions
diff --git a/php-pecl-mailparse.spec b/php-pecl-mailparse.spec index 8b54e79..86881bd 100644 --- a/php-pecl-mailparse.spec +++ b/php-pecl-mailparse.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-mailparse # -# Copyright (c) 2008-2018 Remi Collet +# Copyright (c) 2008-2019 Remi Collet # Copyright (c) 2004-2007 Matthias Saou # # License: MIT @@ -26,18 +26,15 @@ Summary: PHP PECL package for parsing and working with email messages Name: %{?sub_prefix}php-pecl-mailparse -Version: 3.0.2 -Release: 8%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 3.0.3 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP URL: http://pecl.php.net/package/mailparse Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz -Patch0: %{pecl_name}-upstream.patch - BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 7 BuildRequires: %{?scl_prefix}php-pear -# mbstring need for tests BuildRequires: %{?scl_prefix}php-mbstring # Required by phpize BuildRequires: autoconf, automake, libtool @@ -61,16 +58,6 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele %if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff -Obsoletes: php53-pecl-%{pecl_name} <= %{version} -Obsoletes: php53u-pecl-%{pecl_name} <= %{version} -Obsoletes: php54-pecl-%{pecl_name} <= %{version} -Obsoletes: php54w-pecl-%{pecl_name} <= %{version} -Obsoletes: php55u-pecl-%{pecl_name} <= %{version} -Obsoletes: php55w-pecl-%{pecl_name} <= %{version} -Obsoletes: php56u-pecl-%{pecl_name} <= %{version} -Obsoletes: php56w-pecl-%{pecl_name} <= %{version} -Obsoletes: php70u-pecl-%{pecl_name} <= %{version} -Obsoletes: php70w-pecl-%{pecl_name} <= %{version} %if "%{php_version}" > "7.1" Obsoletes: php71u-pecl-%{pecl_name} <= %{version} Obsoletes: php71w-pecl-%{pecl_name} <= %{version} @@ -110,8 +97,6 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS -%patch0 -p1 -b .upstream - 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}. @@ -171,11 +156,6 @@ done %check -: ignore tests using missing files -rm ?TS/tests/011.phpt -rm ?TS/tests/bug001.phpt -rm ?TS/tests/parse_test_messages.phpt - : Minimal load test for NTS extension %{__php} --no-php-ini \ --define extension=mbstring.so \ @@ -185,11 +165,9 @@ rm ?TS/tests/parse_test_messages.phpt : Upstream test suite for NTS extension cd NTS TEST_PHP_EXECUTABLE=%{__php} \ -NO_INTERACTION=1 \ -%{__php} run-tests.php \ - -n -q \ +%{__php} run-tests.php -n -q \ -d extension=mbstring.so \ - -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ + -d extension=$PWD/modules/%{pecl_name}.so \ --show-diff %if %{with_zts} @@ -202,11 +180,9 @@ NO_INTERACTION=1 \ : Upstream test suite for ZTS extension cd ../ZTS TEST_PHP_EXECUTABLE=%{__ztsphp} \ -NO_INTERACTION=1 \ -php run-tests.php \ - -n -q \ +php run-tests.php -n -q \ -d extension=mbstring.so \ - -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ + -d extension=$PWD/modules/%{pecl_name}.so \ --show-diff %endif @@ -246,6 +222,12 @@ fi %changelog +* Wed Mar 20 2019 Remi Collet <remi@remirepo.net> - 3.0.3-1 +- update to 3.0.3 + +* Wed Mar 13 2019 Remi Collet <remi@remirepo.net> - 3.0.3-0 +- test build + * Wed Jun 6 2018 Remi Collet <remi@remirepo.net> - 3.0.2-8 - ignore tests using missing files - add upstream patches for PHP 7.2 and 7.3 |