]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - look at files in main package (more split?) | |
3 | # - guile and python packages? (note: maidag and mu-mh/inc link with libmu_scm/libmu_py libraries) | |
4 | # - scripts for daemons | |
5 | # - dbm switches? (GDBM BDB NDBM TC KC) | |
6 | # | |
7 | # Conditional build: | |
8 | %bcond_without gssapi # GSSAPI authentication (krb5 or heimdal) | |
9 | %bcond_with gss # use GSS instead of MIT/Heimdal | |
10 | %bcond_without ldap # LDAP support | |
11 | %bcond_with radius # RADIUS support [requires gnu-radius, which is not ready for guile 2.x] | |
12 | %bcond_without sasl # without SASL (using GNU SASL) | |
13 | # language support | |
14 | %bcond_without cxx # C++ wrapper | |
15 | %bcond_without guile # Guile support | |
16 | %bcond_without python # Python support | |
17 | # SQL: | |
18 | %bcond_without mysql # MySQL module | |
19 | %bcond_without pgsql # PostgreSQL module | |
20 | %bcond_without odbc # ODBC module (any variant) | |
21 | %bcond_with iodbc # ODBC module using libiodbc | |
22 | # broken code: | |
23 | %bcond_with nntp # NNTP support [broken in 3.x] | |
24 | # | |
25 | %if %{without odbc} | |
26 | %undefine with_iodbc | |
27 | %endif | |
28 | Summary: GNU mail utilities | |
29 | Summary(pl.UTF-8): Narzędzia pocztowe z projektu GNU | |
30 | Name: mailutils | |
31 | Version: 3.6 | |
32 | Release: 3 | |
33 | License: GPL v3+ | |
34 | Group: Applications/Mail | |
35 | Source0: http://ftp.gnu.org/gnu/mailutils/%{name}-%{version}.tar.xz | |
36 | # Source0-md5: 70bb4a88956f63a1c613491c84a19662 | |
37 | Patch0: %{name}-info.patch | |
38 | Patch1: %{name}-tinfo.patch | |
39 | Patch2: link.patch | |
40 | Patch3: %{name}-includes.patch | |
41 | Patch4: %{name}-examples.patch | |
42 | URL: http://www.gnu.org/software/mailutils/mailutils.html | |
43 | BuildRequires: autoconf >= 2.63 | |
44 | BuildRequires: automake >= 1:1.11 | |
45 | BuildRequires: bison | |
46 | BuildRequires: flex | |
47 | BuildRequires: fribidi-devel | |
48 | BuildRequires: gettext-tools >= 0.19 | |
49 | %{?with_radius:BuildRequires: gnu-radius-devel >= 1.6} | |
50 | BuildRequires: gnutls-devel >= 1.2.5 | |
51 | %{?with_sasl:BuildRequires: gsasl-devel >= 0.2.3} | |
52 | %{?with_guile:BuildRequires: guile-devel >= 5:2.2.0} | |
53 | %{?with_odbc:%{?with_iodbc:BuildRequires: libiodbc-devel}} | |
54 | BuildRequires: libltdl-devel | |
55 | %if %{with cxx} | |
56 | BuildRequires: libstdc++-devel | |
57 | %endif | |
58 | BuildRequires: libwrap-devel | |
59 | BuildRequires: libtool >= 2:1.5 | |
60 | BuildRequires: libunistring-devel | |
61 | %{?with_mysql:BuildRequires: mysql-devel} | |
62 | BuildRequires: ncurses-devel | |
63 | %{?with_ldap:BuildRequires: openldap-devel} | |
64 | BuildRequires: pam-devel | |
65 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
66 | %{?with_python:BuildRequires: python-devel >= 1:2.5} | |
67 | BuildRequires: readline-devel | |
68 | BuildRequires: rpmbuild(macros) >= 1.219 | |
69 | BuildRequires: tar >= 1:1.22 | |
70 | BuildRequires: texinfo | |
71 | %{?with_odbc:%{!?with_iodbc:BuildRequires: unixODBC-devel}} | |
72 | BuildRequires: xz | |
73 | %if %{with gssapi} | |
74 | %if %{with gss} | |
75 | BuildRequires: gss-devel >= 0.0.9 | |
76 | %else | |
77 | BuildRequires: heimdal-devel | |
78 | %endif | |
79 | %endif | |
80 | Requires: %{name}-libs = %{version}-%{release} | |
81 | Obsoletes: mailutils-doc | |
82 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
83 | ||
84 | # mailutils variant of traditional PREFIX/bin/mh dir (FHS disallows */bin subdir other than plain "mh") | |
85 | %define mh_bindir %{_libexecdir}/mu-mh | |
86 | ||
87 | %description | |
88 | GNU mail utilities. | |
89 | ||
90 | %description -l pl.UTF-8 | |
91 | Narzędzia pocztowe z projektu GNU. | |
92 | ||
93 | %package libs | |
94 | Summary: GNU mail utilities libraries | |
95 | Summary(pl.UTF-8): Biblioteka narzędzi pocztowych GNU | |
96 | License: LGPL | |
97 | Group: Libraries | |
98 | Obsoletes: libmailbox | |
99 | ||
100 | %description libs | |
101 | The runtime library libmailbox. This library contains various mailbox | |
102 | access routines and support for a number of mailbox types, such as | |
103 | mbox, mh, POP3, and IMAP4. It also support mime message handling, and | |
104 | sending mail via SMTP and /usr/sbin/sendmail. | |
105 | ||
106 | %description libs -l pl.UTF-8 | |
107 | Biblioteka libmailbox zawiera różne funkcje dostępu do skrzynek | |
108 | pocztowych obsługujące wiele typów skrzynek, takich jak mbox, mh, POP3 | |
109 | i IMAP4. Wspiera także obsługę wiadomości MIME i wysyłanie poczty | |
110 | przez SMP oraz /usr/sbin/sendmail. | |
111 | ||
112 | %package devel | |
113 | Summary: Header files for GNU mail utilities libraries | |
114 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek narzędzi pocztowych GNU | |
115 | License: LGPL | |
116 | Group: Development/Libraries | |
117 | Requires: %{name}-libs = %{version}-%{release} | |
118 | Obsoletes: libmailbox-dev | |
119 | ||
120 | %description devel | |
121 | Header files for GNU mail utilities libraries. | |
122 | ||
123 | %description devel -l pl.UTF-8 | |
124 | Pliki nagłówkowe bibliotek narzędzi pocztowych GNU. | |
125 | ||
126 | %package static | |
127 | Summary: GNU mail utilities static libraries | |
128 | Summary(pl.UTF-8): Statyczne biblioteki narzędzi pocztowych GNU | |
129 | License: LGPL | |
130 | Group: Development/Libraries | |
131 | Requires: %{name}-devel = %{version}-%{release} | |
132 | ||
133 | %description static | |
134 | GNU mail utilities static libraries. | |
135 | ||
136 | %description static -l pl.UTF-8 | |
137 | Statyczne biblioteki narzędzi pocztowych GNU. | |
138 | ||
139 | %package -n gnu-mail | |
140 | Summary: GNU mail utilities mail(x) replacement | |
141 | Summary(pl.UTF-8): Zamiennik mail(x) z narzędzi pocztowych GNU | |
142 | Group: Applications/Mail | |
143 | Requires: %{name} = %{version}-%{release} | |
144 | ||
145 | %description -n gnu-mail | |
146 | A replacement for /bin/mail(x) conforming to the UNIX98 specification | |
147 | for mailx. | |
148 | ||
149 | %description -n gnu-mail -l pl.UTF-8 | |
150 | Zamiennik /bin/mail(x) zgodny ze specyfikacją UNIX98 dla mailx. | |
151 | ||
152 | %package -n gnu-pop3d | |
153 | Summary: GNU mail utilites POP3 daemon | |
154 | Summary(pl.UTF-8): Demon POP3 z narzędzi pocztowych GNU | |
155 | Group: Networking/Daemons | |
156 | Requires: %{name}-libs = %{version}-%{release} | |
157 | # inetd or standalone | |
158 | ||
159 | %description -n gnu-pop3d | |
160 | The GNU POP3 daemon. Uses libmailbox to support different styles of | |
161 | mailboxes. | |
162 | ||
163 | %description -n gnu-pop3d -l pl.UTF-8 | |
164 | Demon GNU POP3. Wykorzystuje libmailbox do obsługi różnych rodzajów | |
165 | skrzynek pocztowych. | |
166 | ||
167 | %package -n gnu-imap4d | |
168 | Summary: GNU mail utilities IMAP4 daemon | |
169 | Summary(pl.UTF-8): Demon IMAP4 z narzędzi pocztowych GNU | |
170 | Group: Networking/Daemons | |
171 | Requires: %{name}-libs = %{version}-%{release} | |
172 | # inetd or standalone | |
173 | ||
174 | %description -n gnu-imap4d | |
175 | The GNU IMAP4 daemon. Uses libmailbox to support different styles of | |
176 | mailboxes. | |
177 | ||
178 | %description -n gnu-imap4d -l pl.UTF-8 | |
179 | Demon GNU IMAP4. Wykorzystuje libmailbox do obsługi różnych rodzajów | |
180 | skrzynek pocztowych. | |
181 | ||
182 | %prep | |
183 | %setup -q | |
184 | %patch0 -p1 | |
185 | %patch1 -p0 | |
186 | %patch2 -p1 | |
187 | %patch3 -p1 | |
188 | %patch4 -p1 | |
189 | ||
190 | %{__rm} po/stamp-po | |
191 | ||
192 | %build | |
193 | %{__libtoolize} | |
194 | %{__aclocal} -I m4 -I am -I gint -I doc/imprimatur | |
195 | %{__autoconf} | |
196 | %{__autoheader} | |
197 | %{__automake} | |
198 | %configure \ | |
199 | %{!?with_gss:ac_cv_header_gss_h=no} \ | |
200 | %{!?with_cxx:--disable-cxx} \ | |
201 | %{!?debug:--disable-debug} \ | |
202 | --enable-experimental \ | |
203 | %{!?with_nntp:--disable-nntp} \ | |
204 | %{!?with_python:--disable-python} \ | |
205 | %{?with_radius:--enable-radius} \ | |
206 | --disable-silent-rules \ | |
207 | --with-dbm=BDB \ | |
208 | --with-gnutls \ | |
209 | %{?with_sasl:--with-gsasl} \ | |
210 | %{?with_gssapi:--with-gssapi} \ | |
211 | %{!?with_guile:--without-guile} \ | |
212 | %{!?with_ldap:--without-ldap} \ | |
213 | --with-mail-spool=/var/mail \ | |
214 | --with-mh-bindir=%{_libexecdir}/mu-mh \ | |
215 | %{?with_mysql:--with-mysql} \ | |
216 | %{?with_odbc:--with-odbc=%{?with_iodbc:iodbc}%{!?with_iodbc:odbc}} \ | |
217 | %{?with_pgsql:--with-postgres} | |
218 | ||
219 | %{__make} -j1 | |
220 | ||
221 | %install | |
222 | rm -rf $RPM_BUILD_ROOT | |
223 | ||
224 | %{__make} -j1 install \ | |
225 | DESTDIR=$RPM_BUILD_ROOT | |
226 | ||
227 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/mailutils/*.{la,a} | |
228 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mailutils/c_api.{la,a} | |
229 | ||
230 | %py_postclean | |
231 | ||
232 | %find_lang %{name} | |
233 | ||
234 | %clean | |
235 | rm -rf $RPM_BUILD_ROOT | |
236 | ||
237 | %post -p /sbin/postshell | |
238 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
239 | ||
240 | %postun -p /sbin/postshell | |
241 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
242 | ||
243 | %post libs -p /sbin/ldconfig | |
244 | %postun libs -p /sbin/ldconfig | |
245 | ||
246 | %post devel -p /sbin/postshell | |
247 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
248 | ||
249 | %postun devel -p /sbin/postshell | |
250 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
251 | ||
252 | %files -f %{name}.lang | |
253 | %defattr(644,root,root,755) | |
254 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
255 | %attr(755,root,root) %{_bindir}/dotlock | |
256 | %attr(755,root,root) %{_bindir}/frm | |
257 | %attr(755,root,root) %{_bindir}/from | |
258 | %if %{with guile} | |
259 | %attr(755,root,root) %{_bindir}/guimb | |
260 | %endif | |
261 | %attr(755,root,root) %{_bindir}/mailutils | |
262 | %attr(755,root,root) %{_bindir}/messages | |
263 | %attr(755,root,root) %{_bindir}/mimeview | |
264 | %attr(755,root,root) %{_bindir}/movemail | |
265 | %attr(755,root,root) %{_bindir}/readmsg | |
266 | %attr(755,root,root) %{_bindir}/sieve | |
267 | %attr(755,root,root) %{_sbindir}/comsatd | |
268 | %attr(755,root,root) %{_sbindir}/maidag | |
269 | %dir %{mh_bindir} | |
270 | %attr(755,root,root) %{mh_bindir}/ali | |
271 | %attr(755,root,root) %{mh_bindir}/anno | |
272 | %attr(755,root,root) %{mh_bindir}/burst | |
273 | %attr(755,root,root) %{mh_bindir}/comp | |
274 | %attr(755,root,root) %{mh_bindir}/fmtcheck | |
275 | %attr(755,root,root) %{mh_bindir}/folder | |
276 | %attr(755,root,root) %{mh_bindir}/folders | |
277 | %attr(755,root,root) %{mh_bindir}/forw | |
278 | %attr(755,root,root) %{mh_bindir}/inc | |
279 | %attr(755,root,root) %{mh_bindir}/install-mh | |
280 | %attr(755,root,root) %{mh_bindir}/mark | |
281 | %attr(755,root,root) %{mh_bindir}/mhl | |
282 | %attr(755,root,root) %{mh_bindir}/mhn | |
283 | %attr(755,root,root) %{mh_bindir}/mhparam | |
284 | %attr(755,root,root) %{mh_bindir}/mhpath | |
285 | %attr(755,root,root) %{mh_bindir}/mhseq | |
286 | %attr(755,root,root) %{mh_bindir}/msgchk | |
287 | %attr(755,root,root) %{mh_bindir}/next | |
288 | %attr(755,root,root) %{mh_bindir}/pick | |
289 | %attr(755,root,root) %{mh_bindir}/prev | |
290 | %attr(755,root,root) %{mh_bindir}/prompter | |
291 | %attr(755,root,root) %{mh_bindir}/refile | |
292 | %attr(755,root,root) %{mh_bindir}/repl | |
293 | %attr(755,root,root) %{mh_bindir}/rmf | |
294 | %attr(755,root,root) %{mh_bindir}/rmm | |
295 | %attr(755,root,root) %{mh_bindir}/scan | |
296 | %attr(755,root,root) %{mh_bindir}/send | |
297 | %attr(755,root,root) %{mh_bindir}/show | |
298 | %attr(755,root,root) %{mh_bindir}/sortm | |
299 | %attr(755,root,root) %{mh_bindir}/whatnow | |
300 | %attr(755,root,root) %{mh_bindir}/whom | |
301 | %if "%{_libexecdir}" != "%{_libdir}" | |
302 | %dir %{_libexecdir}/mailutils | |
303 | %endif | |
304 | %attr(755,root,root) %{_libexecdir}/mailutils/mailutils-* | |
305 | %dir %{_libdir}/mailutils | |
306 | %attr(755,root,root) %{_libdir}/mailutils/*.so | |
307 | %{_datadir}/mailutils | |
308 | %if %{with guile} | |
309 | %{_datadir}/guile/site/2.*/mailutils | |
310 | %endif | |
311 | %if %{with python} | |
312 | %dir %{py_sitedir}/mailutils | |
313 | %attr(755,root,root) %{py_sitedir}/mailutils/c_api.so | |
314 | %dir %{py_sitescriptdir}/mailutils | |
315 | %{py_sitescriptdir}/mailutils/*.py[co] | |
316 | %endif | |
317 | %{_infodir}/mailutils.info* | |
318 | ||
319 | %files libs | |
320 | %defattr(644,root,root,755) | |
321 | %attr(755,root,root) %{_libdir}/libmailutils.so.*.*.* | |
322 | %attr(755,root,root) %ghost %{_libdir}/libmailutils.so.6 | |
323 | %attr(755,root,root) %{_libdir}/libmu_auth.so.*.*.* | |
324 | %attr(755,root,root) %ghost %{_libdir}/libmu_auth.so.6 | |
325 | %attr(755,root,root) %{_libdir}/libmu_dbm.so.*.*.* | |
326 | %attr(755,root,root) %ghost %{_libdir}/libmu_dbm.so.6 | |
327 | %if %{with cxx} | |
328 | %attr(755,root,root) %{_libdir}/libmu_cpp.so.*.*.* | |
329 | %attr(755,root,root) %ghost %{_libdir}/libmu_cpp.so.6 | |
330 | %endif | |
331 | %attr(755,root,root) %{_libdir}/libmu_imap.so.*.*.* | |
332 | %attr(755,root,root) %ghost %{_libdir}/libmu_imap.so.6 | |
333 | %attr(755,root,root) %{_libdir}/libmu_maildir.so.*.*.* | |
334 | %attr(755,root,root) %ghost %{_libdir}/libmu_maildir.so.6 | |
335 | %attr(755,root,root) %{_libdir}/libmu_mailer.so.*.*.* | |
336 | %attr(755,root,root) %ghost %{_libdir}/libmu_mailer.so.6 | |
337 | %attr(755,root,root) %{_libdir}/libmu_mbox.so.*.*.* | |
338 | %attr(755,root,root) %ghost %{_libdir}/libmu_mbox.so.6 | |
339 | %attr(755,root,root) %{_libdir}/libmu_mh.so.*.*.* | |
340 | %attr(755,root,root) %ghost %{_libdir}/libmu_mh.so.6 | |
341 | %if %{with nntp} | |
342 | %attr(755,root,root) %{_libdir}/libmu_nntp.so.*.*.* | |
343 | %attr(755,root,root) %ghost %{_libdir}/libmu_nntp.so.6 | |
344 | %endif | |
345 | %attr(755,root,root) %{_libdir}/libmu_pop.so.*.*.* | |
346 | %attr(755,root,root) %ghost %{_libdir}/libmu_pop.so.6 | |
347 | %if %{with python} | |
348 | %attr(755,root,root) %{_libdir}/libmu_py.so.*.*.* | |
349 | %attr(755,root,root) %ghost %{_libdir}/libmu_py.so.6 | |
350 | %endif | |
351 | %if %{with guile} | |
352 | %attr(755,root,root) %{_libdir}/libmu_scm.so.*.*.* | |
353 | %attr(755,root,root) %ghost %{_libdir}/libmu_scm.so.6 | |
354 | %endif | |
355 | %attr(755,root,root) %{_libdir}/libmu_sieve.so.*.*.* | |
356 | %attr(755,root,root) %ghost %{_libdir}/libmu_sieve.so.6 | |
357 | %attr(755,root,root) %{_libdir}/libmuaux.so.*.*.* | |
358 | %attr(755,root,root) %ghost %{_libdir}/libmuaux.so.6 | |
359 | %if %{with guile} | |
360 | %attr(755,root,root) %{_libdir}/libguile-mailutils-v-%{version}.so | |
361 | %endif | |
362 | ||
363 | %files devel | |
364 | %defattr(644,root,root,755) | |
365 | %attr(755,root,root) %{_bindir}/mailutils-config | |
366 | %attr(755,root,root) %{_libdir}/libmailutils.so | |
367 | %attr(755,root,root) %{_libdir}/libmu_auth.so | |
368 | %attr(755,root,root) %{_libdir}/libmu_dbm.so | |
369 | %attr(755,root,root) %{_libdir}/libmu_imap.so | |
370 | %attr(755,root,root) %{_libdir}/libmu_maildir.so | |
371 | %attr(755,root,root) %{_libdir}/libmu_mailer.so | |
372 | %attr(755,root,root) %{_libdir}/libmu_mbox.so | |
373 | %attr(755,root,root) %{_libdir}/libmu_mh.so | |
374 | %attr(755,root,root) %{_libdir}/libmu_pop.so | |
375 | %if %{with python} | |
376 | %attr(755,root,root) %{_libdir}/libmu_py.so | |
377 | %endif | |
378 | %if %{with guile} | |
379 | %attr(755,root,root) %{_libdir}/libmu_scm.so | |
380 | %endif | |
381 | %attr(755,root,root) %{_libdir}/libmu_sieve.so | |
382 | %attr(755,root,root) %{_libdir}/libmuaux.so | |
383 | %{_libdir}/libmailutils.la | |
384 | %{_libdir}/libmu_auth.la | |
385 | %{_libdir}/libmu_dbm.la | |
386 | %{_libdir}/libmu_imap.la | |
387 | %{_libdir}/libmu_maildir.la | |
388 | %{_libdir}/libmu_mailer.la | |
389 | %{_libdir}/libmu_mbox.la | |
390 | %{_libdir}/libmu_mh.la | |
391 | %{_libdir}/libmu_pop.la | |
392 | %if %{with python} | |
393 | %{_libdir}/libmu_py.la | |
394 | %endif | |
395 | %if %{with guile} | |
396 | %{_libdir}/libmu_scm.la | |
397 | %endif | |
398 | %{_libdir}/libmu_sieve.la | |
399 | %{_libdir}/libmuaux.la | |
400 | %if %{with cxx} | |
401 | %attr(755,root,root) %{_libdir}/libmu_cpp.so | |
402 | %{_libdir}/libmu_cpp.la | |
403 | %endif | |
404 | %if %{with nntp} | |
405 | %attr(755,root,root) %{_libdir}/libmu_nntp.so | |
406 | %{_libdir}/libmu_nntp.la | |
407 | %endif | |
408 | %{_includedir}/mailutils | |
409 | %{_aclocaldir}/mailutils.m4 | |
410 | ||
411 | %files static | |
412 | %defattr(644,root,root,755) | |
413 | %{_libdir}/libmailutils.a | |
414 | %{_libdir}/libmu_auth.a | |
415 | %if %{with cxx} | |
416 | %{_libdir}/libmu_cpp.a | |
417 | %endif | |
418 | %{_libdir}/libmu_dbm.a | |
419 | %{_libdir}/libmu_imap.a | |
420 | %{_libdir}/libmu_maildir.a | |
421 | %{_libdir}/libmu_mailer.a | |
422 | %{_libdir}/libmu_mbox.a | |
423 | %{_libdir}/libmu_mh.a | |
424 | %if %{with nntp} | |
425 | %{_libdir}/libmu_nntp.a | |
426 | %endif | |
427 | %{_libdir}/libmu_pop.a | |
428 | %if %{with python} | |
429 | %{_libdir}/libmu_py.a | |
430 | %endif | |
431 | %if %{with guile} | |
432 | %{_libdir}/libmu_scm.a | |
433 | %endif | |
434 | %{_libdir}/libmu_sieve.a | |
435 | %{_libdir}/libmuaux.a | |
436 | ||
437 | %files -n gnu-mail | |
438 | %defattr(644,root,root,755) | |
439 | %attr(755,root,root) %{_bindir}/mail | |
440 | %{_mandir}/man1/mail.1* | |
441 | ||
442 | %files -n gnu-pop3d | |
443 | %defattr(644,root,root,755) | |
444 | %attr(755,root,root) %{_bindir}/popauth | |
445 | %attr(755,root,root) %{_sbindir}/pop3d | |
446 | %{_mandir}/man1/pop3d.1* | |
447 | %{_mandir}/man1/popauth.1* | |
448 | ||
449 | %files -n gnu-imap4d | |
450 | %defattr(644,root,root,755) | |
451 | %attr(755,root,root) %{_sbindir}/imap4d | |
452 | %{_mandir}/man1/imap4d.1* |