|
|
16b9421 |
Name: radicale
|
|
|
16b9421 |
Version: 0.8
|
|
|
16b9421 |
Release: 3%{?dist}
|
|
|
16b9421 |
Summary: A simple CalDAV (calendar) and CardDAV (contact) server
|
|
|
16b9421 |
Group: Applications/Internet
|
|
|
16b9421 |
License: GPLv3+
|
|
|
16b9421 |
URL: http://radicale.org
|
|
|
16b9421 |
Source0: http://pypi.python.org/packages/source/R/Radicale/Radicale-%{version}.tar.gz
|
|
|
16b9421 |
Source1: %{name}-service-unit
|
|
|
16b9421 |
Source2: %{name}-logrotate
|
|
|
16b9421 |
Source3: %{name}-httpd
|
|
|
16b9421 |
# config adjustments for systemwide installation
|
|
|
16b9421 |
Patch0: %{name}-%{version}-systemwide.patch
|
|
|
16b9421 |
|
|
|
16b9421 |
BuildArch: noarch
|
|
|
16b9421 |
BuildRequires: python2-devel
|
|
|
16b9421 |
BuildRequires: systemd
|
|
|
16b9421 |
Requires(pre): shadow-utils
|
|
|
16b9421 |
Requires(post): systemd
|
|
|
16b9421 |
Requires(preun): systemd
|
|
|
16b9421 |
Requires(postun): systemd
|
|
|
16b9421 |
Requires: python-pam
|
|
|
16b9421 |
Requires: python-ldap
|
|
|
16b9421 |
|
|
|
16b9421 |
%description
|
|
|
16b9421 |
The Radicale Project is a CalDAV (calendar) and CardDAV (contact) server. It
|
|
|
16b9421 |
aims to be a light solution, easy to use, easy to install, easy to configure.
|
|
|
16b9421 |
As a consequence, it requires few software dependencies and is pre-configured
|
|
|
16b9421 |
to work out-of-the-box.
|
|
|
16b9421 |
|
|
|
16b9421 |
The Radicale Project runs on most of the UNIX-like platforms (Linux, BSD,
|
|
|
16b9421 |
MacOS X) and Windows. It is known to work with Evolution, Lightning, iPhone
|
|
|
16b9421 |
and Android clients. It is free and open-source software, released under GPL
|
|
|
16b9421 |
version 3.
|
|
|
16b9421 |
|
|
|
16b9421 |
For further information, please visit the Radicale Website
|
|
|
16b9421 |
http://www.radicale.org
|
|
|
16b9421 |
|
|
|
16b9421 |
%package httpd
|
|
|
16b9421 |
Summary: httpd config for Radicale
|
|
|
16b9421 |
Requires: %{name} = %{version}-%{release}
|
|
|
16b9421 |
Requires: httpd
|
|
|
16b9421 |
Requires: mod_wsgi
|
|
|
16b9421 |
|
|
|
16b9421 |
%description httpd
|
|
|
16b9421 |
httpd config for Radicale
|
|
|
16b9421 |
|
|
|
16b9421 |
%prep
|
|
|
16b9421 |
%setup -q -n Radicale-%{version}
|
|
|
16b9421 |
%patch0 -p1
|
|
|
16b9421 |
|
|
|
16b9421 |
%build
|
|
|
16b9421 |
%{__python} setup.py build
|
|
|
16b9421 |
|
|
|
16b9421 |
%install
|
|
|
16b9421 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
16b9421 |
|
|
|
16b9421 |
# Install configuration files
|
|
|
16b9421 |
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/
|
|
|
16b9421 |
install -p -m 640 config %{buildroot}%{_sysconfdir}/%{name}/
|
|
|
16b9421 |
install -p -m 644 logging %{buildroot}%{_sysconfdir}/%{name}/
|
|
|
16b9421 |
|
|
|
16b9421 |
# Install wsgi file
|
|
|
16b9421 |
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
16b9421 |
install -p -m 755 radicale.wsgi %{buildroot}%{_datadir}/%{name}/
|
|
|
16b9421 |
install -p -m 755 radicale.fcgi %{buildroot}%{_datadir}/%{name}/
|
|
|
16b9421 |
|
|
|
16b9421 |
# Install apache's configuration file
|
|
|
16b9421 |
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
|
|
|
16b9421 |
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
|
|
|
16b9421 |
|
|
|
16b9421 |
# Create folder where the calendar will be stored
|
|
|
16b9421 |
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}/
|
|
|
16b9421 |
|
|
|
16b9421 |
install -D -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
|
|
16b9421 |
install -D -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
|
|
16b9421 |
|
|
|
16b9421 |
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
|
|
|
16b9421 |
touch %{buildroot}%{_localstatedir}/log/%{name}/%{name}.log
|
|
|
16b9421 |
|
|
|
16b9421 |
%pre
|
|
|
16b9421 |
getent group %{name} >/dev/null || groupadd -r %{name}
|
|
|
16b9421 |
getent passwd %{name} >/dev/null || \
|
|
|
16b9421 |
useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /sbin/nologin \
|
|
|
16b9421 |
-c "Radicale service account" %{name}
|
|
|
16b9421 |
exit 0
|
|
|
16b9421 |
|
|
|
16b9421 |
%post
|
|
|
16b9421 |
%systemd_post %{name}.service
|
|
|
16b9421 |
|
|
|
16b9421 |
%preun
|
|
|
16b9421 |
%systemd_preun %{name}.service
|
|
|
16b9421 |
|
|
|
16b9421 |
%postun
|
|
|
16b9421 |
%systemd_postun_with_restart %{name}.service
|
|
|
16b9421 |
|
|
|
16b9421 |
%files
|
|
|
16b9421 |
%doc COPYING README NEWS.rst TODO.rst
|
|
|
16b9421 |
%dir %attr(0755, %{name}, %{name}) %{_sysconfdir}/%{name}/
|
|
|
16b9421 |
%config(noreplace) %attr(0640, %{name}, %{name}) %{_sysconfdir}/%{name}/config
|
|
|
16b9421 |
%config(noreplace) %attr(0644, %{name}, %{name}) %{_sysconfdir}/%{name}/logging
|
|
|
16b9421 |
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
16b9421 |
%{python_sitelib}/%{name}
|
|
|
16b9421 |
%{python_sitelib}/Radicale-*.egg-info
|
|
|
16b9421 |
%{_bindir}/%{name}
|
|
|
16b9421 |
%{_unitdir}/%{name}.service
|
|
|
16b9421 |
%dir %attr(750, %{name}, %{name}) %{_localstatedir}/log/%{name}
|
|
|
16b9421 |
%ghost %attr(640, %{name}, %{name}) %{_localstatedir}/log/%{name}/%{name}.log
|
|
|
16b9421 |
%dir %attr(750, %{name}, %{name}) %{_sharedstatedir}/%{name}/
|
|
|
16b9421 |
%dir %{_datadir}/%{name}
|
|
|
16b9421 |
%{_datadir}/%{name}/%{name}.wsgi
|
|
|
16b9421 |
%{_datadir}/%{name}/%{name}.fcgi
|
|
|
16b9421 |
|
|
|
16b9421 |
%files httpd
|
|
|
16b9421 |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
|
|
|
16b9421 |
|
|
|
16b9421 |
%changelog
|
|
|
16b9421 |
* Tue Aug 27 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.8-3
|
|
|
16b9421 |
- Move .wsgi and .fcgi to main package
|
|
|
16b9421 |
|
|
|
16b9421 |
* Sun Jul 21 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.8-2
|
|
|
16b9421 |
- BuildRequire python2-devel
|
|
|
16b9421 |
|
|
|
16b9421 |
* Thu Jul 18 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.8-1
|
|
|
16b9421 |
- Update to version 0.8
|
|
|
16b9421 |
- Merge Till Maas's spec file. Bug #922276
|
|
|
16b9421 |
|
|
|
16b9421 |
* Mon Jul 08 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.7.1-1
|
|
|
16b9421 |
- Initial packaging
|