From a072a02431e002e7d1e7c29e9331039682cd843c Mon Sep 17 00:00:00 2001 From: Juan Orti Alcaine Date: Nov 05 2015 08:00:40 +0000 Subject: Fix radicale-httpd for python3 --- diff --git a/radicale.spec b/radicale.spec index 573cd0a..7028b53 100644 --- a/radicale.spec +++ b/radicale.spec @@ -10,7 +10,7 @@ Name: radicale Version: 1.0.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A simple CalDAV (calendar) and CardDAV (contact) server Group: Applications/Internet License: GPLv3+ @@ -88,7 +88,11 @@ http://www.radicale.org Summary: httpd config for Radicale Requires: %{name} = %{version}-%{release} Requires: httpd +%if 0%{?with_python3} +Requires: python3-mod_wsgi +%else Requires: mod_wsgi +%endif %description httpd httpd config for Radicale @@ -96,9 +100,12 @@ httpd config for Radicale %prep %autosetup -n Radicale-%{version} - mkdir SELinux cp -p %{SOURCE4} %{SOURCE5} %{SOURCE6} SELinux +%if 0%{?with_python3} +sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python3|' radicale.wsgi +sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python3|' radicale.fcgi +%endif %build @@ -228,6 +235,9 @@ semanage port -a -t radicale_port_t -p tcp 5232 > /dev/null 2>&1 || : %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %changelog +* Thu Nov 05 2015 Juan Orti Alcaine - 1.0.1-3 +- Fix radicale-httpd for python3 + * Thu Sep 24 2015 Juan Orti Alcaine - 1.0.1-2 - Unify spec for Fedora and epel7