]> git.pld-linux.org Git - packages/nmh.git/blob - nmh.spec
- s/Copyright/License/, pl translations
[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:        2
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
64
65 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.old
66
67 gzip -9nf COPYRIGHT DIFFERENCES FAQ MAIL.FILTERING README TODO VERSION 
68 #\      ZSH.COMPLETION
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post
74 if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
75         ln -sf . %{_bindir}/mh
76 fi
77 if [ ! -d %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
78         ln -sf nmh %{_usrlibdir}/mh
79 fi
80 if [ -d /etc/smrsh -a ! -L /etc/smrsh/slocal ] ; then
81         ln -sf %{_libdir}/slocal /etc/smrsh/slocal
82 fi
83
84 %triggerpostun -- mh, nmh <= 0.27-7
85 if [ ! -d %{_bindir}/mh -a ! -L %{_bindir}/mh ] ; then
86         ln -sf . %{_bindir}/mh
87 fi
88 if [ ! -d %{_usrlibdir}/mh -a ! -L %{_usrlibdir}/mh ] ; then
89         ln -sf nmh %{_usrlibdir}/mh
90 fi
91
92 %preun
93 if [ "$1" = "0" ]; then
94         [ ! -L %{_bindir}/mh ] || rm -f %{_bindir}/mh
95         [ ! -L %{_usrlibdir}/mh ] || rm -f %{_usrlibdir}/mh
96         [ ! -d /etc/smrsh -a -L /etc/smrsh/slocal ] || rm -f /etc/smrsh/slocal
97 fi
98
99 %files
100 %defattr(644,root,root,755)
101 %doc {COPYRIGHT,DIFFERENCES,FAQ,MAIL.FILTERING,README}.gz
102 %doc {TODO,VERSION,ZSH.COMPLETION}.gz
103 %dir %{_libdir}
104 %dir %{_sysconfdir}
105 %config %{_sysconfdir}/*
106 %attr(755,root,root) %{_bindir}/*
107 %attr(755,root,root) %{_libdir}/*
108 %{_mandir}/*/*
This page took 0.071881 seconds and 4 git commands to generate.