From 8669bbaf002e2b78bb169152153cfaae3549cefab27715fae87c3ccf8effe503 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 24 Jul 2024 07:12:53 +0000 Subject: [PATCH] Accepting request 1189292 from home:badshah400:branches:M17N Disable man file generation to avoid BuildRequires on pandoc (nuspell is a Ring1 package). OBS-URL: https://build.opensuse.org/request/show/1189292 OBS-URL: https://build.opensuse.org/package/show/M17N/nuspell?expand=0&rev=34 --- nuspell.changes | 6 ++++++ nuspell.spec | 12 ++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/nuspell.changes b/nuspell.changes index acbc0b7..e8b7aed 100644 --- a/nuspell.changes +++ b/nuspell.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 24 04:32:43 UTC 2024 - Atri Bhattacharya + +- Disable man file generation to avoid BuildRequires on pandoc + (nuspell is a Ring1 package). + ------------------------------------------------------------------- Wed Jul 17 04:38:53 UTC 2024 - Atri Bhattacharya diff --git a/nuspell.spec b/nuspell.spec index 8242c28..4d38bb5 100644 --- a/nuspell.spec +++ b/nuspell.spec @@ -24,6 +24,8 @@ %else %bcond_without tests %endif +# Ring1 package, avoid pandoc requirement by disabling mnan file generation +%bcond_with man Name: nuspell Version: 5.1.6 Release: 0 @@ -42,10 +44,12 @@ BuildRequires: gcc-c++ %endif BuildRequires: graphviz BuildRequires: libicu-devel -BuildRequires: pandoc BuildRequires: pkgconfig BuildRequires: rubygem(%{rb_default_ruby_abi}:ronn) Requires: hunspell +%if %{with man} +BuildRequires: pandoc +%endif %if %{with tests} BuildRequires: pkgconfig(catch2) >= 3.3.2 %endif @@ -110,7 +114,9 @@ This package provides API documentation for Nuspell. -DCMAKE_CXX_FLAGS:STRING="%{optflags} -std=c++17" \ %endif -DBUILD_TESTING:BOOL=%{?with_tests:ON}%{!?with_tests:OFF} \ - -DCMAKE_SKIP_RPATH:BOOL=OFF + -DCMAKE_SKIP_RPATH:BOOL=OFF \ + -DBUILD_DOCS=%{?with_man:ON}%{!?with_man:OFF} \ + %{nil} %cmake_build cd ../ @@ -136,7 +142,9 @@ cp -pR doxygen/html %{buildroot}%{_docdir}/%{name}-doc/ %doc README.md CHANGELOG.md AUTHORS %license COPYING.LESSER COPYING %{_bindir}/nuspell +%if %{with man} %{_mandir}/man1/nuspell.1%{?ext_man} +%endif %files -n %{libname}%{sonum} %license COPYING.LESSER COPYING