File wget2.spec of Package wget2
#
# spec file for package wget2
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
%define lname libwget
%define _ver 0
Name: wget2
Version: 1.99.2
Release: 0
Summary: A Tool for Mirroring FTP and HTTP Servers
License: GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Productivity/Networking/Web/Utilities
URL: https://www.gnu.org/software/wget/
Source0: https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.lz
Source1: https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.lz.sig
Source2: %{name}.keyring
BuildRequires: doxygen
BuildRequires: flex
BuildRequires: gettext-devel >= 0.19.3
BuildRequires: git
BuildRequires: graphviz
BuildRequires: libgpgme-devel
BuildRequires: libtool >= 2.2
BuildRequires: libunistring-devel
BuildRequires: lzip
BuildRequires: makeinfo
BuildRequires: pandoc
BuildRequires: pkgconfig
BuildRequires: python-base
#uildRequires: valgrind
BuildRequires: wget
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(libidn2)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libmicrohttpd)
BuildRequires: pkgconfig(libnghttp2)
BuildRequires: pkgconfig(libpcre2-8)
BuildRequires: pkgconfig(libpsl)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(nettle)
BuildRequires: pkgconfig(zlib)
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(libbrotlidec)
%endif
%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.
In many cases Wget2 downloads much faster than Wget1.x due to HTTP
zlib compression, parallel connections and use of If-Modified-Since
HTTP header. HTTP/2 has been implemented. Wget2 also consumes less
system and user CPU cycles than Wget1.x.
%package -n %{lname}%{_ver}
Summary: A library to download and mirror FTP/HTTP sites
License: LGPL-3.0-or-later
Group: System/Libraries
%description -n %{lname}%{_ver}
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.
libwget which provides an interface to many useful functions used by
Wget2.
%package -n %{lname}-devel
Summary: Development files for libwget
License: LGPL-3.0-or-later
Group: Development/Libraries/C and C++
Requires: %{lname}%{_ver} = %{version}
%description -n %{lname}-devel
libwget which provides an interface to many useful functions used by
Wget2.
This subpackage contains the header files for application wanting
to build against libwget.
%lang_package
%prep
%autosetup
%build
#./bootstrap --skip-po --no-git --gnulib-srcdir="$PWD/gnulib"
%configure \
--disable-static \
# --enable-valgrind-tests
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check
%install
%make_install
rm -fv %{buildroot}%{_bindir}/*_noinstall
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%post -n %{lname}%{_ver} -p /sbin/ldconfig
%postun -n %{lname}%{_ver} -p /sbin/ldconfig
%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files -n %{lname}%{_ver}
%license COPYING.LESSER
%{_libdir}/%{lname}.so.*
%files -n %{lname}-devel
%{_includedir}/wget*.h
%{_libdir}/%{lname}.so
%{_libdir}/pkgconfig/%{lname}.pc
%{_mandir}/man3/%{lname}-*.3%{?ext_man}
%changelog