diff options
| author | Remi Collet <fedora@famillecollet.com> | 2014-04-09 18:17:09 +0200 | 
|---|---|---|
| committer | Remi Collet <fedora@famillecollet.com> | 2014-04-09 18:17:09 +0200 | 
| commit | 208051ec94444df585e6acf708b6ebdb6da58c77 (patch) | |
| tree | 1b10c5788d5a071a2d894230bba92afac72207f9 | |
| parent | 48ee4589af2904c1ce0da0e74bf7c20b63d5de7f (diff) | |
php-pecl: add numerical prefix to extension configuration file (3)
| -rw-r--r-- | php-pecl-propro.spec | 25 | 
1 files changed, 18 insertions, 7 deletions
diff --git a/php-pecl-propro.spec b/php-pecl-propro.spec index 6c0f4cb..51637fc 100644 --- a/php-pecl-propro.spec +++ b/php-pecl-propro.spec @@ -14,11 +14,16 @@  %global with_zts  0%{?__ztsphp:1}  %global pecl_name propro +%if "%{php_version}" < "5.6" +%global ini_name  %{pecl_name}.ini +%else +%global ini_name  40-%{pecl_name}.ini +%endif  Summary:        Property proxy  Name:           %{?scl_prefix}php-pecl-%{pecl_name}  Version:        1.0.0 -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:        BSD  Group:          Development/Languages  URL:            http://pecl.php.net/package/%{pecl_name} @@ -38,7 +43,7 @@ Provides:       %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}  Provides:       %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}  Provides:       %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} -%if 0%{!?scl:1} +%if "%{?vendor}" == "Remi Collet"  # Other third party repo stuff  %if "%{php_version}" > "5.4"  Obsoletes:     php53-pecl-%{pecl_name} @@ -48,6 +53,9 @@ Obsoletes:     php54-pecl-%{pecl_name}  %if "%{php_version}" > "5.5"  Obsoletes:     php55u-pecl-%{pecl_name}  %endif +%if "%{php_version}" > "5.6" +Obsoletes:     php56u-pecl-%{pecl_name} +%endif  %endif  %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -89,7 +97,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 @@ -117,14 +125,14 @@ 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}  # 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} -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  # Test & Documentation @@ -186,11 +194,11 @@ 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 @@ -205,6 +213,9 @@ rm -rf %{buildroot}  %changelog +* Wed Apr  9 2014 Remi Collet <remi@fedoraproject.org> - 1.0.0-3 +- add numerical prefix to extension configuration file +  * Fri Nov 29 2013 Remi Collet <rcollet@redhat.com> - 1.0.0-2  - adapt for SCL  - install doc in pecl doc_dir  | 
