File links.spec of Package links
#
# spec file for package links (Version 2.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: links
BuildRequires: DirectFB-devel gpm-devel jpeg libjpeg-devel libpng-devel libtiff-devel openssl-devel pkgconfig xorg-x11-devel
Url: http://artax.karlin.mff.cuni.cz/~mikulas/links/
License: GPLv2+
Group: Productivity/Networking/Web/Browsers
Provides: web_browser
AutoReqProv: on
Version: 2.2
Release: 8
Summary: Text-Based WWW Browser
Source: links-%{version}.tar.bz2
Patch2: configure.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Links is like Lynx--an easy-to-use browser for HTML documents and other
Internet services, like FTP, telnet, and news. Links provides a
graphical interface besides the text interface. It has good support for
frames, supports ssl, and has a little bit of JavaScript support.
Authors:
--------
Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
%prep
%setup -q -n links-%{version}
%patch2
%build
autoreconf -ifv
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -pipe"
%configure \
--with-fb --with-ssl \
--with-x --enable-graphics --with-pic
make
%install
mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/man1,usr/bin,%{_infodir}}
cp links.1 $RPM_BUILD_ROOT/%{_mandir}/man1
make install DESTDIR=$RPM_BUILD_ROOT
make clean
make EXTRAA="-DSHOW_COLOR=TRUE"
install links $RPM_BUILD_ROOT/usr/bin/links
%files
%defattr(-,root,root)
%doc README
/usr/bin/links
%doc %{_mandir}/man1/links.1.gz
%changelog