1 |
spuhler |
252662 |
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
2 |
|
|
|
3 |
|
|
%global kolab_user kolab |
4 |
spuhler |
337378 |
%global kolab_user_id 412 |
5 |
spuhler |
252662 |
%global kolab_group kolab |
6 |
spuhler |
337378 |
%global kolab_group_id 412 |
7 |
spuhler |
252662 |
|
8 |
|
|
%global kolabn_user kolab-n |
9 |
spuhler |
337378 |
%global kolabn_user_id 413 |
10 |
spuhler |
252662 |
%global kolabn_group kolab-n |
11 |
spuhler |
337378 |
%global kolabn_group_id 413 |
12 |
spuhler |
252662 |
|
13 |
|
|
%global kolabr_user kolab-r |
14 |
spuhler |
337378 |
%global kolabr_user_id 414 |
15 |
spuhler |
252662 |
%global kolabr_group kolab-r |
16 |
spuhler |
337378 |
%global kolabr_group_id 414 |
17 |
spuhler |
252662 |
|
18 |
spuhler |
270920 |
Summary: Kolab Groupware Solution |
19 |
|
|
Name: pykolab |
20 |
spuhler |
387369 |
Version: 0.5.10 |
21 |
umeabot |
378414 |
Release: %mkrel 2 |
22 |
spuhler |
270920 |
License: GPLv3+ |
23 |
|
|
Group: System/Servers |
24 |
spuhler |
333967 |
URL: http://git.kolab.org/pykolab |
25 |
|
|
Source0: http://git.kolab.org/pykolab//%{name}-%{version}.tar.gz |
26 |
spuhler |
335597 |
Patch0: mga-schema-loc.patch |
27 |
spuhler |
281743 |
BuildRequires: gettext-devel |
28 |
spuhler |
270920 |
BuildArch: noarch |
29 |
|
|
Requires: python-ldap >= 2.4 |
30 |
|
|
Requires(pre): %{_sbindir}/useradd |
31 |
|
|
Requires(pre): %{_sbindir}/usermod |
32 |
|
|
Requires(pre): %{_sbindir}/groupadd |
33 |
spuhler |
252662 |
|
34 |
|
|
%description |
35 |
|
|
Kolab enables you to easily build a groupware server as part of a |
36 |
|
|
collaborative environment. |
37 |
|
|
|
38 |
|
|
## |
39 |
|
|
## Kolab Telemetry Logging |
40 |
|
|
## |
41 |
|
|
%package telemetry |
42 |
spuhler |
270920 |
Summary: Kolab Telemetry Logging Capabilities |
43 |
|
|
Group: System/Servers |
44 |
|
|
Requires: kolab-cli = %{version}-%{release} |
45 |
spuhler |
252662 |
|
46 |
|
|
%description telemetry |
47 |
|
|
Cyrus IMAP Telemetry logging handling capabilities for Kolab Groupware |
48 |
|
|
|
49 |
|
|
## |
50 |
spuhler |
281742 |
## Kolab XML |
51 |
|
|
## |
52 |
|
|
%package xml |
53 |
|
|
Summary: Kolab XML format wrapper for %{name} |
54 |
spuhler |
281744 |
Group: System/Servers |
55 |
spuhler |
281742 |
Requires: %{name} = %{version}-%{release} |
56 |
|
|
Requires: python-kolabformat >= 0.5 |
57 |
|
|
|
58 |
|
|
%description xml |
59 |
|
|
Kolab Format XML bindings wrapper for %{name} |
60 |
|
|
|
61 |
|
|
## |
62 |
spuhler |
252662 |
## Kolab CLI |
63 |
|
|
## |
64 |
|
|
%package -n kolab-cli |
65 |
spuhler |
270920 |
Summary: Kolab CLI components |
66 |
|
|
Group: System/Servers |
67 |
|
|
BuildRequires: intltool |
68 |
|
|
BuildRequires: gettext |
69 |
|
|
BuildRequires: python |
70 |
|
|
Requires: %{name} = %{version}-%{release} |
71 |
|
|
Requires: python-augeas |
72 |
|
|
Requires: python-cheetah |
73 |
spuhler |
252662 |
|
74 |
|
|
%description -n kolab-cli |
75 |
|
|
Kolab CLI utilities |
76 |
|
|
|
77 |
|
|
## |
78 |
|
|
## Kolab SASL Authentication Daemon |
79 |
|
|
## |
80 |
|
|
%package -n kolab-saslauthd |
81 |
spuhler |
270920 |
Summary: Kolab SASL Authentication Daemon |
82 |
|
|
Group: System/Servers |
83 |
|
|
BuildRequires: intltool |
84 |
|
|
BuildRequires: gettext |
85 |
|
|
BuildRequires: python |
86 |
|
|
Requires: %{name} = %{version}-%{release} |
87 |
spuhler |
281742 |
Requires: cyrus-sasl |
88 |
spuhler |
281931 |
Requires: sasl-plug-plain |
89 |
spuhler |
252662 |
|
90 |
|
|
%description -n kolab-saslauthd |
91 |
|
|
Kolab SASL Authentication Daemon for multi-domain, multi-authn database deployments |
92 |
|
|
|
93 |
|
|
## |
94 |
|
|
## Kolab Server implemented in Python |
95 |
|
|
## |
96 |
|
|
%package -n kolab-server |
97 |
spuhler |
270920 |
Summary: Kolab Server implemented in Python |
98 |
|
|
Group: System/Servers |
99 |
|
|
BuildRequires: intltool |
100 |
|
|
BuildRequires: gettext |
101 |
|
|
BuildRequires: python |
102 |
|
|
Requires: %{name} = %{version}-%{release} |
103 |
spuhler |
296813 |
Obsoletes: perl-kolab |
104 |
spuhler |
252662 |
|
105 |
|
|
%description -n kolab-server |
106 |
|
|
Kolab Server implemented in Python |
107 |
|
|
|
108 |
|
|
## |
109 |
|
|
## Kolab SMTP Access Policy for Postfix |
110 |
|
|
## |
111 |
|
|
%package -n postfix-kolab |
112 |
spuhler |
270920 |
Summary: Kolab SMTP Access Policy for Postfix |
113 |
|
|
Group: System/Servers |
114 |
|
|
BuildRequires: intltool |
115 |
|
|
BuildRequires: gettext |
116 |
|
|
BuildRequires: python |
117 |
|
|
Requires: postfix |
118 |
|
|
Requires: %{name} = %{version}-%{release} |
119 |
|
|
Requires: python-sqlalchemy |
120 |
|
|
Requires: MySQL-python |
121 |
spuhler |
252662 |
|
122 |
|
|
%description -n postfix-kolab |
123 |
|
|
Kolab SMTP Access Policy for Postfix |
124 |
|
|
|
125 |
|
|
## |
126 |
|
|
## Wallace |
127 |
|
|
## |
128 |
|
|
%package -n wallace |
129 |
spuhler |
339595 |
Summary: Kolab Content-Filter |
130 |
spuhler |
339608 |
Group: System/Servers |
131 |
spuhler |
339595 |
Requires: %{name} = %{version}-%{release} |
132 |
|
|
Requires: python-sqlalchemy |
133 |
|
|
Requires: MySQL-python |
134 |
|
|
Requires: python-icalendar >= 3.0 |
135 |
|
|
Requires: %{name}-xml = %{version}-%{release} |
136 |
spuhler |
252662 |
|
137 |
|
|
%description -n wallace |
138 |
|
|
This is the Kolab Content Filter, with plugins |
139 |
|
|
|
140 |
|
|
%prep |
141 |
|
|
%setup -q |
142 |
spuhler |
335597 |
%patch0 -p1 -b .mga-schema-loc |
143 |
spuhler |
252662 |
|
144 |
|
|
%build |
145 |
|
|
autoreconf -fi |
146 |
|
|
|
147 |
|
|
%configure2_5x |
148 |
|
|
|
149 |
|
|
%install |
150 |
|
|
rm -rf %{buildroot} |
151 |
|
|
make install DESTDIR=%{buildroot} |
152 |
|
|
|
153 |
|
|
mkdir -p %{buildroot}/%{_unitdir} |
154 |
|
|
%{__install} -p -m 644 kolabd/kolabd.systemd %{buildroot}/%{_unitdir}/kolabd.service |
155 |
|
|
%{__install} -p -m 644 saslauthd/kolab-saslauthd.systemd %{buildroot}/%{_unitdir}/kolab-saslauthd.service |
156 |
|
|
%{__install} -p -m 644 wallace/wallace.systemd %{buildroot}/%{_unitdir}/wallace.service |
157 |
|
|
|
158 |
spuhler |
337538 |
# Install the systemd tempfiles |
159 |
|
|
%{__install} -D -p -m 644 kolabd/kolabd.tmpfiles.d.conf %{buildroot}/%{_tmpfilesdir}/kolabd.conf |
160 |
|
|
%{__install} -D -p -m 644 wallace/wallace.tmpfiles.d.conf %{buildroot}/%{_tmpfilesdir}/wallace.conf |
161 |
spuhler |
252662 |
|
162 |
spuhler |
337538 |
|
163 |
spuhler |
252662 |
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig |
164 |
|
|
%{__install} -p -m 644 kolabd/kolabd.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/kolabd |
165 |
|
|
%{__install} -p -m 644 saslauthd/kolab-saslauthd.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/kolab-saslauthd |
166 |
|
|
%{__install} -p -m 644 wallace/wallace.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/wallace |
167 |
|
|
%find_lang pykolab |
168 |
|
|
|
169 |
|
|
%pre |
170 |
|
|
# Add the kolab user and group accounts |
171 |
|
|
getent group %{kolab_group} &>/dev/null || groupadd -r %{kolab_group} -g %{kolab_group_id} &>/dev/null |
172 |
|
|
getent passwd %{kolab_user} &>/dev/null || \ |
173 |
|
|
useradd -r -u %{kolab_user_id} -g %{kolab_group} -d %{_localstatedir}/lib/%{kolab_user} -s /sbin/nologin \ |
174 |
|
|
-c "Kolab System Account" %{kolab_user} &>/dev/null || : |
175 |
|
|
|
176 |
|
|
gpasswd -a apache kolab >/dev/null 2>&1 || : |
177 |
|
|
|
178 |
|
|
getent group %{kolabn_group} &>/dev/null || groupadd -r %{kolabn_group} -g %{kolabn_group_id} &>/dev/null |
179 |
|
|
getent passwd %{kolabn_user} &>/dev/null || \ |
180 |
|
|
useradd -r -u %{kolabn_user_id} -g %{kolabn_group} -d %{_localstatedir}/lib/%{kolabn_user} -s /sbin/nologin \ |
181 |
|
|
-c "Kolab System Account (N)" %{kolabn_user} &>/dev/null || : |
182 |
|
|
gpasswd -a %{kolabn_user} %{kolab_group} &>/dev/null || : |
183 |
|
|
|
184 |
|
|
getent group %{kolabr_group} &>/dev/null || groupadd -r %{kolabr_group} -g %{kolabr_group_id} &>/dev/null |
185 |
|
|
getent passwd %{kolabr_user} &>/dev/null || \ |
186 |
|
|
useradd -r -u %{kolabr_user_id} -g %{kolabr_group} -d %{_localstatedir}/lib/%{kolabr_user} -s /sbin/nologin \ |
187 |
|
|
-c "Kolab System Account (R)" %{kolabr_user} &>/dev/null || : |
188 |
|
|
|
189 |
|
|
# Make sure the kolab user and group is added |
190 |
|
|
getent passwd %{cyrus_admin} &>/dev/null || \ |
191 |
|
|
useradd -r -d %{_localstatedir}/lib/%{cyrus_admin} -s /sbin/nologin \ |
192 |
|
|
-c "Kolab Cyrus Administrator Account" %{cyrus_admin} &>/dev/null || : |
193 |
|
|
|
194 |
|
|
# Make sure our user has the correct home directory |
195 |
|
|
if [ $1 -gt 1 ] ; then |
196 |
|
|
usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolab_user} &>/dev/null || : |
197 |
|
|
usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolabn_user} &>/dev/null || : |
198 |
|
|
usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolabr_user} &>/dev/null || : |
199 |
|
|
fi |
200 |
|
|
|
201 |
|
|
%post -n kolab-saslauthd |
202 |
|
|
if [ $1 -eq 1 ]; then |
203 |
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
204 |
|
|
else |
205 |
spuhler |
340062 |
/bin/systemctl condrestart kolab-saslauthd |
206 |
spuhler |
252662 |
fi |
207 |
|
|
|
208 |
|
|
%preun -n kolab-saslauthd |
209 |
|
|
if [ $1 = 0 ]; then |
210 |
|
|
/bin/systemctl --no-reload disable kolab-saslauthd.service >/dev/null 2>&1 || : |
211 |
|
|
/bin/systemctl stop kolab-saslauthd.service >/dev/null 2>&1 || : |
212 |
|
|
fi |
213 |
|
|
|
214 |
|
|
%post -n kolab-server |
215 |
|
|
if [ $1 -eq 1 ] ; then |
216 |
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
217 |
|
|
fi |
218 |
|
|
|
219 |
|
|
%preun -n kolab-server |
220 |
|
|
if [ $1 = 0 ]; then |
221 |
|
|
/bin/systemctl --no-reload disable kolabd.service >/dev/null 2>&1 || : |
222 |
|
|
/bin/systemctl stop kolabd.service >/dev/null 2>&1 || : |
223 |
|
|
fi |
224 |
|
|
|
225 |
|
|
%post -n wallace |
226 |
|
|
if [ $1 -eq 1 ] ; then |
227 |
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
228 |
|
|
else |
229 |
spuhler |
339721 |
/bin/systemctl condrestart wallace |
230 |
spuhler |
252662 |
fi |
231 |
|
|
|
232 |
|
|
%preun -n wallace |
233 |
|
|
if [ $1 = 0 ]; then |
234 |
|
|
/bin/systemctl --no-reload disable wallace.service |
235 |
spuhler |
339721 |
/bin/systemctl stop wallace.service |
236 |
spuhler |
252662 |
fi |
237 |
|
|
|
238 |
|
|
|
239 |
|
|
%files -f pykolab.lang |
240 |
spuhler |
331294 |
%doc AUTHORS COPYING README README.tests |
241 |
spuhler |
281742 |
%doc conf/kolab.conf |
242 |
spuhler |
252662 |
%attr(0640,kolab-n,kolab) %config(noreplace) %{_sysconfdir}/kolab/kolab.conf |
243 |
|
|
%dir %{python_sitelib}/pykolab/ |
244 |
|
|
%exclude %{python_sitelib}/pykolab/telemetry.* |
245 |
|
|
%{python_sitelib}/pykolab/*.py |
246 |
|
|
%{python_sitelib}/pykolab/*.pyc |
247 |
|
|
%{python_sitelib}/pykolab/*.pyo |
248 |
|
|
%{python_sitelib}/pykolab/auth/ |
249 |
|
|
%{python_sitelib}/pykolab/conf/ |
250 |
|
|
%{python_sitelib}/pykolab/imap/ |
251 |
|
|
%dir %{python_sitelib}/pykolab/plugins/ |
252 |
|
|
%{python_sitelib}/pykolab/plugins/*.py |
253 |
|
|
%{python_sitelib}/pykolab/plugins/*.pyc |
254 |
|
|
%{python_sitelib}/pykolab/plugins/*.pyo |
255 |
|
|
%{python_sitelib}/pykolab/plugins/defaultfolders |
256 |
|
|
%{python_sitelib}/pykolab/plugins/dynamicquota |
257 |
|
|
%{python_sitelib}/pykolab/plugins/recipientpolicy |
258 |
|
|
%{python_sitelib}/kolab/ |
259 |
|
|
%{python_sitelib}/cyruslib.py* |
260 |
spuhler |
281742 |
%attr(0775,kolab,kolab-n) %dir %{_localstatedir}/lib/kolab/ |
261 |
|
|
%attr(0775,kolab,kolab-n) %dir %{_localstatedir}/log/kolab/ |
262 |
spuhler |
252662 |
|
263 |
|
|
%files telemetry |
264 |
spuhler |
331294 |
%doc AUTHORS COPYING |
265 |
spuhler |
252662 |
%{_sbindir}/kolab_parse_telemetry |
266 |
|
|
%{python_sitelib}/pykolab/telemetry.* |
267 |
|
|
%{python_sitelib}/pykolab/cli/telemetry/ |
268 |
|
|
|
269 |
spuhler |
281742 |
%files xml |
270 |
|
|
%dir %{python_sitelib}/pykolab/xml |
271 |
|
|
%{python_sitelib}/pykolab/xml/*.py |
272 |
|
|
%{python_sitelib}/pykolab/xml/*.pyc |
273 |
|
|
%{python_sitelib}/pykolab/xml/*.pyo |
274 |
|
|
|
275 |
spuhler |
252662 |
%files -n kolab-cli |
276 |
|
|
%{_sbindir}/kolab |
277 |
|
|
%{_sbindir}/kolab-conf |
278 |
|
|
%{_sbindir}/setup-kolab |
279 |
|
|
%dir %{_sysconfdir}/kolab/templates |
280 |
|
|
%{_datadir}/kolab/templates |
281 |
|
|
%dir %{python_sitelib}/pykolab/cli/ |
282 |
|
|
%{python_sitelib}/pykolab/cli/*.py |
283 |
|
|
%{python_sitelib}/pykolab/cli/*.pyc |
284 |
|
|
%{python_sitelib}/pykolab/cli/*.pyo |
285 |
|
|
%dir %{python_sitelib}/pykolab/setup/ |
286 |
|
|
%{python_sitelib}/pykolab/setup/*.py |
287 |
|
|
%{python_sitelib}/pykolab/setup/*.pyc |
288 |
|
|
%{python_sitelib}/pykolab/setup/*.pyo |
289 |
spuhler |
281742 |
%dir %{python_sitelib}/pykolab/wap_client/ |
290 |
|
|
%{python_sitelib}/pykolab/wap_client/*.py |
291 |
|
|
%{python_sitelib}/pykolab/wap_client/*.pyc |
292 |
|
|
%{python_sitelib}/pykolab/wap_client/*.pyo |
293 |
spuhler |
252662 |
|
294 |
|
|
%files -n kolab-saslauthd |
295 |
spuhler |
331294 |
%doc AUTHORS COPYING |
296 |
spuhler |
252662 |
%{_unitdir}/kolab-saslauthd.service |
297 |
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/kolab-saslauthd |
298 |
|
|
%{_sbindir}/kolab-saslauthd |
299 |
|
|
%{python_sitelib}/saslauthd/ |
300 |
spuhler |
337538 |
#%{_tmpfilesdir}/kolab-saslauthd.conf |
301 |
spuhler |
252662 |
|
302 |
|
|
%files -n kolab-server |
303 |
spuhler |
331294 |
%doc AUTHORS COPYING |
304 |
spuhler |
252662 |
%{_unitdir}/kolabd.service |
305 |
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/kolabd |
306 |
|
|
%{_sbindir}/kolabd |
307 |
|
|
%{python_sitelib}/kolabd/ |
308 |
spuhler |
337538 |
%{_tmpfilesdir}/kolabd.conf |
309 |
spuhler |
252662 |
|
310 |
|
|
%files -n postfix-kolab |
311 |
spuhler |
331294 |
%doc AUTHORS COPYING |
312 |
spuhler |
252662 |
%{_libexecdir}/postfix/kolab_smtp_access_policy |
313 |
|
|
|
314 |
|
|
%files -n wallace |
315 |
spuhler |
331294 |
%doc AUTHORS COPYING |
316 |
spuhler |
252662 |
%{_unitdir}/wallace.service |
317 |
|
|
%{_sysconfdir}/sysconfig/wallace |
318 |
|
|
%{_sbindir}/wallaced |
319 |
|
|
%{python_sitelib}/wallace |
320 |
spuhler |
281742 |
%attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab |
321 |
spuhler |
336269 |
%attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace |
322 |
|
|
%{_tmpfilesdir}/wallace.conf |