File malaga-suomi.spec of Package malaga-suomi

# spec file for package malaga-suomi
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%define _name voikko-fi
%define _altname suomi-malaga
Name:           malaga-suomi
Version:        2.1
Release:        0
Summary:        Description of Finnish Morphology Written in Malaga
License:        GPL-2.0+
Group:          Productivity/Text/Spell
BuildRequires:  foma
BuildRequires:  python3
BuildRequires:  voikkospell >= 4.0
#!BuildIgnore:  %{name}
Provides:       %{_name} = %{version}
Obsoletes:      %{_name} < %{version}
Provides:       %{_altname} = %{version}
Obsoletes:      %{_altname} < %{version}
BuildArch:      noarch

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

%setup -q -n %{_name}-%{version}

CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}" \
make %{?_smp_mflags} vvfst EXTRA_LEX=vocabulary/erikoisalat/linux-distributions.lex SM_BUILDDATE="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}")"

make vvfst-install DESTDIR=%{buildroot}%{_datadir}/voikko

%dir %{_datadir}/voikko/

openSUSE Build Service is sponsored by