diff options
| -rw-r--r-- | php-pecl-newt.spec | 24 | 
1 files changed, 16 insertions, 8 deletions
diff --git a/php-pecl-newt.spec b/php-pecl-newt.spec index 9894c44..4298142 100644 --- a/php-pecl-newt.spec +++ b/php-pecl-newt.spec @@ -11,13 +11,18 @@  %{!?__pecl:      %global __pecl      %{_bindir}/pecl}  %{!?__php:       %global __php       %{_bindir}/php} -%global with_zts  0%{?__ztsphp:1} -%global pecl_name newt +%global with_zts   0%{?__ztsphp:1} +%global pecl_name  newt +%if "%{php_version}" < "5.6" +%global ini_name   %{pecl_name}.ini +%else +%global ini_name   40-%{pecl_name}.ini +%endif  Summary:        Extension for Red Hat Newt window library  Name:           %{?scl_prefix}php-pecl-%{pecl_name}  Version:        1.2.8 -Release:        2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release:        3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}  License:        PHP  Group:          Development/Languages  URL:            http://pecl.php.net/package/%{pecl_name} @@ -90,7 +95,7 @@ cp -pr NTS ZTS  %endif  # Create configuration file -cat > %{pecl_name}.ini << 'EOF' +cat > %{ini_name} << 'EOF'  ; Enable %{pecl_name} extension module  extension=%{pecl_name}.so  EOF @@ -122,12 +127,12 @@ rm -rf %{buildroot}  make -C NTS install INSTALL_ROOT=%{buildroot}  # install config file -install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_inidir}/%{pecl_name}.ini +install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}  %if %{with_zts}  make -C ZTS install INSTALL_ROOT=%{buildroot} -install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini +install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}  %endif  # Install XML package description @@ -175,16 +180,19 @@ rm -rf %{buildroot}  %defattr(-,root,root,-)  %doc %{pecl_docdir}/%{pecl_name}  %{pecl_xmldir}/%{name}.xml -%config(noreplace) %{php_inidir}/%{pecl_name}.ini +%config(noreplace) %{php_inidir}/%{ini_name}  %{php_extdir}/%{pecl_name}.so  %if %{with_zts} -%config(noreplace) %{php_ztsinidir}/%{pecl_name}.ini +%config(noreplace) %{php_ztsinidir}/%{ini_name}  %{php_ztsextdir}/%{pecl_name}.so  %endif  %changelog +* Wed Apr 16 2014 Remi Collet <remi@fedoraproject.org> - 1.2.8-3 +- add numerical prefix to extension configuration file (php 5.6) +  * Fri Nov 29 2013 Remi Collet <rcollet@redhat.com> - 1.2.8-2  - adapt for SCL  - install doc in pecl doc_dir  | 
