File lynx.spec of Package lynx

#
# spec file for package lynx
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           lynx
BuildRequires:  ncurses-devel openssl-devel postfix
License:        GPLv2+
Group:          Productivity/Networking/Web/Browsers
Provides:       lynxssl web_browser
Obsoletes:      lynxssl
PreReq:         /bin/cp
Requires:       xli
AutoReqProv:    on
Version:        2.8.7
Release:        13
Url:            http://lynx.isc.org
Summary:        A Text-Based WWW Browser
Source:         http://lynx.isc.org/lynx2.8.7/lynx2.8.7.tar.bz2
# Source1:      po.tar.bz2
Patch100:       lynx-2.8.5.dif
Patch101:       lynx-2.8.5-charset.patch
Patch102:       %{name}-%{version}-enable_xli.patch
Patch103:       lynx-no-build-date.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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
terminals.


%prep
%setup -n lynx2-8-7 -q
%patch100 -p1
%patch101 -p0 
%patch102 -p1
%patch103
# containing a few test msg's only:
# rm -f po/{es,fr,it,ko,no,pl,pt}.po

%build
%{?suse_update_config:%{suse_update_config -f}}
export CFLAGS="$RPM_OPT_FLAGS -pipe"
./configure \
	--with-ssl \
	--enable-nls \
	--prefix=/usr \
	--mandir=%{_mandir} \
	--sysconfdir=/etc \
	--disable-default-colors \
	--disable-color-style \
	--with-screen=ncursesw \
	--enable-ipv6
make %{?_smp_mflags}
mv lynx lynx-bw
make distclean
./configure \
	--with-ssl \
	--enable-nls \
	--prefix=/usr \
	--mandir=%{_mandir} \
	--sysconfdir=/etc \
	--enable-default-colors \
	--with-screen=ncursesw \
	--enable-ipv6
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
make clean
make EXTRAA="-DSHOW_COLOR=TRUE"
mkdir -p $RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT/usr/bin/lynx $RPM_BUILD_ROOT/usr/bin/lynx-color
install lynx-bw $RPM_BUILD_ROOT/usr/bin/lynx

chmod ogu-x scripts/conf.mingw.sh scripts/config.djgpp.sh

%find_lang %name

%files -f %name.lang
%defattr(-,root,root)
/usr/bin/lynx
/usr/bin/lynx-color
%config /etc/lynx.cfg
%config /etc/lynx.lss
%doc %{_mandir}/man1/lynx.1.gz
%doc AUTHORS CHANGES README COPYING README PROBLEMS
%doc lynx_help samples scripts

%changelog
openSUSE Build Service is sponsored by