diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-05-10 07:30:34 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-05-10 07:30:34 +0200 |
commit | 6173e6a9aa5f16ec710fa39808d3b77727e5af4f (patch) | |
tree | 8dd6ffe7d0cc9bec626ed600b56d812c3c2a64a3 /php-pecl-pthreads.spec | |
parent | 42142e0dc73f38bb7a538bdb006dc22e0463b026 (diff) |
php-pecl-pthreads: 2.0.5 (stable)
Diffstat (limited to 'php-pecl-pthreads.spec')
-rw-r--r-- | php-pecl-pthreads.spec | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/php-pecl-pthreads.spec b/php-pecl-pthreads.spec index 2c97e10..143c9b7 100644 --- a/php-pecl-pthreads.spec +++ b/php-pecl-pthreads.spec @@ -12,10 +12,15 @@ %{!?__php: %global __php %{_bindir}/php} %global pecl_name pthreads +%if "%{php_version}" < "5.6" +%global ini_name %{pecl_name}.ini +%else +%global ini_name 40-%{pecl_name}.ini +%endif Summary: Threading API Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 2.0.4 +Version: 2.0.5 Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages @@ -77,7 +82,7 @@ fi cd .. # Create configuration file -cat > %{pecl_name}.ini << 'EOF' +cat > %{ini_name} << 'EOF' ; Enable %{pecl_name} extension module extension=%{pecl_name}.so EOF @@ -98,7 +103,7 @@ make -C %{pecl_name}-%{version} \ install INSTALL_ROOT=%{buildroot} # install config file -install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini +install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} # Install XML package description install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml @@ -151,11 +156,15 @@ rm -rf %{buildroot} %doc %{pecl_testdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml -%config(noreplace) %{php_ztsinidir}/%{pecl_name}.ini +%config(noreplace) %{php_ztsinidir}/%{ini_name} %{php_ztsextdir}/%{pecl_name}.so %changelog +* Sat May 10 2014 Remi Collet <remi@fedoraproject.org> - 2.0.5-1 +- Update to 2.0.5 (stable) +- add numerical prefix to extension configuration file + * Sun Mar 30 2014 Remi Collet <remi@fedoraproject.org> - 2.0.4-1 - Update to 2.0.4 (stable) |