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