summaryrefslogtreecommitdiffstats
path: root/php-pecl-phpy.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-phpy.spec')
-rw-r--r--php-pecl-phpy.spec35
1 files changed, 12 insertions, 23 deletions
diff --git a/php-pecl-phpy.spec b/php-pecl-phpy.spec
index f5d13c2..3f00af4 100644
--- a/php-pecl-phpy.spec
+++ b/php-pecl-phpy.spec
@@ -6,11 +6,7 @@
#
# Please, preserve the changelog entries
#
-%if 0%{?scl:1}
-%scl_package php-pecl-phpy
-%else
-%global _root_bindir %{_bindir}
-%endif
+%{?scl:%scl_package php-pecl-phpy}
%global pecl_name phpy
%global ini_name 40-%{pecl_name}.ini
@@ -21,16 +17,15 @@
Summary: An extension for inter-calling Python and PHP
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: 1.0.6
-Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Version: 1.0.8
+Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: Apache-2.0
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
-Source1: https://github.com/swoole/phpy/blob/%{version}/LICENSE
-Source2: config.m4
-Patch0: 61.patch
-Patch1: 64.patch
+# Always use pkg-config instead of python3-config
+# see https://github.com/swoole/phpy/pull/65
+Patch0: %{pecl_name}-pkgconfig.patch
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
@@ -60,7 +55,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
# Don't install/register tests
sed -e 's/role="test"/role="src"/' \
- -e '/README/s/role="src"/role="doc"/' \
-e '/LICENSE/s/role="doc"/role="src"/' \
-i package.xml
@@ -68,17 +62,7 @@ cd %{sources}
# drop unneeded options (keep std=c++14)
sed -s '/-Wall/d' -i config.m4
-# See https://github.com/swoole/phpy/pull/61
-%patch -P0 -p1 -b .pr61
-
-# See https://github.com/swoole/phpy/pull/64
-%patch -P1 -p1 -b .pr64
-
-# See https://github.com/swoole/phpy/pull/65
-cp %{SOURCE2} .
-
-# See https://github.com/swoole/phpy/pull/62
-cp %{SOURCE1} .
+%patch -P0 -p1 -b .pkg
# Sanity check, really often broken
extver=$(sed -n '/# define PHP_PHPY_VERSION/{s/.* "//;s/".*$//;p}' php_phpy.h)
@@ -179,6 +163,11 @@ cd %{sources}
%changelog
+* Fri Sep 6 2024 Remi Collet <remi@remirepo.net> - 1.0.8-1
+- update to 1.0.8
+- drop patches merged upstream
+- add patch to use pkg-config by default
+
* Wed Aug 21 2024 Remi Collet <remi@remirepo.net> - 1.0.6-3
- test build for PR 65