From 1dca634625a4ef89df6c7b5dc70093b0633143da Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 6 Mar 2026 16:04:23 +0100 Subject: Packaging variables read or set by %forgemeta forgeurl: https://github.com/xdebug/xdebug forgesource: https://github.com/xdebug/xdebug/archive/3.5.1/xdebug-3.5.1.tar.gz forgesetupargs: -n xdebug-3.5.1 archivename: xdebug-3.5.1 archiveext: tar.gz archiveurl: https://github.com/xdebug/xdebug/archive/3.5.1/xdebug-3.5.1.tar.gz topdir: xdebug-3.5.1 extractdir: xdebug-3.5.1 repo: xdebug scm: git tag: 3.5.1 version: 3.5.1 forgename: github dist: .fc35 (snapshot date is either manually supplied or computed once %{_sourcedir}/%{archivename}.%{archiveext} is available) drop pear/pecl dependency use forge macros for sources --- php-pecl-xdebug3.spec | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) (limited to 'php-pecl-xdebug3.spec') diff --git a/php-pecl-xdebug3.spec b/php-pecl-xdebug3.spec index 41caed6..3fd9f9e 100644 --- a/php-pecl-xdebug3.spec +++ b/php-pecl-xdebug3.spec @@ -21,32 +21,36 @@ %global pie_proj xdebug %global pecl_name xdebug %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global gh_commit af9280fff4eeb014309f8f66633c5e8f40e88b04 -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) # version/release %global upstream_version 3.5.1 #global upstream_prever alpha3 #global upstream_lower alpha3 -%global sources src +%global sources %{pecl_name}-%{tag} %global _configure ../%{sources}/configure +# Github forge +%global gh_vend %{pecl_name} +%global gh_proj %{pecl_name} +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{upstream_version}%{?upstream_prever} + # XDebug should be loaded after opcache %global ini_name 15-%{pecl_name}.ini Name: %{?scl_prefix}php-pecl-xdebug3 Summary: Provides functions for function traces and profiling Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}} -Release: 1%{?dist} +%forgemeta -i +Release: 2%{?dist} License: Xdebug-1.03 -URL: https://xdebug.org/ -Source0: https://github.com/%{pecl_name}/%{pecl_name}/archive/%{gh_commit}/%{pecl_name}-%{upstream_version}%{?upstream_prever}-%{gh_short}.tar.gz +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: (%{?scl_prefix}php-devel >= 8.0 with %{?scl_prefix}php-devel < 8.6) -BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-simplexml BuildRequires: libtool BuildRequires: %{?scl_prefix}php-soap @@ -110,10 +114,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -qc -mv %{pecl_name}-%{gh_commit} %{sources} -mv %{sources}/package.xml . - -sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml pushd %{sources} # Check extension version @@ -181,9 +181,6 @@ cd ../ZTS # install NTS extension %make_install -C NTS -# install package registration file -install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - # install config file install -Dpm 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} @@ -194,14 +191,6 @@ install -Dpm 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} install -Dpm 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation -cd %{sources} -for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') -do - [ -f contrib/$i ] && j=contrib/$i || j=$i - install -Dpm 644 $j %{buildroot}%{pecl_docdir}/%{pecl_name}/$j -done - %check # Shared needed extensions @@ -263,8 +252,9 @@ TEST_PHP_ARGS="-n $modules -d zend_extension=%{buildroot}%{php_extdir}/%{pecl_na %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/CREDITS +%doc %{sources}/CONTRIBUTING.rst +%doc %{sources}/README.rst %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -276,6 +266,10 @@ TEST_PHP_ARGS="-n $modules -d zend_extension=%{buildroot}%{php_extdir}/%{pecl_na %changelog +* Fri Feb 6 2026 Remi Collet - 3.5.1-2 +- drop pear/pecl dependency +- use forge macros for sources + * Wed Feb 4 2026 Remi Collet - 3.5.1-1 - update to 3.5.1 (no change on Linux) -- cgit