From b21f366aa086d7517aa48c5e1051ac9e523a834c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 19 Jan 2020 13:21:40 +0100 Subject: [PATCH] - no pandoc on x32, so no man pages - rel 2 --- libhsts.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libhsts.spec b/libhsts.spec index 5325a9c..663b0f0 100644 --- a/libhsts.spec +++ b/libhsts.spec @@ -1,15 +1,22 @@ -%bcond_without tests # +# Conditional build: +%bcond_with man # build man pages (requires pandoc) +%bcond_without tests # build without tests +# +%ifarch x32 +%undefine with_man +%endif Summary: C library to access the HSTS preload list Name: libhsts Version: 0.1.0 -Release: 1 +Release: 2 License: BSD Group: Libraries Source0: https://gitlab.com/rockdaboot/libhsts/uploads/4753f61b5a3c6253acf4934217816e3f/%{name}-%{version}.tar.gz # Source0-md5: 5599c8b2530df6b26ed5e766a8d9ed3c URL: https://gitlab.com/rockdaboot/libhsts BuildRequires: doxygen +%{?with_man:BuildRequires: pandoc} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -92,8 +99,10 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/hsts %attr(755,root,root) %{_libdir}/libhsts.so.*.* %attr(755,root,root) %ghost %{_libdir}/libhsts.so.0 +%if %{with man} %{_mandir}/man1/hsts.1* %{_mandir}/man1/hsts-make-dafsa.1* +%endif %files devel %defattr(644,root,root,755) @@ -101,7 +110,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/libhsts.h %{_libdir}/libhsts.la %{_pkgconfigdir}/libhsts.pc +%if %{with man} %{_mandir}/man3/libhsts.3* +%endif %files static %defattr(644,root,root,755) -- 2.44.0