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