summaryrefslogtreecommitdiffstats
path: root/php-pdlib.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-07-05 18:45:39 +0200
committerRemi Collet <remi@php.net>2023-07-05 18:45:39 +0200
commit20ecfd217408256f4a70dd4b5ba526c90b8df082 (patch)
tree14a565a107e6cfba9653d24068517e76d25e5783 /php-pdlib.spec
parent7c9a68eefa7934bb408b978419939f95c9fed238 (diff)
update to 1.1.0
drop patch merged upstream
Diffstat (limited to 'php-pdlib.spec')
-rw-r--r--php-pdlib.spec53
1 files changed, 16 insertions, 37 deletions
diff --git a/php-pdlib.spec b/php-pdlib.spec
index b5a12c4..46ef65f 100644
--- a/php-pdlib.spec
+++ b/php-pdlib.spec
@@ -1,19 +1,18 @@
# remirepo spec file for php-pdlib
#
-# Copyright (c) 2020-2021 Remi Collet
-# License: CC-BY-SA
+# Copyright (c) 2020-2023 Remi Collet
+# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%if 0%{?scl:1}
-%global sub_prefix %{scl_prefix}
%scl_package php-pdlib
%else
%global pkg_name %{name}
%endif
-%global gh_commit 1153e3e2eb28db09ed207a904096d8d6deb693a1
+%global gh_commit 84436d5b9200e3388ca16851110d61b7c1439a8a
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner goodspb
%global gh_project pdlib
@@ -30,44 +29,22 @@ BuildRequires: devtoolset-7-toolchain
%endif
Summary: A PHP extension for Dlib
-Name: %{?sub_prefix}php-%{pecl_name}
-Version: 1.0.2
+Name: %{?scl_prefix}php-%{pecl_name}
+Version: 1.1.0
%if 0%{?gh_date:1}
-Release: 2%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 1%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%else
-Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 1%{?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.0
-BuildRequires: dlib-devel >= 19.22
+BuildRequires: dlib-devel
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 "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
-# Other third party repo stuff
-%if "%{php_version}" > "7.3"
-Obsoletes: php73-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.4"
-Obsoletes: php74-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "8.0"
-Obsoletes: php80-%{pecl_name} <= %{version}
-%endif
-%endif
-
-%if 0%{?fedora} < 20 && 0%{?rhel} < 7
-# Filter shared private
-%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
-%{?filter_setup}
-%endif
%description
@@ -81,8 +58,6 @@ 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
@@ -107,18 +82,18 @@ EOF
%{?dtsenable}
cd NTS
-%{_bindir}/phpize
+%{__phpize}
%configure \
- --with-php-config=%{_bindir}/php-config \
+ --with-php-config=%{__phpconfig} \
--with-libdir=%{_lib} \
--with-pdlib
make %{?_smp_mflags}
%if %{with_zts}
cd ../ZTS
-%{_bindir}/zts-phpize
+%{__ztsphpize}
%configure \
- --with-php-config=%{_bindir}/zts-php-config \
+ --with-php-config=%{__ztsphpconfig} \
--with-libdir=%{_lib} \
--with-pdlib
make %{?_smp_mflags}
@@ -185,6 +160,10 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
%changelog
+* Wed Jul 5 2023 Remi Collet <remi@remirepo.net> - 1.1.0-1
+- update to 1.1.0
+- drop patch merged upstream
+
* Thu Apr 8 2021 Remi Collet <remi@remirepo.net> - 1.0.2-6
- rebuild against dlib 19.22