2007-01-16 00:41:13 +01:00
|
|
|
#
|
2011-04-11 09:43:32 +02:00
|
|
|
# spec file for package wget
|
2007-01-16 00:41:13 +01:00
|
|
|
#
|
2017-02-18 13:04:58 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:41:13 +01:00
|
|
|
#
|
2008-09-06 04:15:41 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:41:13 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-21 21:33:22 +01:00
|
|
|
|
2014-06-08 09:36:42 +02:00
|
|
|
%bcond_with regression_tests
|
2007-01-16 00:41:13 +01:00
|
|
|
Name: wget
|
2017-02-18 13:04:58 +01:00
|
|
|
Version: 1.19.1
|
2011-12-02 20:08:36 +01:00
|
|
|
Release: 0
|
2010-10-07 22:16:36 +02:00
|
|
|
Summary: A Tool for Mirroring FTP and HTTP Servers
|
2012-03-21 21:33:22 +01:00
|
|
|
License: GPL-3.0+
|
2011-04-09 22:21:44 +02:00
|
|
|
Group: Productivity/Networking/Web/Utilities
|
2014-01-20 11:14:11 +01:00
|
|
|
Url: https://www.gnu.org/software/wget/
|
2015-11-18 13:56:06 +01:00
|
|
|
Source: https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz.sig
|
2014-01-20 11:14:11 +01:00
|
|
|
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=wget&download=1#/wget.keyring
|
2011-04-09 22:21:44 +02:00
|
|
|
Patch0: wgetrc.patch
|
|
|
|
Patch1: wget-libproxy.patch
|
2013-05-03 10:34:44 +02:00
|
|
|
Patch6: wget-1.14-no-ssl-comp.patch
|
2013-06-26 10:48:34 +02:00
|
|
|
# PATCH-FIX-OPENSUSE fix pod syntax for perl 5.18 coolo@suse.de
|
|
|
|
Patch7: wget-fix-pod-syntax.diff
|
2016-07-29 10:22:59 +02:00
|
|
|
Patch8: wget-errno-clobber.patch
|
2017-03-07 14:37:41 +01:00
|
|
|
Patch9: wget-CVE-2017-6508.patch
|
2017-09-14 10:04:20 +02:00
|
|
|
Patch10: wget-416-but-file-not-complete.patch
|
2011-12-02 20:08:36 +01:00
|
|
|
BuildRequires: automake
|
2016-06-10 12:59:50 +02:00
|
|
|
BuildRequires: gpgme-devel >= 0.4.2
|
|
|
|
BuildRequires: libcares-devel
|
2017-02-04 21:33:25 +01:00
|
|
|
BuildRequires: libidn2-devel
|
2015-11-18 13:56:06 +01:00
|
|
|
BuildRequires: libpng-devel
|
2013-05-02 14:30:58 +02:00
|
|
|
BuildRequires: makeinfo
|
2012-03-21 21:33:22 +01:00
|
|
|
BuildRequires: openssl-devel
|
2015-11-18 13:56:06 +01:00
|
|
|
BuildRequires: pkg-config >= 0.9.0
|
|
|
|
BuildRequires: xz
|
|
|
|
# FIXME: use proper Requires(pre/post/preun/...)
|
|
|
|
PreReq: %{install_info_prereq}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if %{?suse_version} > 1110
|
2016-06-10 12:59:50 +02:00
|
|
|
BuildRequires: pkg-config
|
2015-11-18 13:56:06 +01:00
|
|
|
BuildRequires: pkgconfig(libmetalink)
|
|
|
|
BuildRequires: pkgconfig(libpcre)
|
|
|
|
BuildRequires: pkgconfig(libpsl)
|
|
|
|
BuildRequires: pkgconfig(uuid)
|
|
|
|
%else
|
|
|
|
BuildRequires: libmetalink-devel
|
|
|
|
BuildRequires: libpsl-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildRequires: libproxy-devel
|
|
|
|
%endif
|
2014-10-30 06:38:34 +01:00
|
|
|
%if %{with regression_tests}
|
2014-01-23 22:22:02 +01:00
|
|
|
# For the Testsuite
|
|
|
|
BuildRequires: perl-HTTP-Daemon
|
|
|
|
BuildRequires: perl-IO-Socket-SSL
|
2014-10-30 06:38:34 +01:00
|
|
|
%endif
|
2007-01-16 00:41:13 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-04-09 22:21:44 +02:00
|
|
|
%patch0
|
2015-11-18 13:56:06 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2014-10-30 06:38:34 +01:00
|
|
|
%patch1 -p1
|
2011-10-19 12:56:00 +02:00
|
|
|
%endif
|
2012-11-12 05:54:16 +01:00
|
|
|
%patch6
|
2013-06-26 10:48:34 +02:00
|
|
|
%patch7 -p1
|
2016-07-29 10:22:59 +02:00
|
|
|
%patch8 -p1
|
2017-03-07 14:37:41 +01:00
|
|
|
%patch9 -p1
|
2017-09-14 10:04:20 +02:00
|
|
|
%patch10 -p1
|
2007-01-16 00:41:13 +01:00
|
|
|
|
|
|
|
%build
|
2015-11-18 13:56:06 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2011-10-19 12:56:00 +02:00
|
|
|
# only wget-libproxy.patch needs this
|
2011-10-19 11:57:52 +02:00
|
|
|
autoreconf --force
|
2011-10-19 12:56:00 +02:00
|
|
|
%endif
|
2015-11-18 13:56:06 +01:00
|
|
|
%configure \
|
|
|
|
--with-ssl=openssl \
|
2016-06-10 12:59:50 +02:00
|
|
|
--with-cares \
|
2015-11-18 13:56:06 +01:00
|
|
|
--with-metalink
|
2011-04-09 22:21:44 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:41:13 +01:00
|
|
|
|
2014-01-23 22:22:02 +01:00
|
|
|
%check
|
2014-06-08 09:36:42 +02:00
|
|
|
%if %{with regression_tests}
|
2015-11-18 13:56:06 +01:00
|
|
|
make %{?_smp_mflags} -C tests/ check
|
2014-06-08 09:36:42 +02:00
|
|
|
%endif
|
2014-01-23 22:22:02 +01:00
|
|
|
|
2007-01-16 00:41:13 +01:00
|
|
|
%install
|
2016-06-10 12:59:50 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2008-02-25 17:47:53 +01:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:41:13 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2008-02-25 17:47:53 +01:00
|
|
|
%files -f %{name}.lang
|
2007-01-16 00:41:13 +01:00
|
|
|
%defattr(-,root,root)
|
2011-04-09 22:21:44 +02:00
|
|
|
%doc AUTHORS COPYING NEWS README MAILING-LIST
|
2007-01-16 00:41:13 +01:00
|
|
|
%doc doc/sample.wgetrc util/rmold.pl
|
2008-02-25 17:47:53 +01:00
|
|
|
%{_mandir}/*/wget*
|
|
|
|
%{_infodir}/wget*
|
2007-01-16 00:41:13 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/wgetrc
|
|
|
|
%{_bindir}/*
|
|
|
|
|
2007-03-29 01:01:25 +02:00
|
|
|
%changelog
|