Blame view

mu-aux/mailutils.spec.in 6.83 KB
Wojciech Polak authored
1
# -*- rpm-spec -*-
2 3 4

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

5 6 7
Summary: GNU Mailutils
Name: mailutils
Version: @VERSION@
Wojciech Polak authored
8 9
Release: 1%{?dist}
License: GPLv3+ and LGPLv3+
10
Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Wojciech Polak authored
11 12 13 14 15 16 17 18 19 20 21 22
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
URL: http://www.gnu.org/software/%{name}/
Group: System Environment/Libraries
Requires: libmailutils = %{version}-%{release}
Requires: gnutls >= 1.0.18
Requires: libgsasl >= 0.2.3
Requires: gdbm
Requires: mysql-libs
Requires: readline
BuildRequires: gettext
BuildRequires: gnutls-devel >= 1.0.18
BuildRequires: libgsasl-devel >= 0.2.3
Wojciech Polak authored
23
BuildRequires: guile-devel >= 1.8
Wojciech Polak authored
24 25 26 27
BuildRequires: gdbm-devel
BuildRequires: mysql-devel
BuildRequires: readline-devel
BuildRequires: emacs
28
BuildRequires: python
29 30

%description
Wojciech Polak authored
31 32 33 34 35 36 37 38
GNU Mailutils is a rich and powerful protocol-independent mail
framework.  It contains a series of useful mail libraries, clients,
and servers.  These are the primary mail utilities for the GNU system.
The central library is capable of handling electronic mail in various
mailbox formats and protocols, both local and remote.  Specifically,
this project contains a POP3 server, an IMAP4 server, and a Sieve mail
filter. It also provides a POSIX 'mailx' client, and a collection of
other handy tools.
39 40 41

%package -n libmailutils
Summary: GNU Mailutils: mailbox access library.
Wojciech Polak authored
42
License: LGPLv3+
43 44
Group: System Environment/Libraries

Wojciech Polak authored
45
%package devel
46
Summary: GNU Mailutils: mailbox access library development.
Wojciech Polak authored
47 48
License: LGPLv3+
Requires: libmailutils = %{version}-%{release}
49 50
Group: Development/Libraries

Wojciech Polak authored
51 52 53 54 55
%package comsatd
Summary: GNU Mailutils: Comsat daemon.
License: GPLv3+
Requires: libmailutils = %{version}-%{release}
Group: Networking/Daemons
56

Wojciech Polak authored
57 58 59 60 61
%package maidag
Summary: GNU Mailutils: General-purpose Mail Delivery Agent.
License: GPLv3+
Requires: libmailutils = %{version}-%{release}
Group: Networking/Daemons
62

Wojciech Polak authored
63
%package pop3d
64
Summary: GNU Mailutils: POP3 daemon.
Wojciech Polak authored
65 66
License: GPLv3+
Requires: libmailutils = %{version}-%{release}
67 68
Group: Networking/Daemons

Wojciech Polak authored
69
%package imap4d
70
Summary: GNU Mailutils: IMAP4 daemon.
Wojciech Polak authored
71 72
License: GPLv3+
Requires: libmailutils = %{version}-%{release}
73 74
Group: Networking/Daemons

Wojciech Polak authored
75 76 77 78
%package guile
Summary: GNU Mailutils: Guile bindings.
License: GPLv3+
Requires: libmailutils = %{version}-%{release}
Wojciech Polak authored
79
Requires: guile >= 1.8
80 81
Group: System Environment/Libraries

82 83 84 85 86 87 88
%package python
Summary: GNU Mailutils: Python bindings.
License: GPLv3+
Requires: libmailutils = %{version}-%{release}
Requires: python >= 2.5
Group: System Environment/Libraries

Wojciech Polak authored
89 90 91 92 93 94
%package mh
Summary: GNU Mailutils: The Message Handling System.
License: GPLv3+
Requires: libmailutils = %{version}-%{release}
Group: Console/Mail

95

Wojciech Polak authored
96 97 98
%description -n libmailutils
The runtime library libmailutils contains various mailbox access
routines and support for a number of mailbox types, such as mbox,
Wojciech Polak authored
99 100
Maildir, MH, POP3, and IMAP4. It also supports MIME message
handling, and sending mail via SMTP and Sendmail.
101

Wojciech Polak authored
102 103
%description devel
The static libraries and header files for GNU Mailutils.
104

Wojciech Polak authored
105 106 107 108
%description comsatd
GNU Comsatd is the server which receives reports of incoming mail and
notifies users, wishing to get this service. It can be started either
from `inetd.conf' or as a standalone daemon.
109

Wojciech Polak authored
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
%description maidag
The name `maidag' stands for Mail Delivery Agent. It is a
general-purpose MDA offering a rich set of features. It can operate
both in traditional mode, reading the message from its standard input,
and in LMTP mode. Maidag is able to deliver mail to any mailbox
format, supported by GNU Mailutils.

%description pop3d
The GNU POP3 daemon. Uses libmailutils to support different styles of
mailboxes.

%description imap4d
The GNU IMAP4 daemon. Uses libmailutils to support different styles of
mailboxes.

%description guile
126 127 128 129
This package contains Guile bindings for GNU Mailutils.

%description python
This package contains Python bindings for GNU Mailutils.
Wojciech Polak authored
130 131

%description mh
132 133
The GNU MH (Message Handling System).

Wojciech Polak authored
134

135 136 137 138
%prep
%setup -q

%build
Wojciech Polak authored
139 140
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
			--with-guiledir=%{_datadir}/guile/site \
Wojciech Polak authored
141 142
			--with-pythondir=%{python_sitelib} \
			--with-gsasl --with-gdbm --with-mysql
143 144
make

Wojciech Polak authored
145 146 147
%check
make check

148 149 150
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
Wojciech Polak authored
151 152 153
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%find_lang %{name}
154 155 156 157 158

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libmailutils -p /sbin/ldconfig
Wojciech Polak authored
159 160
/sbin/install-info %{_infodir}/mailutils.info.gz %{_infodir}/dir

161
%postun -n libmailutils -p /sbin/ldconfig
Wojciech Polak authored
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

%preun -n libmailutils
/sbin/install-info --delete %{_infodir}/mailutils.info.gz %{_infodir}/dir

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING* ChangeLog NEWS README* THANKS TODO
%{_bindir}/dotlock
%{_bindir}/frm
%{_bindir}/from
%{_bindir}/guimb
%{_bindir}/mail
%{_bindir}/messages
%{_bindir}/mimeview
%{_bindir}/movemail
%{_bindir}/readmsg
%{_bindir}/sieve
%{_libdir}/mailutils/list*
%{_libdir}/mailutils/moderator*
%{_libdir}/mailutils/numaddr*
%{_libdir}/mailutils/pipe*
%{_libdir}/mailutils/spamd*
%{_libdir}/mailutils/timestamp*
%{_libdir}/mailutils/vacation*
%{_mandir}/man1/mail*
187 188

%files -n libmailutils
Wojciech Polak authored
189 190 191 192 193 194 195 196 197 198 199 200 201
%defattr(-,root,root,-)
%{_libdir}/libmailutils.so.*
%{_libdir}/libmu_*.so.*
%{_infodir}/*

%files devel
%defattr(-,root,root,-)
%{_bindir}/mailutils-config
%{_libdir}/libmailutils.a
%{_libdir}/libmailutils.so
%{_libdir}/libmu_*.a
%{_libdir}/libmu_*.so
%{_includedir}/mailutils/*.h
Wojciech Polak authored
202
%{_includedir}/mailutils/cpp/*.h
Wojciech Polak authored
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
%{_includedir}/mailutils/sys/*.h
%{_datadir}/aclocal/mailutils.m4

%files comsatd
%defattr(-,root,root,-)
%{_sbindir}/comsatd

%files maidag
%defattr(-,root,root,-)
%{_sbindir}/maidag

%files pop3d
%defattr(-,root,root,-)
%{_bindir}/popauth
%{_sbindir}/pop3d
%{_mandir}/man1/pop*

%files imap4d
%defattr(-,root,root,-)
%{_sbindir}/imap4d
%{_mandir}/man1/imap4d*

%files guile
%defattr(-,root,root,-)
%{_bindir}/sieve.scm
Wojciech Polak authored
228
%{_libdir}/libguile-mailutils*.so
Wojciech Polak authored
229 230 231 232
%{_datadir}/guile/site/mailutils/*.scm
%{_datadir}/guile/site/mailutils/*.txt
%{_datadir}/guile/site/sieve-modules/*.scm

233 234 235 236 237 238
%files python
%defattr(-,root,root,-)
%dir %{python_sitelib}/mailutils
%{python_sitelib}/mailutils/c_api.*
%{python_sitelib}/mailutils/*.py*

Wojciech Polak authored
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
%files mh
%defattr(-,root,root,-)
%{_bindir}/mu-mh/ali
%{_bindir}/mu-mh/anno
%{_bindir}/mu-mh/burst
%{_bindir}/mu-mh/comp
%{_bindir}/mu-mh/fmtcheck
%{_bindir}/mu-mh/folder
%{_bindir}/mu-mh/folders
%{_bindir}/mu-mh/forw
%{_bindir}/mu-mh/inc
%{_bindir}/mu-mh/install-mh
%{_bindir}/mu-mh/mark
%{_bindir}/mu-mh/mhl
%{_bindir}/mu-mh/mhn
%{_bindir}/mu-mh/mhparam
%{_bindir}/mu-mh/mhpath
%{_bindir}/mu-mh/pick
%{_bindir}/mu-mh/refile
%{_bindir}/mu-mh/repl
%{_bindir}/mu-mh/rmf
%{_bindir}/mu-mh/rmm
%{_bindir}/mu-mh/scan
%{_bindir}/mu-mh/send
%{_bindir}/mu-mh/sortm
%{_bindir}/mu-mh/whatnow
%{_bindir}/mu-mh/whom
%{_datadir}/mailutils/mh/*
%{_datadir}/emacs/site-lisp/*