]> git.pld-linux.org Git - packages/elinks.git/blob - elinks.spec
- removed external feature.h - already in sources
[packages/elinks.git] / elinks.spec
1 # Conditional build:
2 %bcond_with     x       # Use the X Windows System
3 %bcond_without  cgi     # Disable Local CGI support
4 %bcond_without  ipv6    # Disable IPv6 Support
5 %bcond_without  led     # Disable LEDs
6 %bcond_without  256     # Disable 256 colors support
7 #
8 Summary:        Experimantal Links (text WWW browser)
9 Summary(es):    El links es un browser para modo texto, similar a lynx
10 Summary(pl):    Eksperymentalny Links (tekstowa przegl±darka WWW)
11 Summary(pt_BR): O links é um browser para modo texto, similar ao lynx
12 Name:           elinks
13 Version:        0.9.1
14 Release:        1
15 Epoch:          1
16 License:        GPL
17 Group:          Applications/Networking
18 #Source0Download:       http://elinks.or.cz/download.html
19 Source0:        http://elinks.or.cz/download/%{name}-%{version}.tar.bz2
20 # Source0-md5:  78b536a9e9607ed522229b70172706a8
21 Source1:        %{name}.desktop
22 Source2:        links.png
23 Patch0:         %{name}-pl.po.patch
24 Patch1:         %{name}-home_etc.patch
25 URL:            http://elinks.or.cz/
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  bzip2-devel
29 BuildRequires:  expat-devel
30 BuildRequires:  gettext-devel
31 BuildRequires:  gpm-devel
32 BuildRequires:  lua40-devel
33 BuildRequires:  ncurses-devel => 5.1
34 BuildRequires:  openssl-devel >= 0.9.7c
35 BuildRequires:  zlib-devel
36 BuildRequires:  /usr/bin/texi2html
37 Provides:       webclient
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %define         _sysconfdir     /etc/elinks
41 %define         specflags_ia32  "-fomit-frame-pointer"
42
43 %description
44 This is the elinks tree - intended to provide feature-rich version of
45 links, however not rock-stable and dedicated mainly for testing. Its
46 purpose is to make alternative to links, until Mikulas will have some
47 time to maintain it, and to test and tune various patches for Mikulas
48 to be able to include them in the official links releases.
49
50 %description -l es
51 Links es un browser WWW modo texto, similar al Lynx. El links muestra
52 tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1
53 keepalive.
54
55 %description -l pl
56 Bogata w opcje i mo¿liwo¶ci wersja tekstowej przegl±darki www - links.
57 elinks jednak jest dedykowana g³ównie do testowania.
58
59 %description -l pt_BR
60 Links é um browser WWW modo texto, similar ao Lynx. O Links exibe
61 tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1
62 keepalive.
63
64 %prep
65 %setup -q
66 %patch0 -p1
67 %patch1 -p1
68
69 %build
70 %{__aclocal}
71 %{__autoconf}
72 %{__autoheader}
73 %{__automake}
74 %configure \
75 %{!?debug:      --enable-fastmem} \
76 %{?debug:       --enable-debug} \
77         %{?without_ipv6:--disable-ipv6} \
78         --with%{?without_x:out}-x
79 %{?with_led:echo    '#define CONFIG_LEDS' >> feature.h}
80 %{?with_256:echo    '#define CONFIG_256_COLORS' >> feature.h}
81 %{?with_cgi:echo -e "#ifdef HAVE_SETENV\n\t#define CONFIG_CGI\n#endif" >> feature.h}
82 %{__make}
83
84 cd doc
85 texi2html elinks-lua.texi
86 cd ..
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT%{_desktopdir} \
91         $RPM_BUILD_ROOT%{_datadir}/%{name} \
92         $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}}
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
98 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
99
100 install contrib/lua/[bcmr]*.lua $RPM_BUILD_ROOT%{_sysconfdir}
101 install contrib/lua/hooks.lua.in $RPM_BUILD_ROOT%{_sysconfdir}/hooks.lua
102
103 %find_lang %{name}
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files -f %{name}.lang
109 %defattr(644,root,root,755)
110 %doc AUTHORS BUGS ChangeLog NEWS README SITES TODO
111 %doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote}
112 %doc contrib/conv/{*awk,*.pl,*.sh}
113 %doc doc/{*.txt,*.html}
114 %attr(755,root,root) %{_bindir}/*
115 %{_mandir}/man*/*
116 %{_desktopdir}/*
117 %{_pixmapsdir}/*
118 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}
This page took 0.036854 seconds and 4 git commands to generate.