LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File links.spec of Package links (Project network)

#
# 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:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  libtiff-devel
BuildRequires:  openssl-devel
BuildRequires:  pkgconfig
BuildRequires:  xorg-x11-devel
Url:            http://artax.karlin.mff.cuni.cz/~mikulas/links/
Provides:       web_browser
Version:        2.6
Release:        0
Summary:        Text-Based WWW Browser
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Browsers
Source:         links-%{version}.tar.bz2
Patch2:         configure.diff
Patch3:         links-nosslcomp.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
%patch3
%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

%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
%doc ChangeLog
/usr/bin/links
%doc %{_mandir}/man1/links.1.gz

%changelog