summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-04-09 19:33:42 +0200
committerRemi Collet <fedora@famillecollet.com>2014-04-09 19:33:42 +0200
commit5a0dbec011531d4cc383ca8868b003a00cb71c30 (patch)
treee45eff718cfa272b4ac77069060ff3c0719c446a
parentb649b62db59cf506bf7102195a2c45e42aa9b848 (diff)
php-pecl: add numerical prefix to extension configuration file (4)
-rw-r--r--php-pecl-radius.spec20
1 files changed, 14 insertions, 6 deletions
diff --git a/php-pecl-radius.spec b/php-pecl-radius.spec
index 7087c44..a702ce9 100644
--- a/php-pecl-radius.spec
+++ b/php-pecl-radius.spec
@@ -15,6 +15,11 @@
%global pecl_name radius
%global with_zts 0%{?__ztsphp:1}
+%if "%{php_version}" < "5.6"
+%global ini_name %{pecl_name}.ini
+%else
+%global ini_name 40-%{pecl_name}.ini
+%endif
Name: %{?scl_prefix}php-pecl-radius
Version: 1.2.7
@@ -92,7 +97,7 @@ if test "x${extver}" != "x%{version}"; then
fi
cd ..
-cat > %{pecl_name}.ini << 'EOF'
+cat > %{ini_name} << 'EOF'
; Enable %{pecl_name} extension module
extension=%{pecl_name}.so
EOF
@@ -126,11 +131,11 @@ make -C NTS install INSTALL_ROOT=%{buildroot}
install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
# install config file
-install -Dpm644 %{pecl_name}.ini %{buildroot}%{php_inidir}/%{pecl_name}.ini
+install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
%if %{with_zts}
make -C ZTS install INSTALL_ROOT=%{buildroot}
-install -Dpm644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini
+install -Dpm644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
# Test & Documentation
@@ -202,17 +207,20 @@ rm -rf %{buildroot}
%doc %{pecl_testdir}/%{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 Mar 19 2014 Remi Collet <rcollet@redhat.com> - 1.1.2-2
+* Wed Apr 9 2014 Remi Collet <remi@fedoraproject.org> - 1.1.2-4
+- add numerical prefix to extension configuration file
+
+* Wed Mar 19 2014 Remi Collet <rcollet@redhat.com> - 1.1.2-3
- allow SCL build
* Sun Mar 16 2014 Remi Collet <remi@fedoraproject.org> - 1.2.7-2