Avoid pandoc dependency on RHEL
pandoc is unwanted in RHEL, but the upstream source tarball includes a pre-built copy of the manpage.
This commit is contained in:
parent
ee2f9d7832
commit
1222d2bf7a
13
wget2.spec
13
wget2.spec
@ -8,7 +8,7 @@
|
||||
|
||||
Name: wget2
|
||||
Version: 2.1.0
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: An advanced file and recursive website downloader
|
||||
|
||||
# Documentation is GFDL
|
||||
@ -32,7 +32,9 @@ BuildRequires: make
|
||||
# Documentation build requirements
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: git-core
|
||||
%if ! 0%{?rhel}
|
||||
BuildRequires: pandoc
|
||||
%endif
|
||||
|
||||
# Wget2 build requirements
|
||||
BuildRequires: bzip2-devel
|
||||
@ -133,6 +135,11 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
%make_install
|
||||
%find_lang %{name}
|
||||
|
||||
%if 0%{?rhel}
|
||||
# tarball includes a pre-built manpage
|
||||
install -D -m0644 -t %{buildroot}%{_mandir}/man1/ docs/man/man1/wget2.1
|
||||
%endif
|
||||
|
||||
# Purge all libtool archives
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
@ -174,6 +181,10 @@ echo ".so man1/%{name}.1" > %{buildroot}%{_mandir}/man1/wget.1
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Dec 21 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 2.1.0-4
|
||||
- Avoid pandoc dependency on RHEL
|
||||
- Fix tests on RHEL
|
||||
|
||||
* Sat Dec 16 2023 Neal Gompa <ngompa@fedoraproject.org> - 2.1.0-3
|
||||
- Enable wget2-wget for F40+ / RHEL10+
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user