Summary: A utility for retrieving files using the HTTP or FTP protocols. Name: wget %define version 1.9 Version: %{version} Release: 1 Copyright: GPL Group: Applications/Internet URL: http://www.gnu.org/software/wget Source: ftp://www.gnu.org/gnu/wget/wget-%{version}.tar.gz Patch: %{name}-portability.patch Provides: webclient Prereq: /sbin/install-info BuildRoot: /var/tmp/%{name}-root %define DEFCC cc %description GNU Wget is a file retrieval utility which can use either the HTTP or FTP protocols. Wget features include the ability to work in the background while you're logged out, recursive retrieval of directories, file name wildcard matching, remote file timestamp storage and comparison, use of Rest with FTP servers and Range with HTTP servers to retrieve files over slow or unstable connections, support for Proxy servers, and configurability. Install wget if you need to retrieve large numbers of files with HTTP or FTP, or if you need a utility for mirroring web sites or FTP directories. %prep %setup -q %patch -p0 %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi export CFLAGS="$RPM_OPT_FLAGS -D_LARGE_FILES" ./configure --prefix=%{_prefix} --sysconfdir=/etc make %install rm -rf $RPM_BUILD_ROOT make install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT/etc gzip $RPM_BUILD_ROOT%{_prefix}/info/* /usr/bin/strip $RPM_BUILD_ROOT%{_prefix}/bin/* || : (cd $RPM_BUILD_ROOT mkdir -p usr/bin cd usr/bin ln -sf ../..%{_prefix}/bin/* . cd - ) %post /sbin/install-info %{_prefix}/info/wget.info.gz %{_prefix}/info/dir %preun if [ "$1" = 0 ]; then /sbin/install-info --delete %{_prefix}/info/wget.info.gz %{_prefix}/info/dir fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS COPYING MAILING-LIST NEWS README INSTALL PATCHES TODO %config /etc/wgetrc %{_prefix}/bin/wget /usr/bin/wget %{_prefix}/info/* %{_prefix}/share/locale/*/LC_MESSAGES/* %changelog * Tue Nov 25 2003 David Clissold 1.9-1 - Version 1.9; add patch so it builds with vac compiler * Mon Jan 28 2002 David Clissold - Version 1.8.1 * Tue Nov 27 2001 David Clissold - Version 1.7.1 * Thu Jul 05 2001 Marc Stephenson - Version 1.7 * Tue Apr 03 2001 David Clissold - Build with -D_LARGE_FILES enabled (for >2BG files) * Thu Feb 3 2000 Bill Nottingham - handle compressed man pages * Thu Aug 26 1999 Jeff Johnson - don't permit chmod 777 on symlinks (#4725). * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) * Fri Dec 18 1998 Bill Nottingham - build for 6.0 tree - add Provides * Sat Oct 10 1998 Cristian Gafton - strip binaries - version 1.5.3 * Sat Jun 27 1998 Jeff Johnson - updated to 1.5.2 * Thu Apr 30 1998 Cristian Gafton - modified group to Applications/Networking * Wed Apr 22 1998 Cristian Gafton - upgraded to 1.5.0 - they removed the man page from the distribution (Duh!) and I added it back from 1.4.5. Hey, removing the man page is DUMB! * Fri Nov 14 1997 Cristian Gafton - first build against glibc