# 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
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)
%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)