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 |
391785 |
Summary: Kolab Groupware Solution |
19 |
|
|
Name: pykolab |
20 |
|
|
Version: 0.5.11 |
21 |
spuhler |
407553 |
Release: %mkrel 7 |
22 |
spuhler |
391785 |
License: GPLv3+ |
23 |
|
|
Group: System/Servers |
24 |
|
|
URL: http://git.kolab.org/pykolab |
25 |
|
|
Source0: http://git.kolab.org/pykolab//%{name}-%{version}.tar.gz |
26 |
|
|
Source1: kolab-saslauthd.tmpfiles.d.conf |
27 |
|
|
Patch0: mga-schema-loc.patch |
28 |
spuhler |
395270 |
Patch1: imap-mga.patch |
29 |
spuhler |
391785 |
BuildRequires: gettext-devel |
30 |
|
|
BuildRequires: glib2-devel |
31 |
|
|
BuildRequires: intltool |
32 |
|
|
BuildRequires: python-icalendar |
33 |
|
|
BuildRequires: python-kolabformat |
34 |
|
|
BuildRequires: python-ldap |
35 |
|
|
BuildRequires: python-nose |
36 |
|
|
BuildRequires: python-pyasn1 |
37 |
|
|
BuildRequires: python-pyasn1-modules |
38 |
|
|
BuildRequires: python-sqlalchemy |
39 |
|
|
Requires: kolab-cli = %{version}-%{release} |
40 |
|
|
Requires: python-ldap >= 2.4 |
41 |
|
|
Requires: python-pyasn1 |
42 |
|
|
Requires: python-pyasn1-modules |
43 |
spuhler |
407549 |
# this is for serviceadd, etc. |
44 |
|
|
Requires(post): systemd >= %{systemd_required_version} |
45 |
spuhler |
391785 |
Requires(post): rpm-helper |
46 |
|
|
Requires(preun): rpm-helper |
47 |
spuhler |
407549 |
# this is for useradd, groupadd, etc. |
48 |
|
|
Requires(pre): rpm-helper |
49 |
spuhler |
391785 |
Requires(postun): rpm-helper |
50 |
|
|
Requires(pre): %{_sbindir}/useradd |
51 |
|
|
Requires(pre): %{_sbindir}/usermod |
52 |
|
|
Requires(pre): %{_sbindir}/groupadd |
53 |
|
|
BuildArch: noarch |
54 |
spuhler |
252662 |
%description |
55 |
|
|
Kolab enables you to easily build a groupware server as part of a |
56 |
|
|
collaborative environment. |
57 |
|
|
|
58 |
|
|
## |
59 |
|
|
## Kolab Telemetry Logging |
60 |
|
|
## |
61 |
|
|
%package telemetry |
62 |
spuhler |
270920 |
Summary: Kolab Telemetry Logging Capabilities |
63 |
|
|
Group: System/Servers |
64 |
|
|
Requires: kolab-cli = %{version}-%{release} |
65 |
spuhler |
252662 |
|
66 |
|
|
%description telemetry |
67 |
|
|
Cyrus IMAP Telemetry logging handling capabilities for Kolab Groupware |
68 |
|
|
|
69 |
|
|
## |
70 |
spuhler |
281742 |
## Kolab XML |
71 |
|
|
## |
72 |
|
|
%package xml |
73 |
|
|
Summary: Kolab XML format wrapper for %{name} |
74 |
spuhler |
281744 |
Group: System/Servers |
75 |
spuhler |
281742 |
Requires: %{name} = %{version}-%{release} |
76 |
|
|
Requires: python-kolabformat >= 0.5 |
77 |
|
|
|
78 |
|
|
%description xml |
79 |
|
|
Kolab Format XML bindings wrapper for %{name} |
80 |
|
|
|
81 |
|
|
## |
82 |
spuhler |
252662 |
## Kolab CLI |
83 |
|
|
## |
84 |
|
|
%package -n kolab-cli |
85 |
spuhler |
270920 |
Summary: Kolab CLI components |
86 |
|
|
Group: System/Servers |
87 |
|
|
BuildRequires: intltool |
88 |
|
|
BuildRequires: gettext |
89 |
|
|
BuildRequires: python |
90 |
|
|
Requires: %{name} = %{version}-%{release} |
91 |
|
|
Requires: python-augeas |
92 |
|
|
Requires: python-cheetah |
93 |
spuhler |
252662 |
|
94 |
|
|
%description -n kolab-cli |
95 |
|
|
Kolab CLI utilities |
96 |
|
|
|
97 |
|
|
## |
98 |
|
|
## Kolab SASL Authentication Daemon |
99 |
|
|
## |
100 |
|
|
%package -n kolab-saslauthd |
101 |
spuhler |
270920 |
Summary: Kolab SASL Authentication Daemon |
102 |
|
|
Group: System/Servers |
103 |
|
|
BuildRequires: intltool |
104 |
|
|
BuildRequires: gettext |
105 |
|
|
BuildRequires: python |
106 |
|
|
Requires: %{name} = %{version}-%{release} |
107 |
spuhler |
281742 |
Requires: cyrus-sasl |
108 |
spuhler |
281931 |
Requires: sasl-plug-plain |
109 |
spuhler |
252662 |
|
110 |
|
|
%description -n kolab-saslauthd |
111 |
|
|
Kolab SASL Authentication Daemon for multi-domain, multi-authn database deployments |
112 |
|
|
|
113 |
|
|
## |
114 |
|
|
## Kolab Server implemented in Python |
115 |
|
|
## |
116 |
|
|
%package -n kolab-server |
117 |
spuhler |
270920 |
Summary: Kolab Server implemented in Python |
118 |
|
|
Group: System/Servers |
119 |
|
|
BuildRequires: intltool |
120 |
|
|
BuildRequires: gettext |
121 |
|
|
BuildRequires: python |
122 |
|
|
Requires: %{name} = %{version}-%{release} |
123 |
spuhler |
296813 |
Obsoletes: perl-kolab |
124 |
spuhler |
252662 |
|
125 |
|
|
%description -n kolab-server |
126 |
|
|
Kolab Server implemented in Python |
127 |
|
|
|
128 |
|
|
## |
129 |
|
|
## Kolab SMTP Access Policy for Postfix |
130 |
|
|
## |
131 |
|
|
%package -n postfix-kolab |
132 |
spuhler |
270920 |
Summary: Kolab SMTP Access Policy for Postfix |
133 |
|
|
Group: System/Servers |
134 |
|
|
BuildRequires: intltool |
135 |
|
|
BuildRequires: gettext |
136 |
|
|
BuildRequires: python |
137 |
|
|
Requires: postfix |
138 |
|
|
Requires: %{name} = %{version}-%{release} |
139 |
|
|
Requires: python-sqlalchemy |
140 |
|
|
Requires: MySQL-python |
141 |
spuhler |
252662 |
|
142 |
|
|
%description -n postfix-kolab |
143 |
|
|
Kolab SMTP Access Policy for Postfix |
144 |
|
|
|
145 |
|
|
## |
146 |
|
|
## Wallace |
147 |
|
|
## |
148 |
|
|
%package -n wallace |
149 |
spuhler |
339595 |
Summary: Kolab Content-Filter |
150 |
spuhler |
339608 |
Group: System/Servers |
151 |
spuhler |
339595 |
Requires: %{name} = %{version}-%{release} |
152 |
|
|
Requires: python-sqlalchemy |
153 |
|
|
Requires: MySQL-python |
154 |
|
|
Requires: python-icalendar >= 3.0 |
155 |
|
|
Requires: %{name}-xml = %{version}-%{release} |
156 |
spuhler |
252662 |
|
157 |
|
|
%description -n wallace |
158 |
|
|
This is the Kolab Content Filter, with plugins |
159 |
|
|
|
160 |
|
|
%prep |
161 |
|
|
%setup -q |
162 |
spuhler |
335597 |
%patch0 -p1 -b .mga-schema-loc |
163 |
spuhler |
395270 |
%patch1 -p1 -b .imap-mga |
164 |
spuhler |
252662 |
|
165 |
|
|
%build |
166 |
|
|
autoreconf -fi |
167 |
|
|
|
168 |
|
|
%configure2_5x |
169 |
|
|
|
170 |
|
|
%install |
171 |
|
|
rm -rf %{buildroot} |
172 |
|
|
make install DESTDIR=%{buildroot} |
173 |
|
|
|
174 |
|
|
mkdir -p %{buildroot}/%{_unitdir} |
175 |
|
|
%{__install} -p -m 644 kolabd/kolabd.systemd %{buildroot}/%{_unitdir}/kolabd.service |
176 |
|
|
%{__install} -p -m 644 saslauthd/kolab-saslauthd.systemd %{buildroot}/%{_unitdir}/kolab-saslauthd.service |
177 |
|
|
%{__install} -p -m 644 wallace/wallace.systemd %{buildroot}/%{_unitdir}/wallace.service |
178 |
|
|
|
179 |
spuhler |
337538 |
# Install the systemd tempfiles |
180 |
spuhler |
388291 |
%{__install} -D -p -m 644 kolabd/kolabd.tmpfiles.d.conf %{buildroot}%{_tmpfilesdir}/kolabd.conf |
181 |
|
|
%{__install} -D -p -m 644 wallace/wallace.tmpfiles.d.conf %{buildroot}%{_tmpfilesdir}/wallace.conf |
182 |
|
|
%{__install} -D -p -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/kolab-saslauthd.conf |
183 |
spuhler |
252662 |
|
184 |
spuhler |
337538 |
|
185 |
spuhler |
252662 |
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig |
186 |
|
|
%{__install} -p -m 644 kolabd/kolabd.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/kolabd |
187 |
|
|
%{__install} -p -m 644 saslauthd/kolab-saslauthd.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/kolab-saslauthd |
188 |
|
|
%{__install} -p -m 644 wallace/wallace.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/wallace |
189 |
|
|
%find_lang pykolab |
190 |
|
|
|
191 |
|
|
%pre |
192 |
|
|
# Add the kolab user and group accounts |
193 |
|
|
getent group %{kolab_group} &>/dev/null || groupadd -r %{kolab_group} -g %{kolab_group_id} &>/dev/null |
194 |
|
|
getent passwd %{kolab_user} &>/dev/null || \ |
195 |
|
|
useradd -r -u %{kolab_user_id} -g %{kolab_group} -d %{_localstatedir}/lib/%{kolab_user} -s /sbin/nologin \ |
196 |
|
|
-c "Kolab System Account" %{kolab_user} &>/dev/null || : |
197 |
|
|
|
198 |
|
|
gpasswd -a apache kolab >/dev/null 2>&1 || : |
199 |
|
|
|
200 |
|
|
getent group %{kolabn_group} &>/dev/null || groupadd -r %{kolabn_group} -g %{kolabn_group_id} &>/dev/null |
201 |
|
|
getent passwd %{kolabn_user} &>/dev/null || \ |
202 |
|
|
useradd -r -u %{kolabn_user_id} -g %{kolabn_group} -d %{_localstatedir}/lib/%{kolabn_user} -s /sbin/nologin \ |
203 |
|
|
-c "Kolab System Account (N)" %{kolabn_user} &>/dev/null || : |
204 |
|
|
gpasswd -a %{kolabn_user} %{kolab_group} &>/dev/null || : |
205 |
|
|
|
206 |
|
|
getent group %{kolabr_group} &>/dev/null || groupadd -r %{kolabr_group} -g %{kolabr_group_id} &>/dev/null |
207 |
|
|
getent passwd %{kolabr_user} &>/dev/null || \ |
208 |
|
|
useradd -r -u %{kolabr_user_id} -g %{kolabr_group} -d %{_localstatedir}/lib/%{kolabr_user} -s /sbin/nologin \ |
209 |
|
|
-c "Kolab System Account (R)" %{kolabr_user} &>/dev/null || : |
210 |
|
|
|
211 |
|
|
# Make sure the kolab user and group is added |
212 |
|
|
getent passwd %{cyrus_admin} &>/dev/null || \ |
213 |
|
|
useradd -r -d %{_localstatedir}/lib/%{cyrus_admin} -s /sbin/nologin \ |
214 |
|
|
-c "Kolab Cyrus Administrator Account" %{cyrus_admin} &>/dev/null || : |
215 |
|
|
|
216 |
|
|
# Make sure our user has the correct home directory |
217 |
|
|
if [ $1 -gt 1 ] ; then |
218 |
|
|
usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolab_user} &>/dev/null || : |
219 |
|
|
usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolabn_user} &>/dev/null || : |
220 |
|
|
usermod -d %{_localstatedir}/lib/%{kolab_user} %{kolabr_user} &>/dev/null || : |
221 |
|
|
fi |
222 |
|
|
|
223 |
|
|
%post -n kolab-saslauthd |
224 |
spuhler |
407553 |
%_tmpfilescreate kolab-saslauthd |
225 |
|
|
%_post_service kolab-saslauthd |
226 |
spuhler |
252662 |
|
227 |
|
|
%preun -n kolab-saslauthd |
228 |
spuhler |
407553 |
%_preun_service kolab-saslauthd |
229 |
spuhler |
252662 |
|
230 |
|
|
%post -n kolab-server |
231 |
spuhler |
407549 |
%_tmpfilescreate kolabd |
232 |
|
|
%_post_service kolabd |
233 |
spuhler |
252662 |
|
234 |
|
|
%preun -n kolab-server |
235 |
spuhler |
407549 |
%_preun_service kolabd |
236 |
spuhler |
252662 |
|
237 |
|
|
%post -n wallace |
238 |
spuhler |
407553 |
%_tmpfilescreate wallace |
239 |
|
|
%_post_service wallace |
240 |
spuhler |
252662 |
|
241 |
|
|
%preun -n wallace |
242 |
spuhler |
407553 |
%_preun_service wallace |
243 |
spuhler |
252662 |
|
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 |