2 # - update to 1.1RC1 - project moved to savannah.nongnu.org
4 Summary: A capable mail handling system with a command line interface
5 Summary(pl): System obs³ugi poczty z interfejsem z linii poleceñ
11 Group: Applications/Mail
12 Source0: ftp://ftp.math.gatech.edu/pub/nmh/%{name}-%{version}.tar.gz
13 # Source0-md5: caff7fbd5588d08701413fe4eaa87e87
14 Patch0: %{name}-config.patch
15 Patch1: %{name}-buildroot.patch
16 Patch2: %{name}-compat21.patch
17 Patch3: %{name}-bug7246.patch
18 BuildRequires: gdbm-devel
19 BuildRequires: ncurses-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _nmhlibdir %{_libdir}/nmh
26 %define _sysconfdir /etc/nmh
29 Nmh is an email system based on the MH email system and is intended to
30 be a (mostly) compatible drop-in replacement for MH. Nmh isn't a
31 single comprehensive program. Instead, it consists of a number of
32 fairly simple single-purpose programs for sending, receiving, saving,
33 retrieving and otherwise manipulating email messages. You can freely
34 intersperse nmh commands with other shell commands or write custom
35 scripts which utilize nmh commands. If you want to use nmh as a true
36 email user agent, you'll want to also install exmh to provide a user
37 interface for it--nmh only has a command line interface.
40 Nmh jest systemem pocztowym bazuj±cym na systemie MH, w wiêkoszo¶ci
41 kompatybilnym i mog±cym zast±piæ MH. Nmh nie jest pojedynczym
42 programem - sk³ada siê z wielu prostych programów s³u¿±cych do jednej
43 czynno¶ci (wysy³ania, odbierania, zapisywania, odczytywania...). Mo¿na
44 swobodnie umieszczaæ polecenia nmh miêdzy innymi poleceniami pow³oki
45 lub pisaæ skrypty korzystaj±ce z poleceñ nmh. Je¶li chcesz u¿ywaæ nmh
46 jako prawdziwego programu pocztowego, pomy¶l o zainstalowaniu exmh,
47 daj±cego interfejs u¿ytkownika - samo nmh mo¿na obs³ugiwaæ tylko z
61 %{__make} LIBS="-lgdbm -lgdbm_compat"
64 rm -rf $RPM_BUILD_ROOT
65 %{__make} install DESTDIR=$RPM_BUILD_ROOT SETGID_MAIL=
67 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.old
70 rm -rf $RPM_BUILD_ROOT
73 if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
74 ln -sf . %{_bindir}/mh
76 if [ ! -d %{_libdir}/mh -a ! -L %{_libdir}/mh ] ; then
77 ln -sf nmh %{_libdir}/mh
79 if [ -d /etc/smrsh -a ! -L /etc/smrsh/slocal ] ; then
80 ln -sf %{_nmhlibdir}/slocal /etc/smrsh/slocal
83 %triggerpostun -- mh, nmh <= 0.27-7
84 if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
85 ln -sf . %{_bindir}/mh
87 if [ ! -d %{_libdir}/mh -a ! -L %{_libdir}/mh ] ; then
88 ln -sf nmh %{_libdir}/mh
92 if [ "$1" = "0" ]; then
93 [ ! -L %{_bindir}/mh ] || rm -f %{_bindir}/mh
94 [ ! -L %{_libdir}/mh ] || rm -f %{_libdir}/mh
95 [ ! -d /etc/smrsh -a -L /etc/smrsh/slocal ] || rm -f /etc/smrsh/slocal
99 %defattr(644,root,root,755)
100 %doc COPYRIGHT DIFFERENCES FAQ MAIL.FILTERING README TODO VERSION
103 %config %{_sysconfdir}/*
104 %attr(755,root,root) %{_bindir}/*
105 %attr(755,root,root) %{_libdir}/*