2 # - look at files in main package (more split?)
3 # - scripts for daemons
4 # - check optional gssapi (or maybe use gss?)
5 # - some dbm (gdbm? db as (n)dbm? db after update from db2 to db4.1 API?)
8 %bcond_without gssapi # GSSAPI authentication (krb5 or heimdal; not ready for gss)
9 %bcond_without sasl # without SASL (using GNU SASL)
11 Summary: GNU mail utilities
12 Summary(pl.UTF-8): Narzędzia pocztowe z projektu GNU
17 Group: Applications/Mail
18 Source0: ftp://ftp.gnu.org/gnu/mailutils/%{name}-%{version}.tar.bz2
19 # Source0-md5: 0a5bf84e908f15343414c6a95118a373
20 Patch0: %{name}-info.patch
21 Patch1: %{name}-pl.po-update.patch
22 Patch2: %{name}-tinfo.patch
23 URL: http://www.gnu.org/software/mailutils/mailutils.html
24 BuildRequires: autoconf >= 2.60
25 BuildRequires: automake >= 1:1.8.5
26 BuildRequires: fribidi-devel
27 BuildRequires: gettext-devel >= 0.15
28 BuildRequires: gnu-radius-devel
29 BuildRequires: gnutls-devel >= 1.2.5
30 %{?with_sasl:BuildRequires: gsasl-devel >= 0.2.3}
31 BuildRequires: guile-devel >= 1.4
32 %{?with_gssapi:BuildRequires: krb5-devel}
33 BuildRequires: libltdl-devel
34 BuildRequires: mysql-devel
35 BuildRequires: ncurses-devel
36 BuildRequires: pam-devel
37 BuildRequires: postgresql-devel
38 BuildRequires: readline-devel
39 BuildRequires: texinfo
40 BuildRequires: unixODBC-devel
41 Requires: %{name}-libs = %{version}-%{release}
42 Obsoletes: mailutils-doc
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _libexecdir %{_sbindir}
50 %description -l pl.UTF-8
51 Narzędzia pocztowe z projektu GNU.
54 Summary: GNU mail utilities libraries
55 Summary(pl.UTF-8): Biblioteka narzędzi pocztowych GNU
61 The runtime library libmailbox. This library contains various mailbox
62 access routines and support for a number of mailbox types, such as
63 mbox, mh, POP3, and IMAP4. It also support mime message handling, and
64 sending mail via SMTP and /usr/sbin/sendmail.
66 %description libs -l pl.UTF-8
67 Biblioteka libmailbox zawiera różne funkcje dostępu do skrzynek
68 pocztowych obsługujące wiele typów skrzynek, takich jak mbox, mh, POP3
69 i IMAP4. Wspiera także obsługę wiadomości MIME i wysyłanie poczty
70 przez SMP oraz /usr/sbin/sendmail.
73 Summary: Header files for GNU mail utilities libraries
74 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek narzędzi pocztowych GNU
76 Group: Development/Libraries
77 Requires: %{name}-libs = %{version}-%{release}
78 Obsoletes: libmailbox-dev
81 Header files for GNU mail utilities libraries.
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe bibliotek narzędzi pocztowych GNU.
87 Summary: GNU mail utilities static libraries
88 Summary(pl.UTF-8): Statyczne biblioteki narzędzi pocztowych GNU
90 Group: Development/Libraries
91 Requires: %{name}-devel = %{version}-%{release}
94 GNU mail utilities static libraries.
96 %description static -l pl.UTF-8
97 Statyczne biblioteki narzędzi pocztowych GNU.
100 Summary: GNU mail utilities mail(x) replacement
101 Summary(pl.UTF-8): Zamiennik mail(x) z narzędzi pocztowych GNU
102 Group: Applications/Mail
103 Requires: %{name} = %{version}-%{release}
105 %description -n gnu-mail
106 A replacement for /bin/mail(x) conforming to the UNIX98 specification
109 %description -n gnu-mail -l pl.UTF-8
110 Zamiennik /bin/mail(x) zgodny ze specyfikacją UNIX98 dla mailx.
112 %package -n gnu-pop3d
113 Summary: GNU mail utilites POP3 daemon
114 Summary(pl.UTF-8): Demon POP3 z narzędzi pocztowych GNU
115 Group: Networking/Daemons
116 Requires: %{name}-libs = %{version}-%{release}
117 # inetd or standalone
119 %description -n gnu-pop3d
120 The GNU POP3 daemon. Uses libmailbox to support different styles of
123 %description -n gnu-pop3d -l pl.UTF-8
124 Demon GNU POP3. Wykorzystuje libmailbox do obsługi różnych rodzajów
127 %package -n gnu-imap4d
128 Summary: GNU mail utilities IMAP4 daemon
129 Summary(pl.UTF-8): Demon IMAP4 z narzędzi pocztowych GNU
130 Group: Networking/Daemons
131 Requires: %{name}-libs = %{version}-%{release}
132 # inetd or standalone
134 %description -n gnu-imap4d
135 The GNU IMAP4 daemon. Uses libmailbox to support different styles of
138 %description -n gnu-imap4d -l pl.UTF-8
139 Demon GNU IMAP4. Wykorzystuje libmailbox do obsługi różnych rodzajów
161 %{?with_sasl:--with-gsasl} \
162 %{?with_gssapi:--with-gssapi}
167 rm -rf $RPM_BUILD_ROOT
170 DESTDIR=$RPM_BUILD_ROOT
175 rm -rf $RPM_BUILD_ROOT
178 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
181 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
183 %post libs -p /sbin/ldconfig
184 %postun libs -p /sbin/ldconfig
187 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
190 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
192 %files -f %{name}.lang
193 %defattr(644,root,root,755)
194 %doc AUTHORS ChangeLog NEWS README THANKS TODO
195 %attr(755,root,root) %{_bindir}/dotlock
196 %attr(755,root,root) %{_bindir}/frm
197 %attr(755,root,root) %{_bindir}/from
198 %attr(755,root,root) %{_bindir}/guimb
199 %attr(755,root,root) %{_bindir}/messages
200 %attr(755,root,root) %{_bindir}/mimeview
201 %attr(755,root,root) %{_bindir}/movemail
202 %attr(755,root,root) %{_bindir}/readmsg
203 %attr(755,root,root) %{_bindir}/sieve
204 %attr(755,root,root) %{_bindir}/sieve.scm
205 %attr(755,root,root) %{_sbindir}/comsatd
206 %attr(755,root,root) %{_libexecdir}/mail.local
207 %attr(755,root,root) %{_libexecdir}/mail.remote
208 %dir %{_libdir}/mailutils
209 %attr(755,root,root) %{_libdir}/mailutils/*.so
210 %{_datadir}/mailutils
211 %{_infodir}/mailutils.info*
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_bindir}/mailutils-config
220 %attr(755,root,root) %{_libdir}/lib*.so
222 %{_includedir}/mailutils
225 %defattr(644,root,root,755)
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_bindir}/mail
231 %{_mandir}/man1/mail.1*
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_sbindir}/pop3d
236 %{_mandir}/man1/pop3d.1*
237 %{_mandir}/man1/popauth.1*
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_sbindir}/imap4d
242 %{_mandir}/man1/imap4d.1*