summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION2
-rw-r--r--composer.json49
-rw-r--r--php-pecl-amqp.spec40
4 files changed, 74 insertions, 19 deletions
diff --git a/PHPINFO b/PHPINFO
index 1ddbe3b..be47df0 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,7 +2,7 @@
amqp
Version => 2.2.0
-Compiled => Jan 3 2026 @ 00:00:00
+Compiled => Mar 17 2026 @ 00:00:00
AMQP protocol version => 0-9-1
librabbitmq version => 0.15.0
Default max channels per connection => 256
diff --git a/REFLECTION b/REFLECTION
index 819f775..6ef1795 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #147 amqp version 2.2.0 ] {
+Extension [ <persistent> extension #149 amqp version 2.2.0 ] {
- INI {
Entry [ amqp.host <ALL> ]
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..b8a946d
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,49 @@
+{
+ "name": "php-amqp/php-amqp",
+ "type": "php-ext",
+ "description": "PHP AMQP Binding Library",
+ "keywords": [
+ "rabbitmq",
+ "amqp",
+ "message",
+ "queue"
+ ],
+ "homepage": "https://github.com/php-amqp/php-amqp",
+ "license": "PHP-3.01",
+ "authors": [
+ {
+ "name": "Lars Strojny",
+ "email": "lstrojny@php.net",
+ "role": "lead"
+ }
+ ],
+ "require": {
+ "php": ">=7.4"
+ },
+ "require-dev": {
+ "ext-json": "*",
+ "ext-dom": "*",
+ "ext-simplexml": "*",
+ "symplify/easy-coding-standard": "*",
+ "slevomat/coding-standard": "^8.13"
+ },
+ "config": {
+ "allow-plugins": {
+ "dealerdirect/phpcodesniffer-composer-installer": false
+ }
+ },
+ "php-ext": {
+ "extension-name": "amqp",
+ "configure-options": [
+ {
+ "name": "with-amqp",
+ "description": "Include amqp support"
+ },
+ {
+ "name": "with-librabbitmq-dir",
+ "description": "Set the path to librabbitmq install prefix.",
+ "needs-value": true
+ }
+ ]
+ }
+}
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