diff options
Diffstat (limited to 'php-pecl-nsq.spec')
| -rw-r--r-- | php-pecl-nsq.spec | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/php-pecl-nsq.spec b/php-pecl-nsq.spec index 044cade..ae11cde 100644 --- a/php-pecl-nsq.spec +++ b/php-pecl-nsq.spec @@ -21,13 +21,13 @@ Summary: PHP extension for NSQ client Name: %{?scl_prefix}php-pecl-nsq -Version: 3.5.1 -Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 3.9.1 +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source: https://pecl.php.net/get/%{sources}%{?prever}.tgz License: PHP-3.01 URL: https://pecl.php.net/package/nsq -Patch0: 0001-fix-prototype.patch +Patch0: 82.patch BuildRequires: make BuildRequires: %{?dtsprefix}gcc @@ -61,7 +61,7 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd %{sources} -%patch -P0 -p1 -b .proto +%patch -P0 -p1 # Sanity check, really often broken extver=$(sed -n '/#define PHP_NSQ_VERSION/{s/.* "//;s/".*$//;p}' php_nsq.h ) @@ -90,13 +90,16 @@ EOF cd %{sources} %{__phpize} +[ -f Makefile.global ] && GLOBAL=Makefile.global || GLOBAL=build/Makefile.global +sed -e 's/INSTALL_ROOT/DESTDIR/' -i $GLOBAL cd ../NTS %configure \ --with-nsq \ --with-libevent-path=%{_root_prefix} \ --with-php-config=%{__phpconfig} -make %{?_smp_mflags} + +%make_build %if %{with_zts} cd ../ZTS @@ -104,7 +107,8 @@ cd ../ZTS --with-nsq \ --with-libevent-path=%{_root_prefix} \ --with-php-config=%{__ztsphpconfig} -make %{?_smp_mflags} + +%make_build %endif @@ -112,12 +116,12 @@ make %{?_smp_mflags} %{?dtsenable} : Install the NTS stuff -make -C NTS install INSTALL_ROOT=%{buildroot} +%make_install -C NTS install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} : Install the ZTS stuff %if %{with_zts} -make -C ZTS install INSTALL_ROOT=%{buildroot} +%make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif @@ -175,6 +179,16 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Wed Jul 30 2025 Remi Collet <remi@remirepo.net> - 3.9.1-2 +- fix build with PHP 8.5.0alpha3 using patch from + +* Mon Jun 16 2025 Remi Collet <remi@remirepo.net> - 3.9.1-1 +- update to 3.9.1 + +* Sat May 31 2025 Remi Collet <remi@remirepo.net> - 3.9.0-1 +- update to 3.9.0 +- drop patch merged upstream + * Thu Feb 20 2025 Remi Collet <remi@remirepo.net> - 3.5.1-3 - fix lookup function prototype using patch from https://github.com/yunnian/php-nsq/pull/76 |
