]> git.pld-linux.org Git - packages/mailutils.git/blob - mailutils.spec
- rebuild pl.gmo
[packages/mailutils.git] / mailutils.spec
1 # TODO:
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?)
6 #
7 # Conditional build:
8 %bcond_without  gssapi  # GSSAPI authentication (krb5 or heimdal; not ready for gss)
9 %bcond_without  sasl    # without SASL (using GNU SASL)
10 #
11 Summary:        GNU mail utilities
12 Summary(pl.UTF-8):      Narzędzia pocztowe z projektu GNU
13 Name:           mailutils
14 Version:        1.2
15 Release:        1
16 License:        GPL v3+
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)
44
45 %define         _libexecdir     %{_sbindir}
46
47 %description
48 GNU mail utilities.
49
50 %description -l pl.UTF-8
51 Narzędzia pocztowe z projektu GNU.
52
53 %package libs
54 Summary:        GNU mail utilities libraries
55 Summary(pl.UTF-8):      Biblioteka narzędzi pocztowych GNU
56 License:        LGPL
57 Group:          Libraries
58 Obsoletes:      libmailbox
59
60 %description libs
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.
65
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.
71
72 %package devel
73 Summary:        Header files for GNU mail utilities libraries
74 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek narzędzi pocztowych GNU
75 License:        LGPL
76 Group:          Development/Libraries
77 Requires:       %{name}-libs = %{version}-%{release}
78 Obsoletes:      libmailbox-dev
79
80 %description devel
81 Header files for GNU mail utilities libraries.
82
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe bibliotek narzędzi pocztowych GNU.
85
86 %package static
87 Summary:        GNU mail utilities static libraries
88 Summary(pl.UTF-8):      Statyczne biblioteki narzędzi pocztowych GNU
89 License:        LGPL
90 Group:          Development/Libraries
91 Requires:       %{name}-devel = %{version}-%{release}
92
93 %description static
94 GNU mail utilities static libraries.
95
96 %description static -l pl.UTF-8
97 Statyczne biblioteki narzędzi pocztowych GNU.
98
99 %package -n gnu-mail
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}
104
105 %description -n gnu-mail
106 A replacement for /bin/mail(x) conforming to the UNIX98 specification
107 for mailx.
108
109 %description -n gnu-mail -l pl.UTF-8
110 Zamiennik /bin/mail(x) zgodny ze specyfikacją UNIX98 dla mailx.
111
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
118
119 %description -n gnu-pop3d
120 The GNU POP3 daemon. Uses libmailbox to support different styles of
121 mailboxes.
122
123 %description -n gnu-pop3d -l pl.UTF-8
124 Demon GNU POP3. Wykorzystuje libmailbox do obsługi różnych rodzajów
125 skrzynek pocztowych.
126
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
133
134 %description -n gnu-imap4d
135 The GNU IMAP4 daemon. Uses libmailbox to support different styles of
136 mailboxes.
137
138 %description -n gnu-imap4d -l pl.UTF-8
139 Demon GNU IMAP4. Wykorzystuje libmailbox do obsługi różnych rodzajów
140 skrzynek pocztowych.
141
142 %prep
143 %setup -q
144 %patch0 -p1
145 %patch1 -p1
146 %patch2 -p0
147
148 rm -f po/stamp-po
149
150 %build
151 %{__libtoolize}
152 %{__aclocal} -I m4
153 %{__autoconf}
154 %{__autoheader}
155 %{__automake}
156 %configure \
157         --with-gnutls \
158         --with-mysql \
159         --with-postgres \
160         --with-odbc=odbc \
161         %{?with_sasl:--with-gsasl} \
162         %{?with_gssapi:--with-gssapi}
163
164 %{__make}
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168
169 %{__make} install \
170         DESTDIR=$RPM_BUILD_ROOT
171
172 %find_lang %{name}
173
174 %clean
175 rm -rf $RPM_BUILD_ROOT
176
177 %post
178 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
179
180 %postun
181 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
182
183 %post   libs -p /sbin/ldconfig
184 %postun libs -p /sbin/ldconfig
185
186 %post devel
187 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
188
189 %postun devel
190 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
191
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*
212
213 %files libs
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
216
217 %files devel
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_bindir}/mailutils-config
220 %attr(755,root,root) %{_libdir}/lib*.so
221 %{_libdir}/lib*.la
222 %{_includedir}/mailutils
223
224 %files static
225 %defattr(644,root,root,755)
226 %{_libdir}/lib*.a
227
228 %files -n gnu-mail
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_bindir}/mail
231 %{_mandir}/man1/mail.1*
232
233 %files -n gnu-pop3d
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_sbindir}/pop3d
236 %{_mandir}/man1/pop3d.1*
237 %{_mandir}/man1/popauth.1*
238
239 %files -n gnu-imap4d
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_sbindir}/imap4d
242 %{_mandir}/man1/imap4d.1*
This page took 0.452084 seconds and 3 git commands to generate.