malaga-suomi/malaga-suomi.spec
Dominique Leuenberger a88035a6cc Accepting request 501918 from home:dimstar:Factory
- BuildIgnore malaga-suomi, otherwise this package can't be
  bootsrapped (nothing provides malaga-suomi needed by libvoikko1).

OBS-URL: https://build.opensuse.org/request/show/501918
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/malaga-suomi?expand=0&rev=20
2017-06-08 12:19:22 +00:00

63 lines
2.0 KiB
RPMSpec

#
# 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
%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