wget/wget.spec
2019-09-30 11:19:50 -04:00

83 lines
3.0 KiB
RPMSpec

Name: wget
Version: 1.19.5
Release: 6
Summary: A package for retrieving files using HTTP, HTTPS, FTP and FTPS the most widely-used Internet protocols.
License: GPLv3+
Url: http://www.gnu.org/software/wget/
Source: ftp://ftp.gnu.org/gnu/wget/wget-%{version}.tar.gz
#patches from fedora/redhat
Patch0001: wget-1.17-path.patch
Patch0002: wget-1.19.5-no-log-when-quiet.patch
#patches backport from upstream community
Patch6000: src-hsts.c-open_hsts_test_store-Fix-unlink-NULL.patch
Patch6001: src-utils.ci-file_exists_p-Fix-stat-NULL.patch
Patch6002: Save-original-data-to-WARC-file.patch
Patch6003: src-ftp.c-getftp-Fix-RESOURCE-LEAK-found-by-Coverity.patch
Patch6004: src-http.c-check_auth-Fix-RESOURCE-LEAK-found-by-Cov.patch
Patch6005: src-http.c-http_loop-Fix-RESOURCE-LEAK-found-by-Cove.patch
Patch6006: src-utils.c-open_stat-Fix-RESOURCE-LEAK-found-by-Cov.patch
Patch6007: src-warc.c-warc_write_start_record-Fix-potential-RES.patch
Patch6008: src-warc.c-warc_write_cdx_record-Fix-RESOURCE-LEAK-f.patch
Patch6009: src-convert.c-convert_links-Fix-code-to-avoid-false-.patch
Patch6010: src-http.c-resp_new-Fix-code-to-avoid-false-positive.patch
Patch6011: src-convert.c-convert_links-Fix-fallthrough.patch
Patch6012: src-host.c-sufmatch-Fix-dot-prefixed-domain-matching.patch
Patch6013: Revert-Bail-out-on-unexpected-416-server-errors.patch
Patch6014: src-gnutls.c-ssl_connect_wget-Fix-call-to-gnutls_set.patch
Patch6015: Fix-corner-case-in-processing-server-response.patch
Patch6016: CVE-2018-20483-Don-t-use-extended-attributes-xattr-by-default.patch
Patch6017: CVE-2018-20483-Don-t-save-user-pw-with-xattr.patch
Patch6018: CVE-2019-5953.patch
Provides: webclient bundled(gnulib)
BuildRequires: perl-HTTP-Daemon python3 libuuid-devel perl-podlators libpsl-devel libmetalink-devel
BuildRequires: gnutls-devel pkgconfig texinfo gettext autoconf libidn2-devel gpgme-devel zlib-devel
%description
GNU Wget is a free software package for retrieving files using HTTP, HTTPS,
FTP and FTPS the most widely-used Internet protocols. It is a non-interactive
commandline tool, so it may easily be called from scripts, cron jobs, terminals
without X-Windows support, etc.
%package help
Summary: help package for %{name}
%description help
This is the help package for %{name}. It includes some doc
files and man, info files.
%prep
%autosetup -p1
%build
%configure --with-ssl=gnutls --with-libpsl --enable-largefile --enable-opie --enable-digest --enable-ntlm --enable-nls --enable-ipv6 --disable-rpath --with-metalink
%make_build
%install
%make_install CFLAGS="$RPM_OPT_FLAGS"
%find_lang %{name}
rm -f %{buildroot}%{_infodir}/dir
%check
make check
%files -f %{name}.lang
%doc AUTHORS COPYING
%config(noreplace) %{_sysconfdir}/wgetrc
%{_bindir}/wget
%files help
%doc MAILING-LIST NEWS README doc/sample.wgetrc
%{_mandir}/man1/wget.*
%{_infodir}/*
%changelog
* Sat Sep 14 2019 huzhiyu<huzhiyu1@huawei.com> - 1.19.5-6
- Package init