File malaga-suomi.spec of Package malaga-suomi

#
# spec file for package malaga-suomi
#
# Copyright (c) 2015 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 suomi-malaga
Name:           malaga-suomi
Version:        1.18
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:  malaga
BuildRequires:  python-xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Suomi-Malaga is a description of Finnish morphology written in Malaga.

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

%build
CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}" \
make voikko %{?_smp_mflags}

%install
make voikko-install DESTDIR=%{buildroot}%{_datadir}/malaga/1/mor-standard
# compat symlinks
cd %{buildroot}%{_datadir}/malaga
ln -s -t. 1/mor-standard/*

%files
%defattr(-,root,root)
%doc CONTRIBUTORS COPYING ChangeLog README README.fi
%{_datadir}/malaga/*

%changelog
openSUSE Build Service is sponsored by