malaga-suomi/malaga-suomi.spec
Timo Jyrinki c967de1b90 - Update to new upstream version 2.5:
* New words have been added and some bugs have been fixed.
- Update to new upstream version 2.45:
  * Automatic hkO derivation for adjectives has been implemented.
  * Extended special vocabulary for spoken Finnish.
  * New words have been added and various bugs have been fixed.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/malaga-suomi?expand=0&rev=33
2022-06-08 14:45:27 +00:00

69 lines
2.4 KiB
RPMSpec

#
# spec file for package malaga-suomi
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _name voikko-fi
%define _altname suomi-malaga
Name: malaga-suomi
Version: 2.5
Release: 0
Summary: Description of Finnish morphology written for libvoikko
License: GPL-2.0-or-later
Group: Productivity/Text/Spell
URL: http://voikko.puimula.org/
Source0: http://www.puimula.org/voikko-sources/%{_name}/%{_name}-%{version}.tar.gz
Source1: http://www.puimula.org/voikko-sources/%{_name}/%{_name}-%{version}.tar.gz.asc
Source2: %{_name}.keyring
# voikospell/libvoikko requires malaga-suomi for proper runtime. But to build malaga-suomi we don't need it yet
#!BuildIgnore: malaga-suomi
BuildRequires: foma
BuildRequires: python3
BuildRequires: voikkospell >= 4.0
Provides: %{_name} = %{version}
Obsoletes: %{_name} < %{version}
Provides: %{_altname} = %{version}
Obsoletes: %{_altname} < %{version}
BuildArch: noarch
%description
Voikko-fi (previously known as suomi-malaga) is a description of Finnish
morphology written for libvoikko.
This package contains a compiled version of Voikko-fi using the new
unweighted VFST dictionary format. It is suitable for use in spell checking,
grammar checking and hyphenation system Voikko, provided by the libvoikko
library.
%prep
%setup -q -n %{_name}-%{version}
%build
CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}" \
make %{?_smp_mflags} vvfst EXTRA_LEX=vocabulary/erikoisalat/linux-distributions.lex SM_BUILDDATE="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%{s})}")"
%install
make vvfst-install DESTDIR=%{buildroot}%{_datadir}/voikko
%files
%license COPYING
%doc CONTRIBUTORS ChangeLog README.md
%dir %{_datadir}/voikko/
%{_datadir}/voikko/*
%changelog