1
# Sccsid @(#)nail.spec 1.16 (gritter) 3/19/04
2
Summary: A MIME capable implementation of the mailx command
1
# Sccsid @(#)nail.spec 1.30 (gritter) 11/1/04
4
%define mozilla_version 1.6
6
Summary: An enhanced implementation of the mailx command
7
11
Group: Applications/Internet
8
12
Source: %{name}-%{version}.tar.bz2
9
URL: <http://nail.berlios.de>
13
URL: <http://nail.sourceforge.net>
10
14
Vendor: Gunnar Ritter <Gunnar.Ritter@pluto.uni-freiburg.de>
11
15
Packager: Didar Hussain <dhs@rediffmail.com>
12
16
BuildRoot: %{_tmppath}/%{name}-root
20
Requires: mozilla-nspr
21
BuildRequires: mozilla-nss-devel
22
BuildRequires: mozilla-nspr-devel
23
BuildRequires: /usr/include/mozilla-%{mozilla_version}/nss/cms.h
15
27
Nail is derived from Berkeley Mail and is intended provide the
16
functionality of the POSIX.2 mailx command with additional support
17
for MIME messages, POP3 and SMTP.
19
Install nail if you need a command line tool with the ability to
28
functionality of the POSIX mailx command with additional support
29
for MIME messages, IMAP, POP3, and SMTP. It provides enhanced
30
features for interactive use, such as caching and disconnected
31
operation for IMAP, message threading, scoring, and filtering.
32
It is also usable as a mail batch language, both for sending
36
%define bindir %{prefix}/bin
37
%define mandir %{prefix}/share/man
38
%define sysconfdir /etc
39
%define mailrc %{sysconfdir}/nail.rc
40
%define mailspool /var/mail
41
%define sendmail /usr/lib/sendmail
42
%define ucbinstall install
43
%define cflags -O2 -fomit-frame-pointer
44
%define cppflags -D_GNU_SOURCE
46
%define makeflags PREFIX=%{prefix} BINDIR=%{bindir} MANDIR=%{mandir} SYSCONFDIR=%{sysconfdir} MAILRC=%{mailrc} MAILSPOOL=%{mailspool} SENDMAIL=%{sendmail} UCBINSTALL=%{ucbinstall} CFLAGS="%{cflags}" CPPFLAGS="%{cppflags}"
23
INCLUDES=-I/usr/kerberos/include export INCLUDES
26
%configure --prefix=/usr --with-openssl
29
INCLUDES=-I/usr/kerberos/include export INCLUDES
54
# Some RedHat releases refuse to compile with OpenSSL unless
55
# -I/usr/kerberos/include is given. To compile with GSSAPI authentication
56
# included, they also need -L/usr/kerberos/lib.
57
test -d /usr/kerberos/include &&
58
INCLUDES="$INCLUDES -I/usr/kerberos/include" export INCLUDES
59
test -d /usr/kerberos/lib &&
60
LDFLAGS="$LDFLAGS -L/usr/kerberos/lib" export LDFLAGS
63
INCLUDES="$INCLUDES -I/usr/include/mozilla-%{mozilla_version}/nspr"
64
INCLUDES="$INCLUDES -I/usr/include/mozilla-%{mozilla_version}/nss"
33
INCLUDES=-I/usr/kerberos/include export INCLUDES
34
make DESTDIR=%{buildroot} install
71
make DESTDIR=%{buildroot} %{makeflags} install
35
72
gzip -9 %{buildroot}/usr/share/man/man1/nail.1