From e53fc19f24342090c3896e5dec2c0b7e167a122f4716ea72a096ccb8dded2eec Mon Sep 17 00:00:00 2001 From: andy great Date: Mon, 25 May 2020 20:39:19 +0000 Subject: [PATCH] Accepting request 808861 from home:andythe_great - Add Catch2 dependeny for test. OBS-URL: https://build.opensuse.org/request/show/808861 OBS-URL: https://build.opensuse.org/package/show/M17N/nuspell?expand=0&rev=6 --- nuspell.changes | 5 +++++ nuspell.spec | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/nuspell.changes b/nuspell.changes index e5f3e1f..0aa0bfe 100644 --- a/nuspell.changes +++ b/nuspell.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 20:30:56 UTC 2020 - andy great + +- Add Catch2 dependeny for test. + ------------------------------------------------------------------- Mon May 25 14:12:39 UTC 2020 - andy great diff --git a/nuspell.spec b/nuspell.spec index 8c0855a..594d617 100644 --- a/nuspell.spec +++ b/nuspell.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %define sonum 3 %define libname libnuspell Name: nuspell @@ -24,13 +25,14 @@ Summary: A spell checker library and command-line tool License: LGPL-3.0-or-later Group: Productivity/Office/Other URL: https://nuspell.github.io/ -Source: %{name}-%{version}.tar.gz +Source: https://github.com/nuspell/nuspell/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: Catch2-devel BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libboost_locale-devel BuildRequires: libicu-devel -Requires: hunspell BuildRequires: rubygem(%{rb_default_ruby_abi}:ronn) +Requires: hunspell %description Nuspell is a free and open source spell checker that is written in modern C++. @@ -78,7 +80,7 @@ Includes and definitions for developing with Nuspell %build %cmake -DBUILD_SHARED_LIBS:BOOL=ON \ - -DBUILD_TESTING:BOOL=ON \ + -DBUILD_TESTING:BOOL=ON \ .. %cmake_build @@ -89,6 +91,9 @@ Includes and definitions for developing with Nuspell %post -n %{libname}%{sonum} -p /sbin/ldconfig %postun -n %{libname}%{sonum} -p /sbin/ldconfig +%check +%ctest + %files -n %{name} %{_bindir}/nuspell %{_mandir}/man1/nuspell.1%{?ext_man}