]> git.pld-linux.org Git - packages/nmh.git/blob - nmh.spec
- cosmetics
[packages/nmh.git] / nmh.spec
1 Summary:        A capable mail handling system with a command line interface
2 Summary(pl):    System obs³ugi poczty z interfejsem z linii poleceñ
3 Name:           nmh
4 Provides:       mh
5 Version:        1.0.4
6 Release:        3
7 License:        freeware
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
17 Requires:       smtpdaemon
18 Obsoletes:      mh
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _libdir         %{_prefix}/lib/nmh
22 %define         _sysconfdir     /etc/nmh
23
24 %description
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.
34
35 %description -l pl
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
44 linii poleceñ.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49 %patch1 -p1
50 %patch2 -p1
51 %patch3 -p1
52
53 %build
54 LIBS="-lgdbm"
55 export LIBS
56 %configure2_13 \
57         --with-editor=/bin/vi
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 %{__make} install DESTDIR=$RPM_BUILD_ROOT SETGID_MAIL=
64
65 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.old
66
67 gzip -9nf COPYRIGHT DIFFERENCES FAQ MAIL.FILTERING README TODO VERSION 
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
74         ln -sf . %{_bindir}/mh
75 fi
76 if [ ! -d %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
77         ln -sf nmh %{_usrlibdir}/mh
78 fi
79 if [ -d /etc/smrsh -a ! -L /etc/smrsh/slocal ] ; then
80         ln -sf %{_libdir}/slocal /etc/smrsh/slocal
81 fi
82
83 %triggerpostun -- mh, nmh <= 0.27-7
84 if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
85         ln -sf . %{_bindir}/mh
86 fi
87 if [ ! -d %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
88         ln -sf nmh %{_usrlibdir}/mh
89 fi
90
91 %preun
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
96 fi
97
98 %files
99 %defattr(644,root,root,755)
100 %doc {COPYRIGHT,DIFFERENCES,FAQ,MAIL.FILTERING,README}.gz
101 %doc {TODO,VERSION,ZSH.COMPLETION}.gz
102 %dir %{_libdir}
103 %dir %{_sysconfdir}
104 %config %{_sysconfdir}/*
105 %attr(755,root,root) %{_bindir}/*
106 %attr(755,root,root) %{_libdir}/*
107 %{_mandir}/*/*
This page took 0.084643 seconds and 4 git commands to generate.