added ca-certificates setting to wgetrc and configure options from Fedora to fix SSL support [release 1.21.2-2mamba;Sun Nov 28 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 19:14:29 +01:00
parent ce55e4fde5
commit 02785afade

View File

@ -2,7 +2,7 @@
Name: wget
Version: 1.21.2
Release: 1mamba
Release: 2mamba
Epoch: 1
Summary: A utility for retrieving files using the HTTP or FTP protocols
Group: Applications/Networking
@ -34,6 +34,7 @@ BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: gettext-devel
Requires(post):%{__install_info}
Requires: ca-certificates
%description
GNU Wget is a file retrieval utility which can use either the HTTP or FTP protocols.
@ -43,22 +44,25 @@ Wget features include the ability to work in the background while you're logged
%prep
%setup -q
#%patch0 -p1 -b .msec
#%patch1 -p1 -b .passive_ftp.patch
#%patch2 -p1 -b .etc
#%patch3 -p1 -b .logstdout
#%patch4 -p1 -b .can-2004-1487_1488
#%patch5 -p1 -b .ctype
#%patch6 -p1 -b .cve-2006-6719
#%patch7 -p0
cat >> doc/sample.wgetrc <<EOF
# default root certs location
ca_certificate=/etc/ssl/certs/ca-certificates.crt
EOF
%build
autoreconf
%if %with_ssl
%configure --with-ssl
%else
%configure
%endif
%configure \
--with-ssl=gnutls \
--with-libpsl \
--enable-largefile \
--enable-opie \
--enable-digest \
--enable-ntlm \
--enable-nls \
--enable-ipv6 \
--disable-rpath \
--with-metalink \
--disable-year2038
%make
@ -81,15 +85,16 @@ exit 0
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/wget
#%{_bindir}/rmold
%config(noreplace) %{_sysconfdir}/wgetrc
%{_bindir}/wget
%{_mandir}/man1/*
%{_infodir}/%{name}.info.*
%doc AUTHORS COPYING
#MAILING-LIST NEWS README
%changelog
* Sun Nov 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.2-2mamba
- added ca-certificates setting to wgetrc and configure options from Fedora to fix SSL support
* Wed Sep 08 2021 Automatic Build System <autodist@mambasoft.it> 1.21.2-1mamba
- automatic version update by autodist