summaryrefslogtreecommitdiffstats
path: root/php-pecl-pspell.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-pspell.spec')
-rw-r--r--php-pecl-pspell.spec15
1 files changed, 10 insertions, 5 deletions
diff --git a/php-pecl-pspell.spec b/php-pecl-pspell.spec
index 0c8238c..600e357 100644
--- a/php-pecl-pspell.spec
+++ b/php-pecl-pspell.spec
@@ -20,7 +20,7 @@
Summary: Spell checker extension
Name: %{?scl_prefix}php-pecl-pspell
Version: 1.0.1
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP-3.01
URL: https://pecl.php.net/package/pspell
@@ -85,13 +85,14 @@ mkdir ZTS
cd %{sources}
%{__phpize}
+sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
cd ../NTS
%configure \
--with-pspell \
--with-php-config=%{__phpconfig}
-make %{?_smp_mflags}
+%make_build
%if %{with_zts}
cd ../ZTS
@@ -99,21 +100,21 @@ cd ../ZTS
--with-pspell \
--with-php-config=%{__ztsphpconfig}
-make %{?_smp_mflags}
+%make_build
%endif
%install
%{?dtsenable}
-make -C NTS install INSTALL_ROOT=%{buildroot}
+%make_install -C NTS
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
# Install XML package description
install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
%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
@@ -156,6 +157,7 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
%files
+%license %{sources}/LICENSE
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@@ -169,6 +171,9 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
%changelog
+* Tue Sep 24 2024 Remi Collet <remi@remirepo.net> - 1.0.1-2
+- rebuild for 8.4.0RC1
+
* Thu Nov 23 2023 Remi Collet <remi@remirepo.net> - 1.0.1-1
- update to 1.0.1
- drop patch merged upstream