Update zoneminder.spec

change rpm package requirements relating to php-pecl-apcu
This commit is contained in:
Andrew Bauer 2017-05-08 10:35:32 -05:00 committed by GitHub
parent fd35ac37c5
commit 31b52197a2
1 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,11 @@
# This will tell zoneminder's cmake process we are building against a known distro # This will tell zoneminder's cmake process we are building against a known distro
%global zmtargetdistro %{?rhel:el%{rhel}}%{!?rhel:fc%{fedora}} %global zmtargetdistro %{?rhel:el%{rhel}}%{!?rhel:fc%{fedora}}
# Fedora >= 25 needs apcu backwards compatibility module
%if 0%{?fedora} >= 25
%global with_apcu_bc 1
%endif
# Include files for SysV init or systemd # Include files for SysV init or systemd
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 %if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
%global with_init_systemd 1 %global with_init_systemd 1
@ -86,8 +91,8 @@ BuildRequires: polkit-devel
Requires: php-mysqli Requires: php-mysqli
Requires: php-common Requires: php-common
Requires: php-gd Requires: php-gd
%{?fedora:Requires: php-pecl-apcu-bc} Requires: php-pecl-apcu
%{?rhel:Requires: php-pecl-apcu} %{?with_apcu_bc:Requires: php-pecl-apcu-bc}
Requires: cambozola Requires: cambozola
Requires: net-tools Requires: net-tools
Requires: psmisc Requires: psmisc