Group :: Rede/WWW
RPM: links2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_with x
%def_with directfb
%def_without svgalib
Name: links2
Version: 2.2
Release: alt2.1
Summary: Lynx-like text and graphics WWW browser
License: GPL
Group: Networking/WWW
Url: http://links.twibright.com/
Source: %url/download/links-%version.tar.bz2
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
%if_with directfb
BuildPreReq: libdirectfb-devel
%endif
%if_with svgalib
BuildPreReq: svgalib-devel
%endif
%if_with x
BuildPreReq: libXt-devel
%endif
BuildPreReq: libgpm-devel libjpeg-devel libpng-devel libpcre-devel
BuildPreReq: libssl-devel libtiff-devel bzlib-devel zlib-devel pkg-config
# alternatives
%set_compress_method gzip
%define weight 20
PreReq: alternatives >= 0.2.0
BuildPreReq: alternatives >= 0.2.0
Provides: webclient, links
Provides: %_bindir/links
Obsoletes: links
%description
Links is a graphics and text mode web browser, released under GPL.
Links runs in graphics mode (mouse required) on X Window System (UN*X,
Cygwin), SVGAlib, Linux Framebuffer, OS/2 PMShell, AtheOS GUI.
Links runs in text mode (mouse optional) on UN*X console, ssh/telnet
virtual terminal, vt100 terminal, xterm, and virtually any other text
terminal. Mouse is supported for GPM, xterm, and OS/2. Links supports
colors on terminal.
%prep
%setup -n links-%version
%build
%add_optflags -Wno-pointer-sign -fno-strict-aliasing
%configure \
--enable-javascript \
--enable-graphics \
%{subst_with x} \
%{subst_with directfb} \
%{subst_with svgalib} \
--enable-debuglevel=0
%make_build
%install
%makeinstall
mv %buildroot%_bindir/links %buildroot%_bindir/links-%version
ln -s links-%version %buildroot%_bindir/%name
mv %buildroot%_man1dir/links.1 %buildroot%_man1dir/%name.1
install -pD -m644 links_16x16_1.xpm %buildroot%_miconsdir/%name.xpm
install -pD -m644 links_32x32.xpm %buildroot%_iconsdir/%name.xpm
install -pD -m644 graphics/links.xpm %buildroot%_liconsdir/%name.xpm
mkdir -p %buildroot%_altdir
cat <<__EOF__ >%buildroot%_altdir/%name
%_bindir/links %_bindir/%name %weight
%_man1dir/links.1.gz %_man1dir/%name.1.gz %_bindir/%name
__EOF__
mkdir -p %buildroot%_desktopdir
cat <<__EOF__ >%buildroot%_desktopdir/%name.desktop
[Desktop Entry]
Type=Application
Name=Links 2
Exec=xlinks2
Terminal=false
Categories=Network;WebBrowser;
Comment=Web browser running in both graphics and text mode
__EOF__
cat <<__EOF__ >%buildroot%_bindir/x%name
#!/bin/sh
exec links2 -g "$ at "
__EOF__
chmod +x %buildroot%_bindir/x%name
%files
%_altdir/%name
%_bindir/%name
%_bindir/x%name
%_bindir/links-%version
%_desktopdir/%name.desktop
%_miconsdir/%name.xpm
%_iconsdir/%name.xpm
%_liconsdir/%name.xpm
%_man1dir/*
%doc doc/
%doc AUTHORS BRAILLE_HOWTO BUGS ChangeLog INSTALL KEYS NEWS
%doc PATCH-gpm-1.20.0-smooth-cursor PATCH-libpng-1.2.18
%doc README SITES TODO mailcap.pl
%changelog
…
Todas as alterações você pod ver aqui
%def_with directfb
%def_without svgalib
Name: links2
Version: 2.2
Release: alt2.1
Summary: Lynx-like text and graphics WWW browser
License: GPL
Group: Networking/WWW
Url: http://links.twibright.com/
Source: %url/download/links-%version.tar.bz2
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
%if_with directfb
BuildPreReq: libdirectfb-devel
%endif
%if_with svgalib
BuildPreReq: svgalib-devel
%endif
%if_with x
BuildPreReq: libXt-devel
%endif
BuildPreReq: libgpm-devel libjpeg-devel libpng-devel libpcre-devel
BuildPreReq: libssl-devel libtiff-devel bzlib-devel zlib-devel pkg-config
# alternatives
%set_compress_method gzip
%define weight 20
PreReq: alternatives >= 0.2.0
BuildPreReq: alternatives >= 0.2.0
Provides: webclient, links
Provides: %_bindir/links
Obsoletes: links
%description
Links is a graphics and text mode web browser, released under GPL.
Links runs in graphics mode (mouse required) on X Window System (UN*X,
Cygwin), SVGAlib, Linux Framebuffer, OS/2 PMShell, AtheOS GUI.
Links runs in text mode (mouse optional) on UN*X console, ssh/telnet
virtual terminal, vt100 terminal, xterm, and virtually any other text
terminal. Mouse is supported for GPM, xterm, and OS/2. Links supports
colors on terminal.
%prep
%setup -n links-%version
%build
%add_optflags -Wno-pointer-sign -fno-strict-aliasing
%configure \
--enable-javascript \
--enable-graphics \
%{subst_with x} \
%{subst_with directfb} \
%{subst_with svgalib} \
--enable-debuglevel=0
%make_build
%install
%makeinstall
mv %buildroot%_bindir/links %buildroot%_bindir/links-%version
ln -s links-%version %buildroot%_bindir/%name
mv %buildroot%_man1dir/links.1 %buildroot%_man1dir/%name.1
install -pD -m644 links_16x16_1.xpm %buildroot%_miconsdir/%name.xpm
install -pD -m644 links_32x32.xpm %buildroot%_iconsdir/%name.xpm
install -pD -m644 graphics/links.xpm %buildroot%_liconsdir/%name.xpm
mkdir -p %buildroot%_altdir
cat <<__EOF__ >%buildroot%_altdir/%name
%_bindir/links %_bindir/%name %weight
%_man1dir/links.1.gz %_man1dir/%name.1.gz %_bindir/%name
__EOF__
mkdir -p %buildroot%_desktopdir
cat <<__EOF__ >%buildroot%_desktopdir/%name.desktop
[Desktop Entry]
Type=Application
Name=Links 2
Exec=xlinks2
Terminal=false
Categories=Network;WebBrowser;
Comment=Web browser running in both graphics and text mode
__EOF__
cat <<__EOF__ >%buildroot%_bindir/x%name
#!/bin/sh
exec links2 -g "$ at "
__EOF__
chmod +x %buildroot%_bindir/x%name
%files
%_altdir/%name
%_bindir/%name
%_bindir/x%name
%_bindir/links-%version
%_desktopdir/%name.desktop
%_miconsdir/%name.xpm
%_iconsdir/%name.xpm
%_liconsdir/%name.xpm
%_man1dir/*
%doc doc/
%doc AUTHORS BRAILLE_HOWTO BUGS ChangeLog INSTALL KEYS NEWS
%doc PATCH-gpm-1.20.0-smooth-cursor PATCH-libpng-1.2.18
%doc README SITES TODO mailcap.pl
%changelog
…
Todas as alterações você pod ver aqui