]> git.pld-linux.org Git - packages/elmo.git/blob - elmo.spec
- added elmo-home_etc.patch
[packages/elmo.git] / elmo.spec
1 # Conditional build:
2 %bcond_without  home_etc        # don't use home_etc
3 Summary:        Elmo, MUA supporting Maildirs and Polish language
4 Summary(pl):    Elmo - program pocztowy obs³uguj±cy Maildiry i jêzyk polski
5 Name:           elmo
6 Version:        1.0.4
7 Release:        2
8 License:        GPL v2+
9 Vendor:         Jacek ¦liwerski <rzyj@plusnet.pl>
10 Group:          Applications/Mail
11 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
12 # Source0-md5:  8c5109b462008625ed928abc0d907710
13 Source1:        %{name}-examplerc
14 Patch0:         %{name}-etc_dir.patch
15 Patch10:        %{name}-home_etc.patch
16 URL:            http://elmo.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  gettext-devel
20 BuildRequires:  libtool
21 BuildRequires:  ncurses-devel >= 5.0
22 %{?with_home_etc:BuildRequires: home-etc-devel}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Elmo, excellent and light mua.
27
28 %description -l pl
29 Elmo - ¶wietny i niedu¿y program pocztowy.
30
31 %prep
32 %setup -q
33 %{?with_home_etc:%patch10 -p1}
34 install -m 644 %{SOURCE1} ./examplerc
35
36 %build
37 %{__gettextize}
38 %{__libtoolize}
39 %{__aclocal} -I m4
40 %{__autoconf}
41 %{__autoheader}
42 %{__automake}
43 %{__automake} m4/Makefile
44 %configure \
45         %{?with_home_etc:--with-home-etc}
46
47 %{__make} \
48         CC="%{__cc} %{rpmcflags}"
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT \
55         docdir=%{_datadir}/%{name}-%{version}
56
57 %find_lang %{name}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files -f %{name}.lang
63 %defattr(644,root,root,755)
64 %doc ADVOCACY AUTHORS doc/README.txt doc/sample.* TODO BUGS THANKS examplerc
65 %attr(755,root,root) %{_bindir}/*
66 %{_mandir}/man1/*
67 %{_infodir}/*.info*
This page took 0.065103 seconds and 3 git commands to generate.