Files
nmh/nmh.spec

133 lines
3.8 KiB
RPMSpec

#
# spec file for package nmh (Version 1.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: nmh
BuildRequires: gdbm-devel ncurses-devel postfix
License: BSD 3-Clause
Group: Productivity/Networking/Email/Clients
Requires: smtp_daemon, less
Provides: mh
Obsoletes: mh
AutoReqProv: on
Version: 1.2
Release: 117
Summary: Unix Mail Handler
Url: http://www.mhost.com/nmh/
Source: %{name}-%{version}.tar.bz2
Patch0: nmh-warnings.patch
Patch1: nmh-strcasecmp.patch
Patch2: nmh-64bit.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
%patch1
%patch2 -p 1
%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
* Tue Jul 15 2008 max@suse.de
- Adopted two patches from Debian to fix a segfault and several
64bit problems (bnc#334176, bnc#347684).
* Mon Jul 02 2007 max@suse.de
- Mark /etc/nmh/* as config files (#285015).
* Wed Mar 28 2007 max@suse.de
- Update to version 1.2, which fixes a crash (#230763) and a
performance problem (#230764).
- Fixed several compiler warnings (#232416).
* Fri Mar 23 2007 rguenther@suse.de
- add gdbm-devel and ncurses-devel BuildRequires
* Fri Jan 26 2007 ro@suse.de
- silence a compiler warning
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 03 2005 mmj@suse.de
- Update to RC4
* Fri Jun 10 2005 meissner@suse.de
- Use RPM_OPT_FLAGS.
* Tue Jul 06 2004 mmj@suse.de
- Install libexec helper binaries in /usr/lib/nmh [#42774]
* Fri Mar 26 2004 mmj@suse.de
- Add postfix to # neededforbuild
* Wed Oct 15 2003 mmj@suse.de
- Don't build as root
* Tue May 13 2003 mmj@suse.de
- Use %%defattr
* Tue Feb 11 2003 mmj@suse.de
- Obsoletes and Provides mh -- not conflicts.
* Tue Jan 21 2003 meissner@suse.de
- make it build on ppc64.
* Thu Nov 28 2002 mmj@suse.de
- Update to 1.1-RC1
- Use BuildRoot
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue Apr 16 2002 mmj@suse.de
- Fix it correctly.
* Mon Apr 15 2002 mmj@suse.de
- Fixed specfile to own /etc/nmh
* Tue Jul 17 2001 mmj@suse.de
- Initial package. Hopefully Maddog is happy now :)