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