Blame view

mailutils.spec.in 2.41 KB
1
# -*- Shell-script -*-
2 3
%define rel    1
%define prefix /usr
4 5 6

Summary: GNU mail utilities
Name: mailutils
7
Version: @VERSION@
8 9
Release: %rel
Copyright: GPL
10 11 12
Source: ftp://ftp.gnu.org/pub/%{name}/%{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
URL: http://www.gnu.org/software/%{name}/%{name}.html
13 14 15 16

%description
GNU mail utilities

17
%package -n libmailbox
18 19 20 21
Summary: GNU mail utilities mailbox access library
Copyright: LGPL
Group: Development/Libraries

22
%description -n libmailbox
23 24 25 26
The runtime library libmailbox. This library contains various mailbox
access routines and support for a number of mailbox types, such as
mbox, Maildir, POP3, and IMAP4.

27
%package -n libmailbox-dev
28 29 30 31 32
Summary: GNU mail utilities mailbox access library development
Copyright: LGPL
Requires: libmailbox
Group: Development/Libraries

33
%description -n libmailbox-dev
34
The static library and header files for libmailbox. API documentation
35
is in %{name}-doc.
36 37 38 39 40 41 42 43 44 45

%package doc
Summary: GNU mail utitlies documentation
Prereq: /sbin/install-info
Group: Development/Libraries

%description doc
API reference for libmailbox and user documentation for the rest of
the GNU mail utilities.

46
%package -n gnu-mail
47 48 49 50
Summary: GNU mail utilties mail(x) replacement
Requires: libmailbox
Group: Console/Mail

51
%description -n gnu-mail
52 53 54
A replacement for /bin/mail(x) conforming to the UNIX98 specification
for mailx.

55
%package -n gnu-pop3d
56 57 58 59
Summary: GNU mail utilites POP3 daemon
Requires: libmailbox
Group: Networking/Daemons

60
%description -n gnu-pop3d
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
The GNU POP3 daemon. Uses libmailbox to support different styles of
mailboxes.

%prep
%setup

%build
./configure --prefix=%prefix
make

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install-strip
gzip -9n $RPM_BUILD_ROOT%{prefix}/info/*

%clean
rm -rf $RPM_BUILD_ROOT

79
%post -n libmailbox -p /sbin/ldconfig
80

81
%postun -n libmailbox -p /sbin/ldconfig
82 83 84 85 86 87 88 89

%post doc
/sbin/install-info %{prefix}/info/mailutils.info.gz %{prefix}/info/dir

%preun doc
/sbin/install-info --delete %{prefix}/info/mailutils.info.gz \
    %{prefix}/info/dif

90
%files -n libmailbox
91 92 93
%defattr(-, root, root)
%{prefix}/lib/libmailbox.so.*

94
%files -n libmailbox-dev
95 96 97 98 99 100 101 102 103
%defattr(-, root, root)
%{prefix}/lib/lib*.so
%{prefix}/lib/*a

%files doc
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%{prefix}/info/*

104
%files -n gnu-mail
105 106 107
%defattr(-, root, root)
%{prefix}/bin/mail

108
%files -n gnu-pop3d
109 110
%defattr(-, root, root)
%{prefix}/sbin/pop3d