From 375994c11b4dcf480e2bcffadb2f455eb798b245 Mon Sep 17 00:00:00 2001 From: Eli Young Date: Fri, 7 Oct 2016 15:04:59 -0700 Subject: [PATCH] Add support for modpython on EPEL >= 7 --- znc.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/znc.spec b/znc.spec index 5431e7a..5765909 100644 --- a/znc.spec +++ b/znc.spec @@ -6,14 +6,14 @@ %global with_modperl 1 %endif # 0%{?fedora} || 0%{?rhel} >= 6 -%if 0%{?fedora} || 0%{?rhel} >= 8 +%if 0%{?fedora} || 0%{?rhel} >= 7 %global __python %{__python3} %global with_modpython 1 -%endif # 0%{?fedora} || 0%{?rhel} >= 8 +%endif # 0%{?fedora} || 0%{?rhel} >= 7 Name: znc Version: 1.6.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: An advanced IRC bouncer Group: System Environment/Daemons @@ -92,11 +92,19 @@ perl module for ZNC Summary: python3 module for ZNC Group: Development/Libraries +%if 0%{?rhel} +BuildRequires: python34-devel +%else BuildRequires: python3-devel +%endif # 0%{?rhel} BuildRequires: swig Requires: %{name} = %{version}-%{release} +%if 0%{?rhel} +Requires: python34 +%else Requires: python3 +%endif # 0%{?rhel} %description modpython python3 module for ZNC @@ -246,6 +254,9 @@ chown znc:znc /var/lib/znc %changelog +* Fri Oct 07 2016 Eli Young - 1.6.3-6 +- Add support for modpython on EPEL >= 7 + * Fri Oct 07 2016 Nick Bebout - 1.6.3-5 - Fix bug 1367810