File wget.spec of Package wget

# spec file for package wget (Version 1.12)
# 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

Name:           wget
Version:        1.14
Release:        1.1
License:        GPLv3+
Summary:        A Tool for Mirroring FTP and HTTP Servers
Group:          Productivity/Networking/Web/Utilities
Source:         %name-%version.tar.gz
Patch0:         wgetrc.patch
# PATCH-FEATURE-UPSTREAM wget-libproxy.patch -- Add libproxy support to wget
Patch1:         wget-libproxy.patch
BuildRequires:  libpng-devel
%if %suse_version >= 1120
BuildRequires:  libproxy-devel
BuildRequires:  openssl-devel
BuildRequires:  pkg-config

BuildRequires:  libgpg-error-devel libgnutls-devel

PreReq:         %install_info_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Wget enables you to retrieve WWW documents or FTP files from a server.
This can be done in script files or via the command line.

%setup -q

%if %suse_version >= 1120
%patch1 -p1


make %{?_smp_mflags}

%find_lang %{name}

rm -rf %{buildroot};

%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files -f %{name}.lang
%doc doc/sample.wgetrc util/
%config(noreplace) %{_sysconfdir}/wgetrc

* Sun Aug 15 2010
- Update to version 1.12:
  + SECURITY FIX: It had been possible to trick Wget into accepting
    SSL certificates that don't match the host name, through the
    trick of embedding NUL characters into the certs' common name
  + Added support for CSS. This includes:
  - Parsing links from CSS files, and from CSS content found in
    HTML style tags and attributes.
  - Supporting conversion of links found within CSS content, when
  - -convert-links is specified.
  - Ensuring that CSS files end in the ".css" filename extension,
    when --convert-links is specified.
  + Added support for Internationalized Resource Identifiers
  + Wget now provides more sensible exit status codes when
    downloads don't proceed as expected
  + --default-page option (and associated wgetrc command) added to
    support alternative default names for index.html.
  + --ask-password option (and associated wgetrc command) added to
    support password prompts at the console.
  + The --input-file option now also handles retrieving links from
    an external file.
  + The output generated by the --version option now includes
    information on how it was built, and the set of configure-time
    options that were selected.
  + --html-extension has been renamed to --adjust-extension, to
    reflect the fact that it now also applies to CSS content
  + An "ascii" specifier is now accepted by --restrict-file-names,
    which forces the percent-encoding of all non-ASCII bytes
  + Several previously existing, but undocumented .wgetrc options
    are now documented.
- Drop upstream fixed wget-nullcerts.patch.
- Minor spec-cleanups using spec-cleaner
- Use smp_mflags
- Add libproxy-devel BuildRequires and enable libproxy support
  using wget-libproxy.patch.
- Add pkg-config BuildRequire to succeed with the bootstrap on
  openSUSE < 11.3.
* Wed Dec 16 2009
- Enable parallel building
* Tue Aug 11 2009
- Fix vulnerability against SSL certificates with a zero byte in
  the common name field (wget-nullcerts.patch, bnc#528298).
* Mon Sep  1 2008
- New version 1.11.4:
  * Fixed a problem in authenticating over HTTPS through a proxy.
    (Regression in 1.11 over 1.10.2.)
  * The combination of -r or -p with -O, which was disallowed in 1.11,
    has been downgraded to a warning in 1.11.2.
  * Further improvements to progress bar displays in non-English
    locales (too many spaces could be inserted, causing the display to
  * Successive invocations of Wget on FTP URLS, with
  - -no-remove-listing and --continue, was causing Wget to append,
    rather than replace, information in the .listing file, and thereby
    download the same files multiple times. Fixed in 1.11.2.
  * Wget 1.11 no longer allowed ".." to persist at the beginning of
    URLs, for improved conformance with RFC 3986. However, this
    behavior presents problems for some FTP setups, and so they are now
    preserved again, for FTP URLs only.
  * Downgraded -N with -O to a warning, rather than an error.
  * Fixed a crash on some systems, due to Wget casting a
    pointer-to-long to a pointer-to-time_t.
  * Fixed an issue (apparently a regression) where -O would refuse to
    download when -nc was given, even though the file didn't exist.
  * Fixed a situation where Wget could abort with --continue if the
    remote server gives a content-length of zero when the file exists
    locally with content.
* Wed Apr 30 2008
- Let the resolver (/etc/gai.conf) decide whether to prefer IPv4
  or IPv6 if a host has addresses of both kinds (bnc#310224).
- Passive FTP is the default now, so we don't need to set it
  explicitly anymore.
* Wed Apr 23 2008
- New version 1.11.1:
  * Migration to the GPLv3+ license.
  * Improvements to the HTTP password authentication code, bringing
    it a little closer to RFC compliance (more is needed).
  * Basic support for respecting filenames specified via
    `Content-Disposition' headers (turned on with --content-disposition,
    but please read the documentation).
  * An --ignore-case option to make wildcard- and suffix-matching
  * Progress bar now displays correctly in non-English locales (and a
    related assertion failure was fixed).
  * Added option --auth-no-challenge, to support broken pre-1.11
    authentication-before-server-challenge, which turns out to still
    be useful for some limited cases.
  * Documentation of accept/reject lists in the manual's "Types of
    Files" section now explains various aspects of their behavior that
    may be surprising, and notes that they may change in the future.
  * Documentation of --no-parents now explains how a trailing slash,
    or lack thereof, in the specified URL, will affect behavior.
- Purged lots of obsolete patches and cleaned up the spec file.
* Sun Feb 24 2008
- make use of find_lang macro
* Wed Mar 28 2007
- Fixes a null pointer dereference (#231063, CVE-2006-6719)
* Thu Jun 22 2006
- Removed the unneeded fix for CAN-2004-1487
  (bugs #179369 and #185214).
- Filter escape responses from the HTTP server (CAN-2004-1488,
  bug #185265).
* Wed Feb  1 2006
- Fixed (hacked) restart of interrupted FTP transactions (#144410).
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006
- Compile with -fstack-protector
* Fri Oct 14 2005
- Update to wget 1.10.2
* Mon Sep 19 2005
- Fix strict aliasing issues
* Tue Aug 30 2005
- Update to wget-1.10.1 which is a bugfix release [#113682]
* Mon Jun 13 2005
- Update to wget-1.10 which has LFS and non-experimental IPv6,
  among many other improvements and bugfixes
* Tue Apr 26 2005
- Fix the way fnmatch matches [#75791]
* Fri Apr  8 2005
- Add sanitizing URLs patch
- Add other patches
* Thu Mar 31 2005
- Don't double UTF-8 encode german messages [#74544]
* Fri Feb 11 2005
- Roll back to wget-1.9.1 since the wget tree with LFS support is
  too buggy. We rather want a functioning wget. [#47965]
* Mon Jan 31 2005
- texi2html changed behaviour, adapt filelist
* Thu Dec  2 2004
- Update to 20041113 wget-LFS snapshot
- Fix NULL pointer assertion [#48748]
* Mon Nov 15 2004
- Use another version of the fix below
* Sun Nov 14 2004
- Add fix for using proxies [#47965]
* Mon Oct 18 2004
- locale no should correctly be nb so rename po/no* to po/nb*
* Mon Sep 27 2004
- Use LFS patch from Leonid Petrov [#37967] [#45084]
* Mon Jun 28 2004
- Fix what appears to be a copy/paste error in the dual-family
  IPv4+IPv6 patch [#42503].
* Thu Apr  1 2004
- Enable download of files > 2 GB [#37967]
- Remove old crufty comments
* Fri Feb 20 2004
- Correctly set the charset for de.po to utf-8. Fixes #34708.
* Sun Feb  1 2004
- Update to 1.9.1 which is a bugfix release
* Sat Jan 10 2004
- build as user
* Tue Oct 28 2003
- Add patch for dual-family IPv4+IPv6 support from Ari Edelkind
* Mon Oct 27 2003
- Update to version 1.9 and remove patches, which was included
  upstream. 1.9 news:
  o specify what POST method be used for HTTP
  o IPv6 support is available, although it's still experimental
  o The `--timeout' option now also affects DNS lookup and
    establishing the TCP connection
  o Download speed shown by the progress bar is based on the data
    recently read, rather than the average speed of the entire
  o It is now possible to connect to FTP servers through FWTK
  o The new option `--retry-connrefused' makes Wget retry
    downloads even in the face of refused connections
  o The new option `--dns-cache=off' may be used to prevent Wget
    from caching DNS lookups
  o Wget no longer escapes characters in local file names based
    on whether they're appropriate in URLs
  o Handling of HTML comments has been dumbed down to conform to
    what users expect and other browsers do: instead of being
    treated as SGML declaration, a comment is terminated at the
    first occurrence of "-->"
  o Wget now correctly handles relative URIs that begin with "//"
  o Boolean options in `.wgetrc' and on the command line now
    accept values "yes" and "no" along with the traditional "on"
    and "off"
  o It is now possible to specify decimal values for timeouts,
    waiting periods, and download rate.
* Tue Jul 15 2003
- Add security fix to unconditionally terminate the filename
  in url.c(compose_file_name).
* Thu Apr 24 2003
- fix install_info --delete call and move from preun to postun
* Tue Apr  1 2003
- Define _GNU_SOURCE to fix missing declarations.
* Fri Mar  7 2003
- fix build with current autoconf
* Thu Mar  6 2003
- Add missing change log entry.
* Wed Mar  5 2003
- Add security fix that makes wget check for '..' and '/' in
  file names.
* Wed Feb 12 2003
- Remove ps and pdf documenation, info, man and html are enough.
  [Bug #23592]
* Tue Feb 11 2003
- Use %%install_info macro [#23468]
- Don't remove $RPM_BUILD_ROOT without checking it's not "/"
* Thu Oct 24 2002
- Change wgetrc to make wget use passive_ftp per default.
* Wed Aug  7 2002
- Update to 1.8.2 which is a bugfix release.
* Wed Jul 10 2002
- added patch for IPv6 support
* Tue May 14 2002
- replaced assert msecs>=0 by if (msecs<0) msecs=0. (stupid assert)
* Fri Feb  1 2002
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Mon Jan 14 2002
- marked wgetrc as noreplace, format is compatible to older versions
* Mon Jan  7 2002
- Upgrade to 1.8.1
* Thu Dec 13 2001
- Upgrade to 1.8
- Regenerate pdf_doc.diff
- Drop ppc specific patch as it's not needed anymore.
- Install all HTML pages and not only the table of contents.
- Pass DESTDIR on from the toplevel Makefile.
* Mon Aug 20 2001
- add wget-1.7.ppc.diff to fix segfault on ppc
* Fri Jun  8 2001
- Upgrade to 1.7.
- Add a target to doc/Makefile to build a PDF version of the
- Compile with SSL support (for HTTPS).
* Fri May 25 2001
- apply and enable IPv6 patch
- add Debian's manpage
* Thu May 10 2001
- bzip2 sources
* Fri Mar 30 2001
- Apply my patch accepted for wget 1.7 that replaces ctype.h
  with safe-ctype.h, a locale independent version of ctype.h
  taken from libiberty. This makes setting LC_CTYPE safe.
* Thu Mar  8 2001
- Build and install a printable manual (PDF).
* Thu Mar  1 2001
- Set LC_CTYPE along with LC_MESSAGES to correctly display
  messages in locales other then C/POSIX.
* Wed Feb 14 2001
- Fix large file support (#2647).
* Mon Jan 22 2001
- Update to version 1.6.
- wget.spec: Use proper rpm macros.
- Drop security patch (cf. 1999-02-09 and README.SuSE); not needed any
- Lost large file support (cf. README.SuSE); reopen #2647.
* Fri Jun  9 2000
- Change all values that count bytes from long to unsigned long (#2647).
* Sun Feb 20 2000
- General spec file cleanup:
- add group tag.
- use various macros (%%{version}, %%{_infodir}).
- ./configure -> %%build.
* Sat Oct  2 1999
- Add more PO files from
* Mon Sep 13 1999
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Feb  9 1999
- Security fix (proposed by marc).
* Sun Jan 17 1999
- apply patch (new de.po).
- fix BuildRoot.
* Thu Sep 24 1998
- Update: wget-1.5.3 (bug fix release).
* Fri Jun 26 1998
- Update: wget-1.5.2 (bug fix release).
- Make BuildRoot work.
* Tue May 12 1998
- update: wget-1.5.1 (bug fix release).
* Fri Apr 24 1998
- enable NLS.
* Thu Apr 23 1998
- update: wget-1.5.0.
* Sat Jun 21 1997 Karl Eichwalder  <>
  * patch from Hrvoje Niksic to prevent crashes if you are using
  proxy authorization.
* Mon May 19 1997 Karl Eichwalder  <>
  * new package: wget-1.4.5