/[packages]/updates/3/pykolab/current/SPECS/pykolab.spec
ViewVC logotype

Contents of /updates/3/pykolab/current/SPECS/pykolab.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615332 - (show annotations) (download)
Wed Apr 16 22:52:45 2014 UTC (6 years, 3 months ago) by spuhler
File size: 8747 byte(s)
- converted adding "user" to use adduser macro
1 %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2
3 %define kolab_user kolab
4 %define kolabn_user kolab-n
5 %define kolabr_user kolab-r
6
7 Summary: Kolab Groupware Solution
8 Name: pykolab
9 Version: 0.5.14
10 %define subrel 2
11 Release: %mkrel 1
12 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 Patch1: imap-mga.patch
19 Patch2: mageia_sasl.patch
20 Patch3: Issue-1627.patch
21 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 # this is for serviceadd, etc.
36 Requires(post): systemd >= %{systemd_required_version}
37 Requires(post): rpm-helper
38 Requires(preun): rpm-helper
39 # this is for useradd, groupadd, etc.
40 Requires(pre): rpm-helper
41 Requires(postun): rpm-helper
42 Requires(pre): %{_sbindir}/useradd
43 Requires(pre): %{_sbindir}/usermod
44 Requires(pre): %{_sbindir}/groupadd
45 BuildArch: noarch
46 %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 Summary: Kolab Telemetry Logging Capabilities
55 Group: System/Servers
56 Requires: kolab-cli = %{version}-%{release}
57
58 %description telemetry
59 Cyrus IMAP Telemetry logging handling capabilities for Kolab Groupware
60
61 ##
62 ## Kolab XML
63 ##
64 %package xml
65 Summary: Kolab XML format wrapper for %{name}
66 Group: System/Servers
67 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 ## Kolab CLI
75 ##
76 %package -n kolab-cli
77 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
86 %description -n kolab-cli
87 Kolab CLI utilities
88
89 ##
90 ## Kolab SASL Authentication Daemon
91 ##
92 %package -n kolab-saslauthd
93 Summary: Kolab SASL Authentication Daemon
94 Group: System/Servers
95 BuildRequires: intltool
96 BuildRequires: gettext
97 BuildRequires: python
98 Requires: %{name} = %{version}-%{release}
99 Requires: cyrus-sasl
100 Requires: sasl-plug-plain
101
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 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 Obsoletes: perl-kolab
116
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 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
134 %description -n postfix-kolab
135 Kolab SMTP Access Policy for Postfix
136
137 ##
138 ## Wallace
139 ##
140 %package -n wallace
141 Summary: Kolab Content-Filter
142 Group: System/Servers
143 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
149 %description -n wallace
150 This is the Kolab Content Filter, with plugins
151
152 %prep
153 %setup -q
154 %patch0 -p1 -b .mga-schema-loc
155 %patch1 -p1 -b .imap-mga
156 %patch2 -p1 -b .sasl
157 %patch3 -p1 -b .issue1627
158
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 # Install the systemd tempfiles
174 %{__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
178
179 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 %_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
196 %post -n kolab-saslauthd
197 %_tmpfilescreate kolab-saslauthd
198 %_post_service kolab-saslauthd
199
200 %preun -n kolab-saslauthd
201 %_preun_service kolab-saslauthd
202
203 %post -n kolab-server
204 %_tmpfilescreate kolabd
205 %_post_service kolabd
206
207 %preun -n kolab-server
208 %_preun_service kolabd
209
210 %post -n wallace
211 %_tmpfilescreate wallace
212 %_post_service wallace
213
214 %preun -n wallace
215 %_preun_service wallace
216
217
218 %files -f pykolab.lang
219 %doc AUTHORS COPYING README README.tests
220 %doc conf/kolab.conf
221 %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 %attr(0775,kolab,kolab-n) %dir %{_localstatedir}/lib/kolab/
240 %attr(0775,kolab,kolab-n) %dir %{_localstatedir}/log/kolab/
241
242 %files telemetry
243 %doc AUTHORS COPYING
244 %{_sbindir}/kolab_parse_telemetry
245 %{python_sitelib}/pykolab/telemetry.*
246 %{python_sitelib}/pykolab/cli/telemetry/
247
248 %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 %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 %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
273 %files -n kolab-saslauthd
274 %doc AUTHORS COPYING
275 %{_unitdir}/kolab-saslauthd.service
276 %config(noreplace) %{_sysconfdir}/sysconfig/kolab-saslauthd
277 %{_sbindir}/kolab-saslauthd
278 %{python_sitelib}/saslauthd/
279 %{_tmpfilesdir}/kolab-saslauthd.conf
280
281 %files -n kolab-server
282 %doc AUTHORS COPYING
283 %{_unitdir}/kolabd.service
284 %config(noreplace) %{_sysconfdir}/sysconfig/kolabd
285 %{_sbindir}/kolabd
286 %{python_sitelib}/kolabd/
287 %{_tmpfilesdir}/kolabd.conf
288
289 %files -n postfix-kolab
290 %doc AUTHORS COPYING
291 %{_libexecdir}/postfix/kolab_smtp_access_policy
292
293 %files -n wallace
294 %doc AUTHORS COPYING
295 %{_unitdir}/wallace.service
296 %{_sysconfdir}/sysconfig/wallace
297 %{_sbindir}/wallaced
298 %{python_sitelib}/wallace
299 %attr(0700,%{kolab_user},%{kolab_user}) %dir %{_var}/spool/pykolab
300 %attr(0700,%{kolab_user},%{kolab_user}) %dir %{_var}/spool/pykolab/wallace
301 %{_tmpfilesdir}/wallace.conf

  ViewVC Help
Powered by ViewVC 1.1.28