summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-03-13 10:06:26 +0100
committerRemi Collet <remi@php.net>2026-03-13 10:06:26 +0100
commitbd10c181d4b1296dffbc95ce0087daf82ed4f17e (patch)
tree9e5ea35a4f1e043060afc8cb799abeff05fdfca7
parentc2358d9b935aca18adac53c2607d878d0192e198 (diff)
drop pear/pecl dependency
sources from bitbucket
-rw-r--r--composer.json54
-rw-r--r--php-pecl-event.spec48
2 files changed, 79 insertions, 23 deletions
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..ff61435
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,54 @@
+{
+ "name": "osmanov/pecl-event",
+ "type": "php-ext",
+ "license": "PHP-3.01",
+ "description": "Provides interface to libevent library.",
+ "require": {
+ "php": ">= 5.4.0"
+ },
+ "php-ext": {
+ "extension-name": "event",
+ "configure-options": [
+ {
+ "name": "with-event-pthreads",
+ "description": "Include libevent's pthreads library and enable thread safety support in Event",
+ "needs-value": false
+ },
+ {
+ "name": "with-event-extra",
+ "description": "Event extra functionality support(protocol-specific functionality support including HTTP, DNS, and RPC)",
+ "needs-value": true
+ },
+ {
+ "name": "with-event-openssl",
+ "description": "OpenSSL support in Event",
+ "needs-value": false
+ },
+ {
+ "name": "with-event-ns",
+ "description": "custom PHP namespace for all Event classes",
+ "needs-value": true
+ },
+ {
+ "name": "with-openssl-dir",
+ "description": "OpenSSL installation prefix",
+ "needs-value": true
+ },
+ {
+ "name": "with-event-libevent-dir",
+ "description": "libevent installation prefix",
+ "needs-value": true
+ },
+ {
+ "name": "enable-event-debug",
+ "description": "Enable debug support in Event",
+ "needs-value": false
+ },
+ {
+ "name": "enable-event-sockets",
+ "description": "Enable sockets support in Event",
+ "needs-value": false
+ }
+ ]
+ }
+}
diff --git a/php-pecl-event.spec b/php-pecl-event.spec
index 3cb4a2b..3c5d643 100644
--- a/php-pecl-event.spec
+++ b/php-pecl-event.spec
@@ -27,21 +27,30 @@
%global upstream_version 3.1.5
#global upstream_prever RC1
#global upstream_postver r1
-%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
+%global sources %{gh_vend}-%{gh_proj}-%{commit}
%global _configure ../%{sources}/configure
-Summary: Provides interface to libevent library
+# Github forge
+%global gh_vend osmanov
+%global gh_proj pecl-event
+%global forgeurl https://bitbucket.org/%{gh_vend}/%{gh_proj}
+%global tag %{upstream_version}%{?upstream_prever}
+%global commit e14e0f5e134e
+# Mandatory for gitlab on EL-8
+%global archivename %{gh_proj}-%{upstream_version}%{?upstream_prever}
+
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}%{?upstream_postver:+%{upstream_postver}}
-Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Summary: Provides interface to libevent library
License: PHP-3.01
-URL: https://pecl.php.net/package/event
-Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver}.tgz
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}%{?upstream_postver:+%{upstream_postver}}
+Release: 4%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel
-BuildRequires: %{?scl_prefix}php-pear
#BuildRequires: gdb
#BuildRequires: php-debuginfo
@@ -83,11 +92,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}
# Sanity check, really often broken
DIR=$(%{__php} -r 'echo "php" . PHP_MAJOR_VERSION;')
@@ -162,14 +166,6 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
-: Install the package XML file
-install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
-: Documentation
-for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
-done
-
%check
cd %{sources}
@@ -208,8 +204,10 @@ REPORT_EXIT_STATUS=1 \
%files
%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%doc %{sources}/composer.json
+%doc %{sources}/README.md
+%doc %{sources}/CREDITS
+%doc %{sources}/examples
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
@@ -221,7 +219,11 @@ REPORT_EXIT_STATUS=1 \
%changelog
-* Tue Feb 10 2026 Remi Collet <remi@remirepo.net> - 3.1.5-1
+* Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 3.1.5-4
+- drop pear/pecl dependency
+- sources from bitbucket
+
+* Tue Feb 10 2026 Remi Collet <remi@remirepo.net> - 3.1.5-3
- update to 3.1.5 (no change)
* Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 3.1.4-3