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