]> git.pld-linux.org Git - packages/elinks.git/blame - elinks.spec
- obsolete
[packages/elinks.git] / elinks.spec
CommitLineData
1c33e430 1#
21bf3c6a 2# Conditional build:
b67326b7
JB
3%bcond_with x # Use the X Windows System
4%bcond_with gnutls # Enable GNUTLS SSL support (disables openssl)
5%bcond_with ruby # Enable (experimental) Ruby scripting support
6%bcond_without 256 # Disable 256 colors support
7%bcond_without bittorrent # Disable BitTorrent support
8%bcond_without cgi # Disable Local CGI support
b631af97 9%bcond_without fsp # Disable FSP support
b67326b7
JB
10%bcond_without guile # Disable Guile scripting
11%bcond_without idn # Disable Internation Domain Names support
12%bcond_without ipv6 # Disable IPv6 support
13%bcond_without js # Disable experimental (yet quite usable) JavaScript support (using SpiderMonkey)
14%bcond_without led # Disable LEDs
15%bcond_without lua # Disable Lua scripting
16%bcond_without openssl # Disable OpenSSL support
17%bcond_without perl # Disable Perl scripting
3d4d38d9
AG
18#
19%if %{with gnutls}
20%undefine with_openssl
21%endif
21bf3c6a 22#
17631700 23Summary: Experimantal Links (text WWW browser)
f85cbf5d
ER
24Summary(es.UTF-8): El links es un browser para modo texto, similar a lynx
25Summary(pl.UTF-8): Eksperymentalny Links (tekstowa przeglądarka WWW)
26Summary(pt_BR.UTF-8): O links é um browser para modo texto, similar ao lynx
17631700 27Name: elinks
31255a1b 28Version: 0.11.2
5f80478a 29Release: 3
e2affc83 30Epoch: 1
17631700
AM
31License: GPL
32Group: Applications/Networking
8ca357a6
AG
33#Source0Download: http://www.elinks.cz/download.html
34Source0: http://www.elinks.cz/download/%{name}-%{version}.tar.bz2
31255a1b 35# Source0-md5: 5a8f83afb527cf443f58b372136a81fc
17631700 36Source1: %{name}.desktop
5a8f1bd1 37Source2: links.png
ef0f233a
AG
38Patch0: %{name}-home_etc.patch
39Patch1: %{name}-lua40.patch
8ca357a6 40Patch2: %{name}-pl.po-update.patch
b631af97 41Patch3: %{name}-bug899.patch
8ca357a6 42URL: http://www.elinks.cz/
17631700
AM
43BuildRequires: autoconf
44BuildRequires: automake
5a8f1bd1 45BuildRequires: bzip2-devel
fcffdc5b 46BuildRequires: expat-devel
b631af97 47%{?with_fsp:BuildRequires: fsplib-devel}
ab99996e 48BuildRequires: gettext-devel
17631700 49BuildRequires: gpm-devel
3d4d38d9 50%{?with_guile:BuildRequires: guile-devel}
69d969c4 51%{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5}
3d4d38d9
AG
52%{?with_js:BuildRequires: js-devel >= 1.5-0.rc6a.1}
53%{?with_idn:BuildRequires: libidn-devel}
8eb57a4f 54%{?with_lua:BuildRequires: lua50-devel}
1c33e430 55BuildRequires: ncurses-devel >= 5.1
3d4d38d9
AG
56%{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d}
57%{?with_perl:BuildRequires: perl-devel}
8ca357a6 58%{?with_ruby:BuildRequires: ruby-devel}
5a8f1bd1 59BuildRequires: zlib-devel
17631700
AM
60Provides: webclient
61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
c4be24e9 63%define _sysconfdir /etc/elinks
ef0f233a 64%define specflags_ia32 -fomit-frame-pointer
4fc089e9 65
17631700 66%description
cd6ad879
JB
67This is the elinks tree - intended to provide feature-rich version of
68links, however not rock-stable and dedicated mainly for testing. Its
69purpose is to make alternative to links, until Mikulas will have some
70time to maintain it, and to test and tune various patches for Mikulas
71to be able to include them in the official links releases.
17631700 72
3328f371 73%description -l es.UTF-8
c15f1e53 74Links es un browser WWW modo texto, similar al Lynx. El links muestra
75tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1
76keepalive.
77
3328f371
JR
78%description -l pl.UTF-8
79Bogata w opcje i możliwości wersja tekstowej przeglądarki WWW - links.
80elinks jednak jest dedykowana głównie do testowania.
17631700 81
3328f371
JR
82%description -l pt_BR.UTF-8
83Links é um browser WWW modo texto, similar ao Lynx. O Links exibe
84tabelas, baixa arquivos em segundo plano, e usa as conexões HTTP/1.1
c15f1e53 85keepalive.
86
17631700 87%prep
cdfd7eb6 88%setup -q
ef0f233a 89%patch0 -p1
1fa8ef0a 90%patch1 -p1
0f471171 91%patch2 -p1
b631af97 92%patch3 -p1
0b57a582 93
17631700 94%build
663b78ce 95%{__aclocal}
285e9f62 96%{__autoconf}
115d3038 97%{__autoheader}
ad628403 98%configure \
f51c0c63 99 --disable-no-root \
eda372dc 100 HAVE_SMBCLIENT=yes \
3d4d38d9
AG
101 %{!?debug:--enable-fastmem} \
102 %{?debug:--enable-debug} \
cc7f804f 103 %{!?with_ipv6:--disable-ipv6} \
8ca357a6 104 %{?with_bittorrent:--enable-bittorrent} \
3d4d38d9
AG
105 %{?with_cgi:--enable-cgi} \
106 --enable-finger \
107 --enable-gopher \
108 --enable-nntp \
109 %{?with_256:--enable-256-colors} \
110 --enable-exmode \
b631af97 111 %{?with_fsp:--enable-fsp} \
3d4d38d9 112 %{?with_leds:--enable-leds} \
8ca357a6 113 --enable-marks \
3d4d38d9 114 --enable-html-highlight \
3d4d38d9
AG
115 %{!?with_idn:--without-idn} \
116 %{?with_guile:--with-guile} \
117 %{?with_perl:--with-perl} \
62c5be6a 118 %{!?with_lua:--without-lua} \
8ca357a6 119 %{?with_ruby:--with-ruby} \
3d4d38d9
AG
120 %{!?with_js:--without-spidermonkey} \
121 %{?with_gnutls:--with-gnutls} \
122 %{!?with_openssl:--without-openssl} \
82dd9b93
AG
123 --with%{!?with_x:out}-x
124# xterm -e is default, one might want to change it to
125# something else
126# --with-xterm="xterm -e"
3d4d38d9 127
1378c2d4 128%{__make} V=1
17631700
AM
129
130%install
131rm -rf $RPM_BUILD_ROOT
1568d5eb 132install -d $RPM_BUILD_ROOT%{_desktopdir} \
ad628403 133 $RPM_BUILD_ROOT%{_datadir}/%{name} \
c4be24e9 134 $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}}
17631700 135
1378c2d4 136%{__make} install V=1 \
834d1634 137 DESTDIR=$RPM_BUILD_ROOT
17631700 138
1568d5eb 139install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
5a8f1bd1 140install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
141
ef0f233a 142%{?with_lua:install contrib/lua/*.lua $RPM_BUILD_ROOT%{_sysconfdir}}
347f019c 143
269a2ef7 144%find_lang %{name}
145
17631700
AM
146%clean
147rm -rf $RPM_BUILD_ROOT
148
269a2ef7 149%files -f %{name}.lang
17631700 150%defattr(644,root,root,755)
bf7521cb 151%doc AUTHORS BUGS ChangeLog NEWS README SITES TODO
ab99996e 152%doc contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote}
5a8f1bd1 153%doc contrib/conv/{*awk,*.pl,*.sh}
cf865ed3 154%doc doc/html/*.html
17631700 155%attr(755,root,root) %{_bindir}/*
17631700 156%{_mandir}/man*/*
1faa0547 157%{_desktopdir}/*.desktop
06096625 158%{_pixmapsdir}/*
a153230d 159%{?with_lua:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}}
This page took 0.1451 seconds and 4 git commands to generate.