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 http://bugs.opensuse.org/
#


%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
Url:            http://voikko.puimula.org/
Source:         http://www.puimula.org/voikko-sources/%{_name}/%{_name}-%{version}.tar.gz
BuildRequires:  foma
BuildRequires:  python3
BuildRequires:  voikkospell >= 4.0
#!BuildIgnore:  %{name}
Provides:       %{_name} = %{version}
Obsoletes:      %{_name} < %{version}
Provides:       %{_altname} = %{version}
Obsoletes:      %{_altname} < %{version}
BuildArch:      noarch

%description
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
%defattr(-,root,root)
%doc CONTRIBUTORS COPYING ChangeLog README README.fi
%dir %{_datadir}/voikko/
%{_datadir}/voikko/*

%changelog
openSUSE Build Service is sponsored by