# This spec supports two methods of RPM creation:
#
# 1) Start from an nmh workspace, run configure as desired and then "make rpm".
-# For example:
+# For example, from a tarball:
+# $ tar xpf nmh-1.6.tar.gz
+# $ cd nmh-1.6
+# $ ./configure --with-cyrus-sasl --with-tls && make rpm
+#
+# Another example, starting from the source code repository:
# $ git clone git://git.savannah.nongnu.org/nmh.git
# $ cd nmh
# $ ./autogen.sh
-# $ ./configure --with-cyrus-sasl --with-locking=fcntl && make rpm
+# $ ./configure --with-cyrus-sasl --with-tls && make rpm
#
# 2) Start with a source RPM and use rpmbuild. Configure options are hard
# coded below, but they can be overridden on the rpmbuild command line
# For example:
# $ rpm -i nmh-1.4-0.fc16.src.rpm
# $ rpmbuild --rmsource --rmspec \
-# --define '_sysconfdir /usr/local/nmh/etc' \
-# --define 'configure_opts --with-cyrus-sasl --with-locking=fcntl' \
+# --define 'configure_opts --with-cyrus-sasl --with-tls' \
# --bb ~/lib/rpmbuild/SPECS/nmh.spec
#
# If configure has previously been run successfully in the workspace,
# it will not be invoked again, even if configure_opts is defined.
#
-# Note that "make rpm" sets _sysconfdir. If configuring to install
-# anyplace other than the default _sysconfdir, typically /etc, and
-# you're not using this through "make rpm", be sure to set _sysconfdir.
-#
# With kernel (fcntl, flock, or lockf) locking, or with dot locking
# and a lockdir that's writable by the user, bin/inc does not need to
# be setgid. This spec assumes that. But if needed, add something
Version: %(sed "s/-/_/g" VERSION)
%define rawversion %(cat VERSION)
Release: 1%{?dist}
-Summary: A capable mail handling system with a command line interface
+Summary: A capable MIME-email-handling system with a command-line interface
Group: Applications/Internet
License: BSD
URL: http://savannah.nongnu.org/projects/nmh
-BuildRequires: gdbm-devel ncurses-devel
+BuildRequires: flex ncurses-devel
%define tarfile nmh-%rawversion.tar.gz
Source0: %tarfile
Source1: VERSION
%description
-Nmh is an email system based on the MH email system and is intended to
-be a (mostly) compatible drop-in replacement for MH. Nmh isn't a
-single comprehensive program. Instead, it consists of a number of
-fairly simple single-purpose programs for sending, receiving, saving,
-retrieving and otherwise manipulating email messages. You can freely
-intersperse nmh commands with other shell commands or write custom
-scripts which utilize nmh commands. nmh only has a command line
-interface; if you want a more sophisticated user interface, you'll
-want to also install exmh.
+nmh is a collection of single-purpose programs that send, receive,
+show, search, and otherwise manipulate emails, including MIME.
+They combine well with other Unix programs, easing the development
+of custom shorthand commands as shell scripts.
+Optional GUI interfaces are provided by the external xmh and exmh
+projects. nmh is a descendant of the RAND MH, Mail Handler, project.
%prep