add obsoletes/provides as APC is removed from F20

This commit is contained in:
Remi Collet 2013-07-01 16:30:54 +02:00
parent f4472fd0e3
commit 916e88e522

View File

@ -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_inidir: %{expand: %%global php_inidir %{_sysconfdir}/php.d}}
%{!?php_incldir: %{expand: %%global php_incldir %{_includedir}/php}} %{!?php_incldir: %{expand: %%global php_incldir %{_includedir}/php}}
%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} %{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
@ -30,8 +38,12 @@ Provides: php-apcu = %{version}
Provides: php-apcu%{?_isa} = %{version} Provides: php-apcu%{?_isa} = %{version}
Provides: php-pecl(apcu) = %{version} Provides: php-pecl(apcu) = %{version}
Provides: php-pecl(apcu)%{?_isa} = %{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 # Same provides than APC, this is a drop in replacement
Conflicts: php-pecl-apc < 4
Provides: php-apc = %{version} Provides: php-apc = %{version}
Provides: php-apc%{?_isa} = %{version} Provides: php-apc%{?_isa} = %{version}
Provides: php-pecl-apc = %{version} Provides: php-pecl-apc = %{version}
@ -70,7 +82,13 @@ Summary: APCu developer files (header)
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: php-devel%{?_isa} 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 %description devel
These are the files needed to compile programs using APCu. These are the files needed to compile programs using APCu.
@ -82,7 +100,12 @@ Group: Applications/Internet
BuildArch: noarch BuildArch: noarch
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: mod_php, httpd, php-gd 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 %description -n apcu-panel
This package provides the APCu control panel, with Apache This package provides the APCu control panel, with Apache