Name: wget Summary: A utility for retrieving files using the HTTP or FTP protocols Version: 1.12 Release: 1 Group: Applications/Internet License: GPLv3+ URL: http://wget.sunsite.dk/ Source0: ftp://ftp.gnu.org/gnu/wget/wget-%{version}.tar.bz2 Patch0: wget-1.12-path.patch Patch1: wget-1.10.1-helpfix.patch Patch2: wget-1.12-CVE-2010-2252.patch BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig BuildRequires: texinfo BuildRequires: gettext BuildRequires: autoconf Provides: webclient %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 are 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. %prep %setup -q -n %{name}-%{version} # wget-1.12-path.patch %patch0 -p1 # wget-1.10.1-helpfix.patch %patch1 -p1 # wget-1.12-CVE-2010-2252.patch %patch2 -p1 %build if pkg-config openssl ; then CPPFLAGS=`pkg-config --cflags openssl`; export CPPFLAGS LDFLAGS=`pkg-config --libs openssl`; export LDFLAGS fi %configure --disable-static \ --with-ssl \ --enable-largefile \ --enable-opie \ --enable-digest \ --enable-ntlm \ --enable-nls \ --enable-ipv6 \ --disable-rpath make %{?jobs:-j%jobs} %install %make_install rm -rf %{buildroot}/%{_infodir} %find_lang wget %lang_package %files %doc doc/sample.wgetrc %doc %{_mandir}/man1/wget.* %config(noreplace) %{_sysconfdir}/wgetrc %{_bindir}/wget