add numerical prefix to extension configuration file

This commit is contained in:
Remi Collet 2014-04-23 16:40:08 +02:00
parent 76c1dc5c48
commit 43f658500f

View File

@ -13,11 +13,16 @@
%global pecl_name apcu %global pecl_name apcu
%global with_zts 0%{?__ztsphp:1} %global with_zts 0%{?__ztsphp:1}
%if 0%{?fedora} < 21
%global ini_name %{pecl_name}.ini
%else
%global ini_name 40-%{pecl_name}.ini
%endif
Name: php-pecl-apcu Name: php-pecl-apcu
Summary: APC User Cache Summary: APC User Cache
Version: 4.0.4 Version: 4.0.4
Release: 1%{?dist} Release: 2%{?dist}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Source1: %{pecl_name}.ini Source1: %{pecl_name}.ini
Source2: %{pecl_name}-panel.conf Source2: %{pecl_name}-panel.conf
@ -158,12 +163,12 @@ make %{?_smp_mflags}
%install %install
# Install the NTS stuff # Install the NTS stuff
make -C NTS install INSTALL_ROOT=%{buildroot} make -C NTS install INSTALL_ROOT=%{buildroot}
install -D -m 644 %{SOURCE1} %{buildroot}%{php_inidir}/%{pecl_name}.ini install -D -m 644 %{SOURCE1} %{buildroot}%{php_inidir}/%{ini_name}
%if %{with_zts} %if %{with_zts}
# Install the ZTS stuff # Install the ZTS stuff
make -C ZTS install INSTALL_ROOT=%{buildroot} make -C ZTS install INSTALL_ROOT=%{buildroot}
install -D -m 644 %{SOURCE1} %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini install -D -m 644 %{SOURCE1} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif %endif
# Install the package XML file # Install the package XML file
@ -232,11 +237,11 @@ fi
%files %files
%doc %{pecl_docdir}/%{pecl_name} %doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml %{pecl_xmldir}/%{name}.xml
%config(noreplace) %{php_inidir}/%{pecl_name}.ini %config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so %{php_extdir}/%{pecl_name}.so
%if %{with_zts} %if %{with_zts}
%{php_ztsextdir}/%{pecl_name}.so %{php_ztsextdir}/%{pecl_name}.so
%config(noreplace) %{php_ztsinidir}/%{pecl_name}.ini %config(noreplace) %{php_ztsinidir}/%{ini_name}
%endif %endif
@ -258,6 +263,9 @@ fi
%changelog %changelog
* Wed Apr 23 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-2
- add numerical prefix to extension configuration file
* Sat Mar 01 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-1 * Sat Mar 01 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-1
- Update to 4.0.4 (beta) - Update to 4.0.4 (beta)