1 Summary: A capable mail handling system with a command line interface
2 Summary(pl): System obs³ugi poczty z interfejsem z linii poleceñ
8 Group: Applications/Mail
9 Group(de): Applikationen/Post
10 Group(pl): Aplikacje/Poczta
11 Group(pt): Aplicações/Correio Eletrônico
12 Source0: ftp://ftp.math.gatech.edu/pub/nmh/%{name}-%{version}.tar.gz
13 Patch0: %{name}-1.0.3-config.patch
14 Patch1: %{name}-1.0.3-buildroot.patch
15 Patch2: %{name}-1.0.3-compat21.patch
16 Patch3: %{name}-1.0.4-bug7246.patch
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _libdir %{_prefix}/lib/nmh
22 %define _sysconfdir /etc/nmh
25 Nmh is an email system based on the MH email system and is intended to
26 be a (mostly) compatible drop-in replacement for MH. Nmh isn't a
27 single comprehensive program. Instead, it consists of a number of
28 fairly simple single-purpose programs for sending, receiving, saving,
29 retrieving and otherwise manipulating email messages. You can freely
30 intersperse nmh commands with other shell commands or write custom
31 scripts which utilize nmh commands. If you want to use nmh as a true
32 email user agent, you'll want to also install exmh to provide a user
33 interface for it--nmh only has a command line interface.
36 Nmh jest systemem pocztowym bazuj±cym na systemie MH, w wiêkoszo¶ci
37 kompatybilnym i mog±cym zast±piæ MH. Nmh nie jest pojedynczym
38 programem - sk³ada siê z wielu prostych programów s³u¿±cych do jednej
39 czynno¶ci (wysy³ania, odbierania, zapisywania, odczytywania...). Mo¿na
40 swobodnie umieszczaæ polecenia nmh miêdzy innymi poleceniami pow³oki
41 lub pisaæ skrypty korzystaj±ce z poleceñ nmh. Je¶li chcesz u¿ywaæ nmh
42 jako prawdziwego programu pocztowego, pomy¶l o zainstalowaniu exmh,
43 daj±cego interfejs u¿ytkownika - samo nmh mo¿na obs³ugiwaæ tylko z
62 rm -rf $RPM_BUILD_ROOT
63 %{__make} install DESTDIR=$RPM_BUILD_ROOT SETGID_MAIL=
65 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.old
67 gzip -9nf COPYRIGHT DIFFERENCES FAQ MAIL.FILTERING README TODO VERSION
70 rm -rf $RPM_BUILD_ROOT
73 if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
74 ln -sf . %{_bindir}/mh
76 if [ ! -d %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
77 ln -sf nmh %{_usrlibdir}/mh
79 if [ -d /etc/smrsh -a ! -L /etc/smrsh/slocal ] ; then
80 ln -sf %{_libdir}/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 %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
88 ln -sf nmh %{_usrlibdir}/mh
92 if [ "$1" = "0" ]; then
93 [ ! -L %{_bindir}/mh ] || rm -f %{_bindir}/mh
94 [ ! -L %{_usrlibdir}/mh ] || rm -f %{_usrlibdir}/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}.gz
101 %doc {TODO,VERSION,ZSH.COMPLETION}.gz
104 %config %{_sysconfdir}/*
105 %attr(755,root,root) %{_bindir}/*
106 %attr(755,root,root) %{_libdir}/*