From 75a4e7f92e4e7b3f1536e19af21ad7a535895f38 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 14 Jun 2023 07:54:42 +0200 Subject: raise dependency on IP2location library version 8.6 build out of sources tree --- php-pecl-ip2location.spec | 51 ++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 21 deletions(-) (limited to 'php-pecl-ip2location.spec') diff --git a/php-pecl-ip2location.spec b/php-pecl-ip2location.spec index 2cfdd35..5bbc2eb 100644 --- a/php-pecl-ip2location.spec +++ b/php-pecl-ip2location.spec @@ -6,9 +6,13 @@ # # Please, preserve the changelog entries # -%if 0%{?scl:1} -%scl_package php-pecl-ip2location -%endif +%{?scl:%scl_package php-pecl-ip2location} + +# Defined in Fedora >= 37 and RHEL >= 10, in PHP >= 7.4 for remirepo +%{!?__phpize: %global __phpize %{_bindir}/phpize} +%{!?__ztsphpize: %global __ztsphpize %{_bindir}/zts-phpize} +%{!?__phpconfig: %global __phpconfig %{_bindir}/php-config} +%{!?__ztsphpconfig:%global __ztsphpconfig %{_bindir}/zts-php-config} %global pecl_name ip2location %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} @@ -20,13 +24,16 @@ %global upstream_version 8.2.0 #global upstream_prever RC1 -%global libversion 8.4 +%global libversion 8.6 + +%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} +%global _configure ../%{sources}/configure Summary: Get geo location information of an IP address Name: %{?scl_prefix}php-pecl-%{pecl_name} License: PHP-3.01 Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz @@ -61,7 +68,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS # Don't install tests sed -e 's/role="test"/role="src"/' \ @@ -70,7 +76,7 @@ sed -e 's/role="test"/role="src"/' \ -e '/AGREEMENT.PDF/s/role="doc"/role="test"/' \ -i package.xml -cd NTS +cd %{sources} sed -e "s/\r//" -i LICENSE CREDITS *.md *.c *.h # Check version @@ -81,8 +87,9 @@ if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then fi cd .. +mkdir NTS %if %{with_zts} -cp -r NTS ZTS +mkdir ZTS %endif cat < - 8.2.0-2 +- raise dependency on IP2location library version 8.6 +- build out of sources tree + * Mon Jun 12 2023 Remi Collet - 8.2.0-1 - update to 8.2.0 -- cgit