]> git.pld-linux.org Git - packages/elm.git/blob - elm.spec
- updated to 2.5.2
[packages/elm.git] / elm.spec
1 Summary:        The elm mail user agent
2 Summary(pl):    Program pocztowy elm
3 Name:           elm
4 Version:        2.5.2
5 Release:        1
6 Copyright:      distributable
7 Group:          Applications/Mail
8 Group(pl):      Aplikacje/Poczta
9 Source0:        ftp://ftp.virginia.edu/pub/elm/%{name}%{version}.tar.gz
10 Source1:        elm.desktop
11 Patch0:         elm-config.patch.gz
12 Patch1:         elm-temp-mbox.patch
13 URL:            http://www.myxa.com/elm.html
14 BuildRequires:  ncurses-devel >= 5.0
15 BuildRequires:  glibc-static
16 Requires:       metamail
17 BuildRoot:      /tmp/%{name}-%{version}-root
18
19 %define         _applnkdir      /usr/X11R6/share/applnk
20
21 %description
22 Elm is a popular terminal mode email user agent. Elm includes all
23 standard mailhandling features, including MIME support via metamail.
24
25 Elm is still used by some people, but is no longer in development. If
26 you've used Elm before and you're devoted to it, you should install the
27 elm package.  If you would like to use metamail's MIME support, you'll
28 also need to install the metamail package.
29
30 %description -l pl
31 Elm jest popularnym programem pocztowym dla terminali tekstowych. Obs³uguje
32 wszystkie standardy pocztowe z MIME w³±cznie (¿eby z niego skorzystaæ musisz
33 zainstalowaæ tak¿e pakiet metamail).
34
35 Elm jest wci±¿ powszechnnie u¿ywany, ale nie jest ju¿ rozwijany.
36
37 %prep
38 %setup -q -n %{name}%{version}
39 %patch0 -p1
40 %patch1 -p1
41
42 %build
43 mkdir -p bin
44 make OPTIMIZE="$RPM_OPT_FLAGS"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d  $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/elm,%{_mandir}/man1} \
49         $RPM_BUILD_ROOT%{_applnkdir}/Networking/Mail
50
51 make    DESTBIN=$RPM_BUILD_ROOT%{_bindir} \
52         BIN=$RPM_BUILD_ROOT%{_bindir} \
53         DESTLIB=$RPM_BUILD_ROOT%{_datadir}/elm \
54         LIB=$RPM_BUILD_ROOT%{_datadir}/elm \
55         MAN=$RPM_BUILD_ROOT%{_mandir}/man1 \
56         install
57
58 echo .so frm.1 > $RPM_BUILD_ROOT%{_mandir}/man1/nfrm.1
59
60 ln -sf newmail  $RPM_BUILD_ROOT%{_bindir}/wnewmail 
61 ln -sf frm      $RPM_BUILD_ROOT%{_bindir}/nfrm
62
63 # mmencode is provided by metamail package
64 rm -f $RPM_BUILD_ROOT%{_bindir}/mmencode
65 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mmencode.1
66
67 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Networking/Mail
68
69 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/* || :
70
71 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
72         Changes Overview README BUGS
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc {Changes,Overview,README,BUGS}.gz
80
81 %attr(755,root,root) %{_bindir}/*
82 %{_datadir}/elm
83 %{_mandir}/man1/*
84
85 %{_applnkdir}/Networking/Mail/elm.desktop
This page took 0.089901 seconds and 4 git commands to generate.