File links.spec of Package links
#
# spec file for package links
#
# Copyright (c) 2013 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
BuildRequires: automake
BuildRequires: gpm-devel
BuildRequires: jpeg
BuildRequires: libbz2-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: xz-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(x11)
Url: http://links.twibright.com/
Provides: web_browser
Version: 2.8
Release: 0
Summary: Text-Based WWW Browser
License: GPL-2.0+
Group: Productivity/Networking/Web/Browsers
Source: http://links.twibright.com/download/%{name}-%{version}.tar.bz2
Patch2: configure.diff
Patch3: links-nosslcomp.patch
Patch4: links-sni.patch
Patch5: links-no-date-time.patch
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 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
autoreconf -ifv
CFLAGS="$RPM_OPT_FLAGS -DOPENSSL_NO_SSL_INTERN -fno-strict-aliasing -pipe"
%configure \
--with-fb --with-ssl \
--with-x --enable-graphics --with-pic
make %{?_smp_mflags}
%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 NEWS ChangeLog BRAILLE_HOWTO AUTHORS COPYING KEYS SITES
%doc doc/links_cal
/usr/bin/links
%doc %{_mandir}/man1/links.1.gz
%changelog