diff options
Diffstat (limited to 'php-pecl-geospatial.spec')
-rw-r--r-- | php-pecl-geospatial.spec | 74 |
1 files changed, 42 insertions, 32 deletions
diff --git a/php-pecl-geospatial.spec b/php-pecl-geospatial.spec index b4d0623..073e6e3 100644 --- a/php-pecl-geospatial.spec +++ b/php-pecl-geospatial.spec @@ -1,44 +1,43 @@ # remirepo spec file for php-pecl-geospatial # -# Copyright (c) 2015-2024 Remi Collet -# License: CC-BY-SA-4.0 -# http://creativecommons.org/licenses/by-sa/4.0/ +# SPDX-FileCopyrightText: Copyright 2015-2025 Remi Collet +# SPDX-License-Identifier: CECILL-2.1 +# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # # Please, preserve the changelog entries # %{?scl:%scl_package php-pecl-geospatial} -%global gh_commit d3f3ab0a836f10eacb7e117c06f12ea57e1e8649 -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_owner php-geospatial -%global gh_project geospatial -#global gh_date 20150908 -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global pecl_name geospatial -%global ini_name 40-%{pecl_name}.ini -%global sources %{gh_project}-%{gh_commit} -%global _configure ../%{sources}/configure +%global pie_vend php-geospatial +%global pie_proj geospatial +%global upstream_version 0.3.5 +#global upstream_prever RC1 +%global gh_owner php-geospatial +%global gh_project geospatial +%global forgeurl https://github.com/%{gh_owner}/%{gh_project} +#global commit b3ae87353da524f33374ee0418ad48f704bb6af1 +%global tag %{upstream_version}%{?upstream_prever} +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global pecl_name geospatial +%global ini_name 40-%{pecl_name}.ini +%global sources %{gh_project}-%{upstream_version}%{?upstream_prever} +%global _configure ../%{sources}/configure %bcond_without tests Summary: PHP Extension to handle common geospatial functions Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 0.3.2 -%if 0%{?gh_date:1} -Release: 0.11.%{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;')}} -%endif +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} +%forgemeta +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP-3.01 URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz - -Patch0: 31.patch +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7.0 +BuildRequires: %{?scl_prefix}php-devel >= 8.0 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json @@ -46,11 +45,13 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} # Package have be renamed -Obsoletes: %{?scl_prefix}php-%{pecl_name} < %{version} -Provides: %{?scl_prefix}php-%{pecl_name} = %{version} -Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} -Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} -Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +Obsoletes: %{?scl_prefix}php-%{pecl_name} < %{version} +Provides: %{?scl_prefix}php-%{pecl_name} = %{version} +Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version} +Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version} %description @@ -72,12 +73,10 @@ mv %{sources}/package.xml . sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml cd %{sources} -%patch -P0 -p1 - # Check version as upstream often forget to update this extver=$(sed -n '/#define PHP_GEOSPATIAL_VERSION/{s/.* "//;s/".*$//;p}' php_geospatial.h) -if test "x${extver}" != "x%{version}%{?prever}%{?gh_date:-dev}"; then - : Error: Upstream version is ${extver}, expecting %{version}%{?prever}%{?gh_date:-dev}. +if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then + : Error: Upstream version is ${extver}, expecting %{upstream_version}%{?upstream_prever}. exit 1 fi cd .. @@ -195,6 +194,17 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Jul 1 2025 Remi Collet <remi@remirepo.net> - 0.3.5-1 +- update to 0.3.5 +- drop patch merged upstream + +* Thu Jun 19 2025 Remi Collet <remi@remirepo.net> - 0.3.3-1 +- update to 0.3.3 +- drop patch merged upstream +- re-license spec file to CECILL-2.1 +- fix test suite on aarch64 using patch from + https://github.com/php-geospatial/geospatial/pull/33 + * Wed Sep 25 2024 Remi Collet <remi@remirepo.net> - 0.3.2-4 - spec cleanup - fix test suite on aarch64 using patch from |