nmh/nmh.spec
2011-11-28 11:55:00 +00:00

93 lines
2.7 KiB
RPMSpec

#
# spec file for package nmh
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: nmh
BuildRequires: gdbm-devel libtool ncurses-devel postfix
License: BSD 3-Clause
Group: Productivity/Networking/Email/Clients
Requires: smtp_daemon, less
Provides: mh
Obsoletes: mh
Version: 1.3
Release: 1
Summary: Unix Mail Handler
Url: http://www.mhost.com/nmh/
Source: %{name}-%{version}.tar.bz2
Patch0: nmh-warnings.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
nmh (new MH) is a powerful electronic mail handling system. It was
originally based on version 6.8.3 of the MH message system developed by
the RAND Corporation and the University of California. It is intended
to be a (mostly) compatible drop-in replacement for MH.
nmh consists of a collection of fairly simple single-purpose programs
to send, receive, save, retrieve, and manipulate e-mail messages.
Because nmh is a suite rather than a single monolithic program, you may
freely intersperse nmh commands with other commands at your shell
prompt or write custom scripts that use these commands in flexible
ways.
Authors:
--------
Richard Coleman <coleman@math.gatech.edu>
Dan Harkless <dan-nmh@dilvish.speed.net>
Shantonu Sen <ssen@mit.edu>
Doug Morris <doug@mhost.com>
de Rooij <ruud@ruud.org>
Oliver Kiddle <okiddle@yahoo.co.uk>
%prep
%setup -q
%patch0
%build
libtoolize --copy --force
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr \
--mandir=$DESTDIR/%{_mandir} \
--sysconfdir=/etc/nmh \
--sharedstatedir=/var \
--enable-pop \
--with-pager=/usr/bin/less \
--libdir=/usr/lib/nmh
make
%install
make CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
/usr/bin/*
/usr/lib/nmh
%dir /etc/nmh/
%config /etc/nmh/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%doc docs/COMPLETION-* docs/DIFFERENCES docs/FAQ docs/MAIL.FILTERING VERSION
%doc docs/TODO docs/README* COPYRIGHT ChangeLog
%changelog