Name: wget2 Version: 1.99.2 Release: 1%{?dist} Summary: GNU Wget2 is the successor of GNU Wget, a file and recursive website downloader License: LGPLv3 URL: https://gitlab.com/gnuwget/wget2 Source0: https://ftp.gnu.org/gnu/wget/%{name}-1.99.2.tar.gz Provides: libtool Provides: wget2-debugsource = 1.99.2-1 Provides: wget2-debuginfo = 1.99.2-1 BuildRequires: autoconf BuildRequires: autogen BuildRequires: automake BuildRequires: libtool BuildRequires: python BuildRequires: rsync BuildRequires: tar BuildRequires: texinfo BuildRequires: pkg-config >= 0.28 # Documentation build requirements BuildRequires: doxygen BuildRequires: pandoc BuildRequires: gettext >= 0.18.2 BuildRequires: glibc-devel BuildRequires: zlib-devel >= 1.2.3 BuildRequires: gnutls-devel BuildRequires: libidn2-devel >= 0.14 BuildRequires: flex-devel >= 2.5.35 BuildRequires: libpsl-devel >= 0.5.0 # Optional # HTTP/2 support BuildRequires: libnghttp2-devel >= 1.3.0 # run the test suite BuildRequires: libmicrohttpd-devel >= 0.9.51 # build distribution tarballs BuildRequires: lzip # coverage reports BuildRequires: lcov # automatic signature verification) BuildRequires: gpgme-devel >= 0.4.2 # filtering by PCRE regex BuildRequires: pcre-devel # HTTP zstd decompression) BuildRequires: libzstd-devel >= 1.3.0 %description GNU Wget2 is the successor of GNU Wget, a file and recursive website downloader. Designed and written from scratch it wraps around libwget, that provides the basic functions needed by a web client. Wget2 works multi-threaded and uses many features to allow fast operation. In many cases Wget2 downloads much faster than Wget1.x due to HTTP2, HTTP compression, parallel connections and use of If-Modified-Since HTTP header. %package devel Summary: Libraries and header files needed for wget2 development Requires: %{name} = %{version} %description devel Development libraries and headers needed for GNU Wget2. %package static Summary: Static libraries needed for wget2 development Requires: %{name} = %{version} Requires: %{name}-devel = %{version} %description static Static libraries needed for GNU Wget2. %prep %autosetup %build %configure --disable-static # Remove RPATH sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make -j1 %install %make_install %find_lang %{name} %files -f %{name}.lang %license COPYING.LESSER %doc README.md %{_bindir}/%{name} %{_bindir}/%{name}_noinstall %{_libdir}/libwget*.so.* %{_mandir}/man*/* %files devel %{_includedir}/wget.h %{_includedir}/wgetver.h %{_libdir}/libwget*.so %{_libdir}/pkgconfig/libwget.pc %files static %{_libdir}/libwget*.la %changelog * Wed Apr 1 2020 Anna Khaitovich - 1.99.2-1 - Initial package