Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37525211
en ru br
ALT Linux repositórios
S:2.8.9-alt1.pre.1.1
5.0: 2.8.6-alt7.rel.2
4.1: 2.8.6-alt3.rel.2
4.0: 2.8.6-alt2.rel.2.1
3.0: 2.8.5-alt4.dev.16.1

Group :: Rede/WWW
RPM: lynx

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define ver 2.8.5
%define subver dev.16
%define bver 2-8-5

Name: lynx
Version: %ver
Release: alt4.%subver.1

Summary: Text based browser for the world wide web
License: GPL
Url: http://lynx.browser.org
Group: Networking/WWW

Source0: http://sol.slcc.edu/lynx/current/%name%{ver}%{subver}.tar.bz2
Source1: %name.wmconfig

Source100: lynx-16.xpm
Source101: lynx-32.xpm
Source102: lynx-48.xpm

Patch0: %name-pld.patch.bz2
Patch1: lynx2-8-5-alt-cfg.patch
Patch2: lynx-tmpdir.patch.bz2
Patch3: lynx2-8-4-fix-ugly-color.patch.bz2
Patch4: lynx-284-ipv6-salen.patch.bz2
Patch5: lynx2-8-5-alt-i18n.patch

Provides: webclient, lynx-ssl = %version
Obsoletes: lynx-ssl

# Automatically added by buildreq on Wed Apr 03 2002

BuildRequires: lclint libncurses-devel libssl ncompress openssl-devel postfix sharutils telnet unzip zip zlib-devel

%description
This a terminal based WWW browser. While it does not make any attempt
at displaying graphics, it has good support for HTML text formatting,
forms, and tables.

This version includes support for SSL encryption.

WARNING: In some countries, it is illegal to export this package. In some
countries, it may even be illegal to use it.

%prep
%setup  -q -n %name%bver
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
#%__subst "s|\\$\\(SSL_DIR\\)/include|/usr/include/openssl|" makefile.in
CFLAGS="$RPM_OPT_FLAGS -w -DUSE_SSL -D_USE_PLD -U_GNU_SOURCE " LDFLAGS=-s \
#don't use configure macros
./configure \
--libdir=/etc \
--enable-warnings \
--enable-color-style \
--enable-default-colors \
--enable-externs \
--enable-internal-links \
--enable-nsl-fork \
--enable-persistent-cookies \
--enable-cgi-links \
--enable-nls \
--enable-charset-choice\
--enable-ipv6 \
--enable-nested-tables\
--enable-prettysrc \
--enable-source-cache \
--enable-libjs \
--enable-scrollbar \
--enable-read-eta \
--enable-file-upload \
--enable-addrlist-page \
--enable-justify-elts \
--with-ssl \
--with-zlib $SOCKS5 \
--with-screen=ncurses

# removed --enable-exec-links --enable-exec-scripts,

# it goes together with LOCAL_EXECUTION_LINKS_* in lynx.cfg


# (cf INSTALLATION file for more about the options)

# --with-included-gettext  is the default
# --enable-kbd-layout not useful enough
# --enable-cjk not needed for CJK and may go away in a future release


%make_build

%install
install -d $RPM_BUILD_ROOT/etc/X11/wmconfig
install -d $RPM_BUILD_ROOT%_datadir/lynx/{lynx_help/keystrokes,test}

%makeinstall libdir=$RPM_BUILD_ROOT/etc mandir=$RPM_BUILD_ROOT/%_mandir/man1

for i in `find lynx_help test -type f `; do
install $i $RPM_BUILD_ROOT%_datadir/lynx/$i
done

install %SOURCE1 $RPM_BUILD_ROOT/etc/X11/wmconfig/lynx
install -m644 samples/lynx.lss $RPM_BUILD_ROOT/etc/

bzip2 -9f docs/* README lynx.hlp||true

mkdir -p $RPM_BUILD_ROOT{%_menudir,%_miconsdir,%_liconsdir}
cat << EOF >$RPM_BUILD_ROOT%_menudir/%name
?package(%name):  \
command="/usr/bin/lynx" \
 needs="text" \
 icon="lynx.xpm" \
 section="Networking/WWW" \
 title="Lynx" \
  longtitle="A text browser"
EOF

perl -pi -e "s!PATH_TO/lynx_help/!"%_datadir"/lynx/lynx_help/!g" $RPM_BUILD_ROOT/etc/lynx.cfg

install -m 644 %SOURCE100 %buildroot/%_miconsdir/lynx.xpm
install -m 644 %SOURCE101 %buildroot/%_iconsdir/lynx.xpm
install -m 644 %SOURCE101 %buildroot/%_liconsdir/lynx.xpm

%find_lang %name

%post
%update_menus

%postun
%clean_menus

%files -f %name.lang
%doc docs README.bz2 lynx.hlp.bz2

%config(noreplace) %verify(not size mtime md5) /etc/lynx.cfg
%config(noreplace) %verify(not size mtime md5) /etc/lynx.lss

%_bindir/*
%_mandir/man?/*
%_menudir/%name
%_iconsdir/%name.xpm
%_liconsdir/%name.xpm
%_miconsdir/%name.xpm
%_datadir/%name

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009