summaryrefslogtreecommitdiffstats
path: root/php-pecl-amqp.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-03-17 07:15:51 +0100
committerRemi Collet <remi@php.net>2026-03-17 07:15:51 +0100
commit67171dd85e37ec60cfe304b0559274dce35ed034 (patch)
tree5c7777d37e0c6ac679daa997c3fb5b0863da1636 /php-pecl-amqp.spec
parent5e53625d647039da62d62a562447662c936a416d (diff)
drop pear/pecl dependencyHEADmaster
sources from github
Diffstat (limited to 'php-pecl-amqp.spec')
-rw-r--r--php-pecl-amqp.spec40
1 files changed, 23 insertions, 17 deletions
diff --git a/php-pecl-amqp.spec b/php-pecl-amqp.spec
index 42a8e22..267d590 100644
--- a/php-pecl-amqp.spec
+++ b/php-pecl-amqp.spec
@@ -23,23 +23,31 @@
%global upstream_version 2.2.0
#global upstream_prever RC1
%global upstream_lower %(echo %{upstream_prever} | tr '[:upper:]' '[:lower:]')
-%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
+%global sources %{archivename}
%global _configure ../%{sources}/configure
+# Github forge
+%global gh_vend %{pie_vend}
+%global gh_proj %{pie_proj}
+%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
+%global tag v%{upstream_version}%{?upstream_prever}
+# for EL-8 to avoid TAG usage
+%global archivename %{gh_proj}-%{upstream_version}%{?upstream_prever}
+
%global buildver %(pkg-config --silence-errors --modversion librabbitmq 2>/dev/null || echo 65536)
-Summary: Communicate with any AMQP compliant server
Name: %{?scl_prefix}php-pecl-amqp
-Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}}
-Release: 1%{?dist}
+Summary: Communicate with any AMQP compliant server
License: PHP-3.01
-URL: https://pecl.php.net/package/amqp
-Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}}
+Release: 2%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.4
-BuildRequires: %{?scl_prefix}php-pear
BuildRequires: librabbitmq-devel >= 0.8.0
Requires: librabbitmq%{?_isa} >= %{buildver}
%if %{with server}
@@ -73,11 +81,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
-# Don't install/register tests
-sed -e 's/role="test"/role="src"/' \
- -e '/LICENSE/s/role="doc"/role="src"/' \
- -i package.xml
-
cd %{sources}
# Upstream often forget to change this
extver=$(sed -n '/#define PHP_AMQP_VERSION /{s/.* "//;s/".*$//;p}' php_amqp_version.h)
@@ -172,9 +175,6 @@ cd ../ZTS
# Drop in the bit of configuration
install -Dpm 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
-# Install XML package description
-install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
%if %{with_zts}
%make_install -C ZTS
install -Dpm 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
@@ -240,8 +240,10 @@ exit $ret
%files
%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%doc %{sources}/composer.json
+%doc %{sources}/CREDITS
+%doc %{sources}/*.md
+%doc %{sources}/stubs
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
@@ -253,6 +255,10 @@ exit $ret
%changelog
+* Tue Mar 17 2026 Remi Collet <remi@remirepo.net> - 2.2.0-2
+- drop pear/pecl dependency
+- sources from github
+
* Sat Jan 3 2026 Remi Collet <remi@remirepo.net> - 2.2.0-1
- update to 2.2.0
- drop patch merged upstream