]> git.pld-linux.org Git - packages/nmh.git/blob - nmh.spec
- added missing BRs
[packages/nmh.git] / nmh.spec
1 # TODO:
2 # - update to 1.1RC1 - project moved to savannah.nongnu.org
3 #
4 Summary:        A capable mail handling system with a command line interface
5 Summary(pl):    System obs³ugi poczty z interfejsem z linii poleceñ
6 Name:           nmh
7 Provides:       mh
8 Version:        1.0.4
9 Release:        6
10 License:        Freeware
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
20 Requires:       smtpdaemon
21 Requires:       /bin/vi
22 Obsoletes:      mh
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _nmhlibdir      %{_libdir}/nmh
26 %define         _sysconfdir     /etc/nmh
27
28 %description
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.
38
39 %description -l pl
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
48 linii poleceñ.
49
50 %prep
51 %setup -q
52 %patch0 -p1
53 %patch1 -p1
54 %patch2 -p1
55 %patch3 -p1
56
57 %build
58 %configure2_13 \
59         --with-editor=/bin/vi
60
61 %{__make} LIBS="-lgdbm -lgdbm_compat"
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 %{__make} install DESTDIR=$RPM_BUILD_ROOT SETGID_MAIL=
66
67 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.old
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 %{_libdir}/mh -a ! -L %{_libdir}/mh ] ; then
77         ln -sf nmh %{_libdir}/mh
78 fi
79 if [ -d /etc/smrsh -a ! -L /etc/smrsh/slocal ] ; then
80         ln -sf %{_nmhlibdir}/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 %{_libdir}/mh -a ! -L %{_libdir}/mh ] ; then
88         ln -sf nmh %{_libdir}/mh
89 fi
90
91 %preun
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
96 fi
97
98 %files
99 %defattr(644,root,root,755)
100 %doc COPYRIGHT DIFFERENCES FAQ MAIL.FILTERING README TODO VERSION
101 %dir %{_libdir}
102 %dir %{_sysconfdir}
103 %config %{_sysconfdir}/*
104 %attr(755,root,root) %{_bindir}/*
105 %attr(755,root,root) %{_libdir}/*
106 %{_mandir}/*/*
This page took 0.058876 seconds and 3 git commands to generate.