summaryrefslogtreecommitdiffstats
path: root/php-pecl-mailparse.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-05-24 16:19:38 +0200
committerRemi Collet <remi@php.net>2022-05-24 16:19:38 +0200
commit4e83d1b70fc860d170d0a6d77c6a19b0889c1ec5 (patch)
treeb48925e07f554354a8a45a23c5513b7a9309de58 /php-pecl-mailparse.spec
parent2d3764bcf3636ad151fd0a65915e2de4d00deddd (diff)
add upstream patch for PHP 8.2HEADmaster
Diffstat (limited to 'php-pecl-mailparse.spec')
-rw-r--r--php-pecl-mailparse.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/php-pecl-mailparse.spec b/php-pecl-mailparse.spec
index 471feb1..1f3d0f5 100644
--- a/php-pecl-mailparse.spec
+++ b/php-pecl-mailparse.spec
@@ -27,11 +27,13 @@
Summary: PHP PECL package for parsing and working with email messages
Name: %{?sub_prefix}php-pecl-mailparse
Version: 3.1.3
-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;')}}
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
@@ -92,6 +94,8 @@ 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}.
@@ -217,6 +221,9 @@ fi
%changelog
+* Mon May 24 2022 Remi Collet <remi@remirepo.net> - 3.1.3-2
+- add upstream patch for PHP 8.2
+
* Mon Feb 21 2022 Remi Collet <remi@remirepo.net> - 3.1.3-1
- update to 3.1.3