1 |
%define name smeserver-radicale |
2 |
%define version 0.0.3 |
3 |
%define release 4 |
4 |
|
5 |
Summary: smserver rpm to setup radicale, a carddav and caldav client |
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release}%{?dist} |
9 |
Source: %{name}-%{version}.tar.gz |
10 |
Patch0: smeserver-radicale-0.0.3-sme10.patch |
11 |
|
12 |
License: GNU GPL version 2 |
13 |
URL: http://www.contribs.org |
14 |
Group: SMEserver/addon |
15 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
16 |
Prefix: %{_prefix} |
17 |
BuildArchitectures: noarch |
18 |
BuildRequires: e-smith-devtools |
19 |
Requires: e-smith-release >= 10.0 |
20 |
Requires: python36-pip |
21 |
AutoReqProv: no |
22 |
|
23 |
%description |
24 |
smserver rpm to setup the roundcube IMAP mail client. |
25 |
|
26 |
%changelog |
27 |
* Thu Aug 04 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.0.3-4.sme |
28 |
- import to SME10 |
29 |
- python 3.6 |
30 |
|
31 |
* Sun Oct 18 2015 stephane de labrusse <stephdl@de-labrusse.fr> 0.0.3-3 |
32 |
- change path and permissions to collections |
33 |
|
34 |
* Sat Oct 17 2015 stephane de labrusse <stephdl@de-labrusse.fr> 0.0.3-2 |
35 |
- /etc/rc.d/init.d/masq & /etc/services are expanding on radicale-update |
36 |
|
37 |
* Sun Oct 4 2015 stephane de labrusse <stephdl@de-labrusse.fr> 0.0.3-1 |
38 |
- specific ssl certificate is used |
39 |
- the user/group radicale run the init script |
40 |
- hosts.allow is used now |
41 |
|
42 |
* Thu Oct 1 2015 stephane de labrusse <stephdl@de-labrusse.fr> 0.0.1-3 |
43 |
- First release to sme9 |
44 |
- Thanks to JM LE CORGUILLE <jean-michel@le-corguille.org> for the code and idea. |
45 |
|
46 |
%prep |
47 |
%setup |
48 |
%patch0 -p1 |
49 |
|
50 |
rm -rf root/etc/rc.d |
51 |
|
52 |
%build |
53 |
perl createlinks |
54 |
%{__mkdir_p} root/home/e-smith/files/radicale/collections |
55 |
%{__mkdir_p} root/etc/radicale/ |
56 |
%{__mkdir_p} root/var/log/radicale |
57 |
%{__mkdir_p} root/run/radicale |
58 |
|
59 |
%install |
60 |
rm -rf $RPM_BUILD_ROOT |
61 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
62 |
rm -f %{name}-%{version}-filelist |
63 |
/sbin/e-smith/genfilelist \ |
64 |
--dir /etc/radicale/ 'attr(0755,root,root)' \ |
65 |
--dir /home/e-smith/files/radicale 'attr(0750,radicale,radicale)' \ |
66 |
--dir /home/e-smith/files/radicale/collections 'attr(0750,radicale,radicale)' \ |
67 |
--dir /var/log/radicale 'attr(0755,radicale,radicale)' \ |
68 |
--file /var/log/radicale/radicale.log 'attr(0755,radicale,radicale)' \ |
69 |
--dir /run/radicale 'attr(0755,radicale,radicale)' \ |
70 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
71 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
72 |
|
73 |
%clean |
74 |
cd .. |
75 |
rm -rf %{name}-%{version} |
76 |
|
77 |
%pre |
78 |
|
79 |
/sbin/e-smith/create-system-user radicale 1948 "Radicale server" /home/e-smith/files/.radicale/ /bin/bash |
80 |
|
81 |
#echo "### Radicale Installation" |
82 |
#pip install --upgrade pip radicale >/dev/null 2>&1 |
83 |
|
84 |
%preun |
85 |
|
86 |
%post |
87 |
chkconfig --add radicale |
88 |
|
89 |
%postun |
90 |
|
91 |
%files -f %{name}-%{version}-filelist |
92 |
%defattr(-,root,root) |