diff --git a/libkolabxml.spec b/libkolabxml.spec index 5a6c0f2..e506f6e 100644 --- a/libkolabxml.spec +++ b/libkolabxml.spec @@ -13,6 +13,11 @@ %{!?php_extdir: %global php_extdir %{_libdir}/php/modules} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d/} %{!?php_apiver: %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)} +%if "%{php_version}" < "5.6" +%global ini_name kolabformat.ini +%else +%global ini_name 40-kolabformat.ini +%endif %endif %if 0%{?with_python} > 0 @@ -46,7 +51,7 @@ Name: libkolabxml Version: 1.0.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Kolab XML format collection parser library Group: System Environment/Libraries @@ -223,7 +228,7 @@ mkdir -p \ %{buildroot}/%{_datadir}/php \ %{buildroot}/%{php_inidir}/ mv %{buildroot}/%{php_extdir}/kolabformat.php %{buildroot}/%{_datadir}/php/kolabformat.php -cat > %{buildroot}/%{php_inidir}/kolabformat.ini << EOF +cat > %{buildroot}/%{php_inidir}/%{ini_name} << EOF extension=kolabformat.so EOF %endif @@ -274,7 +279,7 @@ popd %files -n php-kolabformat %{_datadir}/php/kolabformat.php %{php_extdir}/kolabformat.so -%config(noreplace) %{php_inidir}/kolabformat.ini +%config(noreplace) %{php_inidir}/%{ini_name} %endif %if 0%{?with_python} > 0 @@ -284,6 +289,10 @@ popd %endif %changelog +* Fri Jun 20 2014 Remi Collet - 1.0.1-6 +- rebuild for https://fedoraproject.org/wiki/Changes/Php56 +- add numerical prefix to extension configuration file + * Sat Jun 07 2014 Fedora Release Engineering - 1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild