2008-07-31 04:41:44 +02:00
|
|
|
#
|
2012-01-29 21:44:43 +01:00
|
|
|
# spec file for package malaga-suomi
|
2008-07-31 04:41:44 +02:00
|
|
|
#
|
2022-06-08 16:45:27 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2008-07-31 04:41:44 +02:00
|
|
|
#
|
2009-06-19 00:49:44 +02:00
|
|
|
# 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.
|
|
|
|
|
2018-09-27 09:48:51 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-07-31 04:41:44 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-05-02 15:44:03 +02:00
|
|
|
%define _name voikko-fi
|
|
|
|
%define _altname suomi-malaga
|
2014-01-27 10:39:49 +01:00
|
|
|
Name: malaga-suomi
|
2022-06-08 16:45:27 +02:00
|
|
|
Version: 2.5
|
2013-01-11 13:32:39 +01:00
|
|
|
Release: 0
|
2019-02-27 09:20:45 +01:00
|
|
|
Summary: Description of Finnish morphology written for libvoikko
|
2018-09-27 09:48:51 +02:00
|
|
|
License: GPL-2.0-or-later
|
2013-01-11 13:32:39 +01:00
|
|
|
Group: Productivity/Text/Spell
|
2018-09-27 09:48:51 +02:00
|
|
|
URL: http://voikko.puimula.org/
|
2019-02-27 09:20:45 +01:00
|
|
|
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
|
2020-05-12 19:28:44 +02:00
|
|
|
# voikospell/libvoikko requires malaga-suomi for proper runtime. But to build malaga-suomi we don't need it yet
|
|
|
|
#!BuildIgnore: malaga-suomi
|
2017-05-02 15:44:03 +02:00
|
|
|
BuildRequires: foma
|
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: voikkospell >= 4.0
|
|
|
|
Provides: %{_name} = %{version}
|
|
|
|
Obsoletes: %{_name} < %{version}
|
|
|
|
Provides: %{_altname} = %{version}
|
|
|
|
Obsoletes: %{_altname} < %{version}
|
2008-07-31 04:41:44 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2022-06-08 16:45:27 +02:00
|
|
|
Voikko-fi (previously known as suomi-malaga) is a description of Finnish
|
|
|
|
morphology written for libvoikko.
|
2019-02-27 09:20:45 +01:00
|
|
|
|
2017-05-02 15:44:03 +02:00
|
|
|
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.
|
2008-07-31 04:41:44 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2014-01-27 10:39:49 +01:00
|
|
|
CFLAGS="%{optflags}" \
|
|
|
|
CXXFLAGS="%{optflags}" \
|
2018-09-27 09:48:51 +02:00
|
|
|
make %{?_smp_mflags} vvfst EXTRA_LEX=vocabulary/erikoisalat/linux-distributions.lex SM_BUILDDATE="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%{s})}")"
|
2008-07-31 04:41:44 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-02 15:44:03 +02:00
|
|
|
make vvfst-install DESTDIR=%{buildroot}%{_datadir}/voikko
|
2008-07-31 04:41:44 +02:00
|
|
|
|
|
|
|
%files
|
2018-09-27 09:48:51 +02:00
|
|
|
%license COPYING
|
2019-02-27 09:20:45 +01:00
|
|
|
%doc CONTRIBUTORS ChangeLog README.md
|
2017-05-02 15:44:03 +02:00
|
|
|
%dir %{_datadir}/voikko/
|
|
|
|
%{_datadir}/voikko/*
|
2008-07-31 04:41:44 +02:00
|
|
|
|
|
|
|
%changelog
|