|
|
|
@ -2,7 +2,7 @@
@@ -2,7 +2,7 @@
|
|
|
|
|
%global selinux_variants %([ -z "%{selinux_types}" ] && echo mls targeted || echo %{selinux_types}) |
|
|
|
|
|
|
|
|
|
Name: radicale |
|
|
|
|
Version: 2.1.12 |
|
|
|
|
Version: 3.0.6 |
|
|
|
|
Release: 1%{?dist} |
|
|
|
|
Summary: A simple CalDAV (calendar) and CardDAV (contact) server |
|
|
|
|
License: GPLv3+ |
|
|
|
@ -103,15 +103,15 @@ cd -
@@ -103,15 +103,15 @@ cd -
|
|
|
|
|
# Install configuration files |
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ |
|
|
|
|
install -p -m 640 config %{buildroot}%{_sysconfdir}/%{name}/ |
|
|
|
|
install -p -m 644 logging %{buildroot}%{_sysconfdir}/%{name}/ |
|
|
|
|
#install -p -m 644 logging %{buildroot}%{_sysconfdir}/%{name}/ |
|
|
|
|
install -p -m 644 rights %{buildroot}%{_sysconfdir}/%{name}/ |
|
|
|
|
|
|
|
|
|
# Install wsgi file |
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name} |
|
|
|
|
sed -i 's|^#!/usr/bin/env python3$|#!/usr/bin/python3|' radicale.wsgi |
|
|
|
|
sed -i 's|^#!/usr/bin/env python3$|#!/usr/bin/python3|' radicale.fcgi |
|
|
|
|
#sed -i 's|^#!/usr/bin/env python3$|#!/usr/bin/python3|' radicale.fcgi |
|
|
|
|
install -p -m 755 radicale.wsgi %{buildroot}%{_datadir}/%{name}/ |
|
|
|
|
install -p -m 755 radicale.fcgi %{buildroot}%{_datadir}/%{name}/ |
|
|
|
|
#install -p -m 755 radicale.fcgi %{buildroot}%{_datadir}/%{name}/ |
|
|
|
|
|
|
|
|
|
# Install apache's configuration file |
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/ |
|
|
|
@ -176,7 +176,7 @@ fi
@@ -176,7 +176,7 @@ fi
|
|
|
|
|
%{_bindir}/%{name} |
|
|
|
|
%dir %{_sysconfdir}/%{name}/ |
|
|
|
|
%config(noreplace) %attr(0640, root, %{name}) %{_sysconfdir}/%{name}/config |
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/logging |
|
|
|
|
#%config(noreplace) %{_sysconfdir}/%{name}/logging |
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/rights |
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} |
|
|
|
|
%{_unitdir}/%{name}.service |
|
|
|
@ -194,7 +194,7 @@ fi
@@ -194,7 +194,7 @@ fi
|
|
|
|
|
|
|
|
|
|
%files httpd |
|
|
|
|
%{_datadir}/%{name}/%{name}.wsgi |
|
|
|
|
%{_datadir}/%{name}/%{name}.fcgi |
|
|
|
|
#%{_datadir}/%{name}/%{name}.fcgi |
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf |
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
|