~ubuntu-branches/ubuntu/hoary/nail/hoary

« back to all changes in this revision

Viewing changes to nail.spec

  • Committer: Bazaar Package Importer
  • Author(s): Hilko Bengen
  • Date: 2005-01-04 22:56:23 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050104225623-oq0onvwx5xv92zrj
Tags: 11.19-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
2
 
 
3
%define use_nss 0
 
4
%define mozilla_version 1.6
 
5
 
 
6
Summary: An enhanced implementation of the mailx command
3
7
Name: nail
4
 
Version: 10.7
 
8
Version: 11.19
5
9
Release: 1
6
10
License: BSD
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
13
17
 
 
18
%if %{use_nss}
 
19
Requires: mozilla-nss
 
20
Requires: mozilla-nspr
 
21
BuildRequires: mozilla-nss-devel
 
22
BuildRequires: mozilla-nspr-devel
 
23
BuildRequires: /usr/include/mozilla-%{mozilla_version}/nss/cms.h
 
24
%endif
 
25
 
14
26
%description
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.
18
 
 
19
 
Install nail if you need a command line tool with the ability to
20
 
handle MIME messages.
 
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
 
33
and receiving mail.
 
34
 
 
35
%define prefix          /usr
 
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
 
45
 
 
46
%define makeflags       PREFIX=%{prefix} BINDIR=%{bindir} MANDIR=%{mandir} SYSCONFDIR=%{sysconfdir} MAILRC=%{mailrc} MAILSPOOL=%{mailspool} SENDMAIL=%{sendmail} UCBINSTALL=%{ucbinstall} CFLAGS="%{cflags}" CPPFLAGS="%{cppflags}"
21
47
 
22
48
%prep
23
 
INCLUDES=-I/usr/kerberos/include export INCLUDES
24
 
rm -rf %{buildroot}
25
49
%setup
26
 
%configure --prefix=/usr --with-openssl
27
50
 
28
51
%build
29
 
INCLUDES=-I/usr/kerberos/include export INCLUDES
30
 
make
 
52
rm -rf %{buildroot}
 
53
 
 
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
 
61
 
 
62
%if %{use_nss}
 
63
INCLUDES="$INCLUDES -I/usr/include/mozilla-%{mozilla_version}/nspr"
 
64
INCLUDES="$INCLUDES -I/usr/include/mozilla-%{mozilla_version}/nss"
 
65
export INCLUDES
 
66
%endif
 
67
 
 
68
make %{makeflags}
31
69
 
32
70
%install
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
36
73
 
37
74
%clean
39
76
rm -rf %{buildroot}
40
77
 
41
78
%files
 
79
%defattr(-,root,root)
42
80
%doc COPYING AUTHORS INSTALL README TODO I18N ChangeLog
43
81
%config(noreplace) /etc/nail.rc
44
82
/usr/bin/nail