File lynx.spec of Package lynx

#
# spec file for package lynx (Version 2.8.7)
#
# 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/
#

# 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:        7
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.



Authors:
--------
    Al Gilman     
    Alexei Anatski     
    Alexey Dobriyan     
    Alois Maier     
    Andrew Belov     
    Andrey A Chernov    
    Arkadiusz Miskiewicz     
    Arnaud Giersch     
    Atsuhito Kohda     
    Bela Lubkin     
    Bill Nottingham     
    Bill Schiavo     
    Binh Do     
    Brett Lymn     
    Brian J Pardy    
    Carlton Anderson     
    Charles Karney     
    Chris Adams     
    Christian Hudon     
    Christian Jensen     
    Christian Weisgerber     
    Crouton      
    Dan Jacobson     
    David Combs     
    David Henderson     
    David Woolley     
    Dick Wesseling     
    Doug Kaufman     
    Duncan Simpson     
    Eduardo Chappa     
    Emanuele Giaquinta     
    Eric Brun     
    External      
    Foteos Macrides     
    Frank Heckenbach     
    Frederic L W Meunier   
    Frederick P Herrmann    
    Georg Drenkhahn     
    George Lindholm     
    Gisle Vanem     
    Glenn Nielsen     
    Hataguchi Takeshi     
    Heikki Kantola     
    Helen Sommer     
    Henry Nelson     
    Hiram Lester Jr    
    Hiroyuki Senshu     
    Hynek Med     
    Igor B Poretsky    
    Ilya Zakharevich     
    Ismael Cordeiro     
    J Kevin Ternes    
    Jacob Poon     
    James E Spath    
    Jan Hlavacek     
    Jason F McBrayer    
    Jean-Yves Levesque     
    Jeffrey C Honig    
    Jens Schmalzing     
    Jens Seidel     
    Jerome Lauret     
    Johannes Hromadka     
    John Bley     
    John Davis     
    John E Davis    
    John Hawkinson     
    John Nowlin     
    Jonathan Sergent     
    Julian Coleman     
    Karl Eichwalder     
    Karl-Andre Skevik     
    Kim DeVaughn     
    Klaus Weide     
    Lalo Martins     
    Larry Virden     
    Larry W Virden    
    Laura Eaves     
    Leonid Pauzner     
    Liam Davis     
    Marc Huber     
    Marek Kubita     
    Masashi Fujita     
    Masayasu Ishikawa     
    Masayuki Hatta     
    Matt Kraal     
    Michael Sobolev     
    Michael Warner     
    Michel Such     
    Mike Castle     
    Munechika Sumikawa     
    Nigel Horne     
    Pat Walsh     
    Paul D Smith    
    Paul Gilmartin     
    Peter Canning     
    Philip Webb     
    Philippe De Muyter    
    Rado Smiljanic     
    Randall      
    Risto Widenius     
    Rob Cameron     
    Ryan Nielsen     
    Scott Bigham     
    Sergey Svishchev     
    Serhii Hlodin     
    Sinan Kaan Yerli    
    Stef Caunter     
    Stepan Kasal     
    Tadayoshi Okuma     
    Thomas Braun     
    Thomas E Dickey    
    Thorsten Glaser     
    Tim Larson     
    Timur Birsh     
    Tomas Vanhala     
    Ulf Harnhammar     
    Victor Schneider     
    Ville Herva     
    Vlad Harchev     
    Wayne Buttles     
    Wesley Morgan     
    nsh@horae.dti.ne.jp      

%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
%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