[packages/wget2] - no pandoc on x32, install man page manually - rel 2

baggins baggins at pld-linux.org
Sun Jan 19 13:33:27 CET 2020


commit 2ad2f4149f7a40b34ca3c714f5bbccea585e53b6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jan 19 13:31:26 2020 +0100

    - no pandoc on x32, install man page manually
    - rel 2

 wget2.spec | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/wget2.spec b/wget2.spec
index 21e62d8..69c04c6 100644
--- a/wget2.spec
+++ b/wget2.spec
@@ -1,7 +1,11 @@
 # Conditional build:
 %bcond_without	tests	# check target
 %bcond_with	gnutls	# use GnuTLS (wget default) instead of OpenSSL
+%bcond_with	pandoc	# build man with pandoc
 
+%ifarch x32
+%undefine	with_pandoc
+%endif
 Summary:	A utility for retrieving files using the HTTP or FTP protocols
 Summary(es.UTF-8):	Cliente en línea de comando para bajar archivos WWW/FTP con recursión opcional
 Summary(fr.UTF-8):	Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
@@ -12,7 +16,7 @@ Summary(uk.UTF-8):	Утиліта для отримання файлів по п
 Summary(zh_CN.UTF-8):	[通讯]功能强大的下载程序,支持断点续传
 Name:		wget2
 Version:	1.99.2
-Release:	1
+Release:	2
 License:	GPL v3+ with OpenSSL exception
 Group:		Networking/Utilities
 Source0:	https://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.lz
@@ -31,7 +35,7 @@ BuildRequires:	libpsl-devel >= 0.16.0
 BuildRequires:	nghttp2-devel
 # >= 1.1.0 for TLSv1.3
 %{!?with_gnutls:BuildRequires:	openssl-devel >= 1.0.1}
-BuildRequires:	pandoc
+%{?with_pandoc:BuildRequires:	pandoc}
 BuildRequires:	pcre2-8-devel
 BuildRequires:	pkgconfig
 BuildRequires:	tar >= 1:1.22
@@ -183,6 +187,11 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
 rm $RPM_BUILD_ROOT%{_bindir}/wget2_noinstall
 
+%if %{without pandoc}
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+cp -p docs/man/man1/wget2.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%endif
+
 %find_lang %{name}
 
 %post -n libwget2 -p /sbin/ldconfig
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wget2.git/commitdiff/2ad2f4149f7a40b34ca3c714f5bbccea585e53b6



More information about the pld-cvs-commit mailing list