Blame wget2.spec

c67783b
%global somajor 1
c67783b
c67783b
Name:           wget2
c67783b
Version:        2.0.0
c67783b
Release:        1%{?dist}
c67783b
Summary:        An advanced file and recursive website downloader
c67783b
c67783b
# Documentation is GFDL
c67783b
License:        LGPLv3+ and GFDL
c67783b
URL:            https://gitlab.com/gnuwget/wget2
c67783b
Source0:        https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.gz
c67783b
c67783b
# Buildsystem build requirements
c67783b
BuildRequires:  autoconf
c67783b
BuildRequires:  autogen
c67783b
BuildRequires:  automake
c67783b
BuildRequires:  libtool
c67783b
BuildRequires:  flex-devel >= 2.5.35
c67783b
BuildRequires:  gettext >= 0.18.2
c67783b
BuildRequires:  gcc
c67783b
BuildRequires:  make
c67783b
c67783b
# Documentation build requirements
c67783b
BuildRequires:  doxygen
c67783b
BuildRequires:  pandoc
c67783b
c67783b
# Wget2 build requirements
c67783b
BuildRequires:  bzip2-devel
c67783b
BuildRequires:  python3
c67783b
BuildRequires:  rsync
c67783b
BuildRequires:  tar
c67783b
BuildRequires:  texinfo
c67783b
BuildRequires:  pkgconfig(gnutls)
c67783b
BuildRequires:  pkgconfig(gpgme)
c67783b
BuildRequires:  pkgconfig(libbrotlidec)
c67783b
## Not available yet
c67783b
#BuildRequires:  pkgconfig(libhsts)
c67783b
BuildRequires:  pkgconfig(libidn2) >= 0.14.0
c67783b
## Not available yet
c67783b
#BuildRequires:  pkgconfig(liblz)
c67783b
BuildRequires:  pkgconfig(liblzma)
c67783b
BuildRequires:  pkgconfig(libmicrohttpd)
c67783b
BuildRequires:  pkgconfig(libnghttp2)
c67783b
BuildRequires:  pkgconfig(libpcre2-8)
c67783b
BuildRequires:  pkgconfig(libpsl)
c67783b
BuildRequires:  pkgconfig(libzstd)
c67783b
BuildRequires:  pkgconfig(zlib)
c67783b
c67783b
# Test suite
c67783b
BuildRequires:  lcov
c67783b
BuildRequires:  lzip
c67783b
c67783b
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c67783b
c67783b
%description
c67783b
GNU Wget2 is the successor of GNU Wget, a file and recursive website
c67783b
downloader.
c67783b
c67783b
Designed and written from scratch it wraps around libwget, that provides the
c67783b
basic functions needed by a web client.
c67783b
c67783b
Wget2 works multi-threaded and uses many features to allow fast operation.
c67783b
In many cases Wget2 downloads much faster than Wget1.x due to HTTP2, HTTP
c67783b
compression, parallel connections and use of If-Modified-Since HTTP header.
c67783b
c67783b
%package libs
c67783b
Summary:        Runtime libraries for GNU Wget2
c67783b
# There's some gnulib in there :)
c67783b
Provides:       bundled(gnulib)
c67783b
c67783b
%description libs
c67783b
This package contains the libraries for applications to use
c67783b
Wget2 functionality.
c67783b
c67783b
%package devel
c67783b
Summary:        Libraries and header files needed for using wget2 libraries
c67783b
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c67783b
c67783b
%description devel
c67783b
Development libraries and headers needed for building applications to
c67783b
use functionality from GNU Wget2.
c67783b
c67783b
%prep
c67783b
%autosetup -p1
c67783b
c67783b
c67783b
%build
c67783b
%configure --disable-static
c67783b
# Remove RPATH
c67783b
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
c67783b
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
c67783b
%make_build
c67783b
c67783b
c67783b
%install
c67783b
%make_install
c67783b
%find_lang %{name}
c67783b
c67783b
# Purge all libtool archives
c67783b
find %{buildroot} -type f -name "*.la" -delete -print
c67783b
c67783b
c67783b
%check
c67783b
%make_build check
c67783b
c67783b
c67783b
%files -f %{name}.lang
c67783b
%license COPYING*
c67783b
%doc README.md
c67783b
%{_bindir}/%{name}
c67783b
%{_bindir}/%{name}_noinstall
c67783b
%{_mandir}/man1/*
c67783b
c67783b
%files libs
c67783b
%license COPYING*
c67783b
%{_libdir}/libwget*.so.%{somajor}{,.*}
c67783b
c67783b
%files devel
c67783b
%{_includedir}/wget.h
c67783b
%{_includedir}/wgetver.h
c67783b
%{_libdir}/libwget*.so
c67783b
%{_libdir}/pkgconfig/libwget.pc
c67783b
%{_mandir}/man3/*
c67783b
c67783b
%changelog
c67783b
* Sun Sep 26 2021 Neal Gompa <ngompa@fedoraproject.org> - 2.0.0-1
c67783b
- Rebase to 2.0.0 final
c67783b
- Split out libraries into libs subpackage
c67783b
- Delete unwanted static subpackage
c67783b
c67783b
* Wed Apr  1 2020 Anna Khaitovich <akhaitov@redhat.com> - 1.99.2-1
c67783b
- Initial package
c67783b