summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-11-27 08:49:50 +0100
committerRemi Collet <remi@php.net>2024-11-27 08:49:50 +0100
commit00bcdb8ad5924a80e8a0bed61c5806a9c3ff059d (patch)
tree1fc12e5a75eeaba421e38f7072153c49c3b09ed9
parentfbeacc30b3beeb25a5003b2cd47d0178b0193bde (diff)
drop BuildRequires on pcre-develv22.0
-rw-r--r--php-pecl-openswoole22.spec46
1 files changed, 9 insertions, 37 deletions
diff --git a/php-pecl-openswoole22.spec b/php-pecl-openswoole22.spec
index 54478c0..28d839f 100644
--- a/php-pecl-openswoole22.spec
+++ b/php-pecl-openswoole22.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-openswoole22
#
-# Copyright (c) 2013-2023 Remi Collet
+# Copyright (c) 2013-2024 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -17,11 +17,7 @@
%bcond_without cares
%bcond_without nghttpd2
-%if 0%{?fedora} >= 25 || 0%{?rhel} >= 8
%bcond_without brotli
-%else
-%bcond_with brotli
-%endif
%bcond_without pgsql
%global upstream_version 22.0.0
@@ -33,7 +29,7 @@
Summary: High Performance Programmatic Server for PHP with Async IO, Coroutines and Fibers
Name: %{?scl_prefix}php-pecl-%{pecl_name}22
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# SPDX: extension is Apache-2.0
# hiredis is BSD-3-Clause
License: Apache-2.0 AND BSD-3-Clause
@@ -51,7 +47,6 @@ BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-curl
BuildRequires: %{?scl_prefix}php-sockets
BuildRequires: %{?scl_prefix}php-mysqlnd
-BuildRequires: pcre-devel
BuildRequires: openssl-devel >= 1.0.2
BuildRequires: zlib-devel
BuildRequires: libcurl-devel
@@ -62,11 +57,7 @@ BuildRequires: c-ares-devel
BuildRequires: brotli-devel
%endif
%if %{with pgsql}
-%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8
BuildRequires: libpq-devel > 9
-%else
-BuildRequires: postgresql-devel > 9
-%endif
%endif
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
@@ -123,8 +114,8 @@ sed \
-e '/Makefile/s/role="doc"/role="src"/' \
-e '/samples/s/role="doc"/role="src"/' \
-e '/name="library/s/role="doc"/role="src"/' \
- %{?_licensedir: -e '/LICENSE/s/role="doc"/role="src"/' } \
- %{?_licensedir: -e '/COPYING/s/role="doc"/role="src"/' } \
+ -e '/LICENSE/s/role="doc"/role="src"/' \
+ -e '/COPYING/s/role="doc"/role="src"/' \
-i package.xml
@@ -228,26 +219,6 @@ done
rm %{buildroot}%{pecl_testdir}/%{pecl_name}/tests/swoole_process/echo.py
-%if 0%{?fedora} < 24 && 0%{?rhel} < 8
-# when pear installed alone, after us
-%triggerin -- %{?scl_prefix}php-pear
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-# posttrans as pear can be installed after us
-%posttrans
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-%postun
-if [ $1 -eq 0 -a -x %{__pecl} ] ; then
- %{pecl_uninstall} %{pecl_name} >/dev/null || :
-fi
-%endif
-
-
%check
OPT="--no-php-ini"
[ -f %{php_extdir}/curl.so ] && OPT="$OPT -d extension=curl.so"
@@ -268,10 +239,8 @@ OPT="--no-php-ini"
%files
-%{?_licensedir:%license %{sources}/LICENSE*}
-%{?_licensedir:%license %{sources}/*-COPYING}
-%{!?_licensedir:%{pecl_docdir}/%{pecl_name}/LICENSE}
-%{!?_licensedir:%{pecl_docdir}/%{pecl_name}/thirdparty/*/COPYING}
+%license %{sources}/LICENSE*
+%license %{sources}/*-COPYING
%{pecl_xmldir}/%{name}.xml
%config(noreplace) %{php_inidir}/%{ini_name}
@@ -299,6 +268,9 @@ OPT="--no-php-ini"
%changelog
+* Wed Nov 27 2024 Remi Collet <remi@remirepo.net> - 22.0.0-5
+- drop BuildRequires on pcre-devel
+
* Mon Feb 19 2024 Remi Collet <remi@remirepo.net> - 22.0.0-4
- fix BuildRequires for libpq-devel