File exmh.spec of Package exmh

#
# spec file for package exmh (Version 2.7.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:           exmh
BuildRequires:  tcl
Summary:        Front-End for nmh Written in tcl/tk
Version:        2.7.2
Release:        97
BuildArch:      noarch
Requires:       nmh, metamail, expect
License:        X11/MIT
Group:          Productivity/Networking/Email/Clients
Source0:        ftp://ftp.tcl.tk/pub/tcl/exmh/exmh-%{version}.tar.bz2
Url:            http://beedub.com/exmh/
Patch0:         %{name}-2.7-conf.patch
Patch1:         %name-expectk.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Exmh is an X user interface for NMH mail. NMH provides a set of UNIX
commands that manage folders and mail messages. NMH has many features
as a result of several years of availability. Exmh provides a graphical
interface to many of these features, but not everything.



Authors:
--------
    Brent Welch <welch@acm.org>

%prep
%setup -q
for i in *.MASTER; do
	cp $i ${i%%.MASTER}
done
%patch0
%patch1

%build
echo 'auto_mkindex ./lib *.tcl' | tclsh

%install
mkdir -p %buildroot{%_bindir,%_mandir/man1}
mkdir -p %buildroot%tclscriptdir/exmh-%{version}
install -m755 -d %buildroot%_bindir
install -m755 exmh exmh-bg exmh-async ftp.expect %buildroot%_bindir
install -m755 -d %buildroot%_mandir/man1
for i in *.l; do
	install -m644 $i %buildroot%_mandir/man1/${i%%.l}.1
done
install -m755 -d %buildroot%tclscriptdir/exmh-%version
cp -ar lib/* %buildroot/%tclscriptdir/exmh-%version
rm -r misc/RPM
chmod a-x misc/mafe/help/mafe.html
mv misc examples

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc COPYRIGHT exmh.BUGS exmh.TODO exmh.README examples
%tclscriptdir
%_bindir/*
%_mandir/*/*

%changelog
* Wed Mar 12 2008 max@suse.de
- Clean up documentation and examples.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 05 2006 max@suse.de
- New version: 2.7.2.
- Moved the script library part to /usr/share/tcl.
- Packaged the stuff from misc/ as documentation.
* Tue Jul 13 2004 max@suse.de
- New version: 2.7.0.
* Thu Feb 05 2004 hmacht@suse.de
- added option # norootforbuild in specfile
* Wed Dec 17 2003 max@suse.de
- Fixed path to exmh library (Bug #33709).
* Mon Aug 11 2003 max@suse.de
- New version: 2.6.3.
* Mon Feb 10 2003 max@suse.de
- New Package: exmh 2.6
- The favourite email client of John "maddog" Hall.
openSUSE Build Service is sponsored by