summaryrefslogtreecommitdiffstats
path: root/php-pdlib.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-09-30 09:50:33 +0200
committerRemi Collet <remi@remirepo.net>2020-09-30 09:50:33 +0200
commit23192a53300e11f674a392f856486971e7fbd1d0 (patch)
tree318a99725fdad74be387eb17d4deca462617c3aa /php-pdlib.spec
parent699dc2ad46bf95604b5ed32aba15b584db7d044d (diff)
rebuild for PHP 8.0.0RC1
add patch for PHP 8.0.0rc1 from https://github.com/goodspb/pdlib/pull/37
Diffstat (limited to 'php-pdlib.spec')
-rw-r--r--php-pdlib.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/php-pdlib.spec b/php-pdlib.spec
index af21a69..5bbfd27 100644
--- a/php-pdlib.spec
+++ b/php-pdlib.spec
@@ -38,14 +38,16 @@ Summary: A PHP extension for Dlib
Name: %{?sub_prefix}php-%{pecl_name}
Version: 1.0.2
%if 0%{?gh_date:1}
-Release: 1%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%else
-Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%endif
License: MIT
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
+Patch0: https://patch-diff.githubusercontent.com/raw/goodspb/pdlib/pull/37.patch
+
BuildRequires: %{?scl_prefix}php-devel > 7
BuildRequires: dlib-devel >= 19.21
@@ -87,6 +89,8 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
mv %{gh_project}-%{gh_commit} NTS
cd NTS
+%patch0 -p1 -b .pr
+
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_PDLIB_VERSION/{s/.* "//;s/".*$//;p}' php_pdlib.h)
if test "x${extver}" != "x%{version}%{?gh_date:-dev}"; then
@@ -189,6 +193,11 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
%changelog
+* Wed Sep 30 2020 Remi Collet <remi@remirepo.net> - 1.0.2-5
+- rebuild for PHP 8.0.0RC1
+- add patch for PHP 8.0.0rc1 from
+ https://github.com/goodspb/pdlib/pull/37
+
* Wed Sep 2 2020 Remi Collet <remi@remirepo.net> - 1.0.2-4
- rebuild for PHP 8.0.0beta3