From 191460ee9bad18d413d8b686d4c72721d7951f03 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Sat, 2 May 2020 14:28:58 +0200 Subject: [PATCH] add man bcond (to avoid ruby dependency) --- nuspell.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nuspell.spec b/nuspell.spec index b857512..f83d5b7 100644 --- a/nuspell.spec +++ b/nuspell.spec @@ -1,4 +1,8 @@ # TODO: catch2 for tests, https://github.com/catchorg/Catch2.git +# +# Conditional build: +%bcond_without man # build without man pages + Summary: Nuspell spell checking library Summary(pl.UTF-8): Biblioteka sprawdzania pisowni Nuspell Name: nuspell @@ -15,7 +19,7 @@ BuildRequires: cmake >= 3.8 BuildRequires: libicu-devel # -std=c++17 BuildRequires: libstdc++-devel >= 6:7 -BuildRequires: ronn +%{?with_man:BuildRequires: ronn} Requires: %{name}-libs = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -107,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc AUTHORS CHANGELOG.md README.md docs/Third-party_licenses %attr(755,root,root) %{_bindir}/nuspell -%{_mandir}/man1/nuspell.1* +%{?with_man:%{_mandir}/man1/nuspell.1*} %files libs %defattr(644,root,root,755) -- 2.43.0