From 43f658500fac64c44c79585bebb1ee88fbff4697 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 23 Apr 2014 16:40:08 +0200 Subject: [PATCH] add numerical prefix to extension configuration file --- php-pecl-apcu.spec | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec index eb9d073..61cbf01 100644 --- a/php-pecl-apcu.spec +++ b/php-pecl-apcu.spec @@ -13,11 +13,16 @@ %global pecl_name apcu %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 Summary: APC User Cache Version: 4.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz Source1: %{pecl_name}.ini Source2: %{pecl_name}-panel.conf @@ -158,12 +163,12 @@ make %{?_smp_mflags} %install # Install the NTS stuff 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} # Install the ZTS stuff 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 # Install the package XML file @@ -232,11 +237,11 @@ fi %files %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} %{php_ztsextdir}/%{pecl_name}.so -%config(noreplace) %{php_ztsinidir}/%{pecl_name}.ini +%config(noreplace) %{php_ztsinidir}/%{ini_name} %endif @@ -258,6 +263,9 @@ fi %changelog +* Wed Apr 23 2014 Remi Collet - 4.0.4-2 +- add numerical prefix to extension configuration file + * Sat Mar 01 2014 Remi Collet - 4.0.4-1 - Update to 4.0.4 (beta)