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
|
|
|
#
|
2021-01-07 14:43:06 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2020-03-12 16:56:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:41:13 +01:00
|
|
|
#
|
|
|
|
|
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
|
2021-01-07 14:43:06 +01:00
|
|
|
Version: 1.21
|
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
|
2018-12-28 21:53:28 +01:00
|
|
|
License: GPL-3.0-or-later
|
2011-04-09 22:21:44 +02:00
|
|
|
Group: Productivity/Networking/Web/Utilities
|
2020-03-12 16:56:21 +01:00
|
|
|
URL: https://www.gnu.org/software/wget/
|
2018-02-17 22:26:28 +01:00
|
|
|
Source: https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.gz.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
|
2020-03-12 16:56:21 +01:00
|
|
|
Patch9: remove-env-from-shebang.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
|
2018-01-22 17:24:29 +01:00
|
|
|
BuildRequires: pkgconfig >= 0.9.0
|
2015-11-18 13:56:06 +01:00
|
|
|
%if %{?suse_version} > 1110
|
2018-01-22 17:24:29 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-11-18 13:56:06 +01:00
|
|
|
BuildRequires: pkgconfig(libmetalink)
|
2019-01-14 08:53:36 +01:00
|
|
|
BuildRequires: pkgconfig(libpcre2-8)
|
2015-11-18 13:56:06 +01:00
|
|
|
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.
|
|
|
|
|
2020-03-12 16:56:21 +01:00
|
|
|
%lang_package
|
|
|
|
|
2007-01-16 00:41:13 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-12-01 17:33:46 +01:00
|
|
|
%patch0 -p1
|
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
|
2020-03-12 16:56:21 +01:00
|
|
|
%patch9 -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
|
2020-03-12 16:56:21 +01:00
|
|
|
%make_build
|
|
|
|
sed -i 's/\/usr\/bin\/env perl -w/\/usr\/bin\/perl -w/' util/rmold.pl
|
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}
|
2020-03-12 16:56:21 +01:00
|
|
|
%make_build -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
|
2018-01-22 17:24:29 +01:00
|
|
|
%make_install
|
2021-01-07 14:43:06 +01:00
|
|
|
%find_lang %{name} --all-name %{?no_lang_C}
|
2007-01-16 00:41:13 +01:00
|
|
|
|
2021-01-07 14:43:06 +01:00
|
|
|
%files
|
2018-12-28 21:53:28 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS 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}/*
|
|
|
|
|
2020-03-12 16:56:21 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-03-29 01:01:25 +02:00
|
|
|
%changelog
|