File lynx.spec of Package lynx

# spec file for package lynx
# Copyright (c) 2017 SUSE LINUX 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

%define tarbase 2.8.9dev.16
Name:           lynx
Version:        2.8.9~dev.16
Release:        0
Summary:        A Text-Based WWW Browser
License:        GPL-2.0
Group:          Productivity/Networking/Web/Browsers
# changing default configuration
Patch0:         lynx-charset.patch
Patch1:         lynx-enable_xli.patch
Patch2:         lynx-helpfile.patch
# bugs
Patch3:         lynx-proxy-empty-string.patch
BuildRequires:  libbz2-devel
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
BuildRequires:  postfix
BuildRequires:  zlib-devel
Requires:       xli
# FIXME: use proper Requires(pre/post/preun/...)
PreReq:         /bin/cp
Provides:       web_browser
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Lynx is an easy-to-use browser for HTML documents and other Internet
services like FTP, telnet, and news.  Lynx is fast.  It is purely text
based and therefore makes it possible to use WWW resources on text

%setup -q -n %{name}%{tarbase}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%configure --enable-debug --with-build-cflags="%{optflags} -DNO_BUILDSTAMP" \
	--with-ssl \
	--with-zlib \
	--with-bzlib \
	--enable-nls \
	--disable-default-colors \
	--disable-color-style \
	--with-screen=ncursesw \
make %{?_smp_mflags}
mv lynx lynx-bw
make %{?_smp_mflags} distclean
%configure --enable-debug --with-build-cflags="%{optflags}" \
	--with-ssl \
	--with-bzlib \
	--enable-nls \
	--enable-default-colors \
	--with-screen=ncursesw \
make %{?_smp_mflags}

make clean
mkdir -p %{buildroot}
mv %{buildroot}%{_bindir}/lynx %{buildroot}%{_bindir}/lynx-color
install lynx-bw %{buildroot}%{_bindir}/lynx

chmod ogu-x scripts/ scripts/

%find_lang %{name}

%files -f %{name}.lang
%config %{_sysconfdir}/lynx.cfg
%config %{_sysconfdir}/lynx.lss
%doc lynx_help samples scripts

openSUSE Build Service is sponsored by