diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec index f3b8b69..2f7a958 100644 --- a/php-pecl-apcu.spec +++ b/php-pecl-apcu.spec @@ -1,3 +1,11 @@ +# spec file for php-pecl-apcu +# +# Copyright (c) 2013 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/3.0/ +# +# Please, preserve the changelog entries +# %{!?php_inidir: %{expand: %%global php_inidir %{_sysconfdir}/php.d}} %{!?php_incldir: %{expand: %%global php_incldir %{_includedir}/php}} %{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} @@ -30,8 +38,12 @@ Provides: php-apcu = %{version} Provides: php-apcu%{?_isa} = %{version} Provides: php-pecl(apcu) = %{version} Provides: php-pecl(apcu)%{?_isa} = %{version} +%if %{?fedora} < 20 +Conflicts: php-pecl-apc +%else +Obsoletes: php-pecl-apc < 4 +%endif # Same provides than APC, this is a drop in replacement -Conflicts: php-pecl-apc < 4 Provides: php-apc = %{version} Provides: php-apc%{?_isa} = %{version} Provides: php-pecl-apc = %{version} @@ -70,7 +82,13 @@ Summary: APCu developer files (header) Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: php-devel%{?_isa} -#Obsoletes: php-pecl-apc-devel +%if %{?fedora} < 20 +Conflicts: php-pecl-apc-devel +%else +Obsoletes: php-pecl-apc-devel < 4 +Provides: php-pecl-apc-devel = %{version}-%{release} +Provides: php-pecl-apc-devel%{?_isa} = %{version}-%{release} +%endif %description devel These are the files needed to compile programs using APCu. @@ -82,7 +100,12 @@ Group: Applications/Internet BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: mod_php, httpd, php-gd -#Obsoletes: apc-panel +%if %{?fedora} < 20 +Conflicts: apc-panel +%else +Obsoletes: apc-panel < 4 +Provides: apc-devel = %{version}-%{release} +%endif %description -n apcu-panel This package provides the APCu control panel, with Apache