libreoffice-voikko/libreoffice-voikko.spec

68 lines
2.1 KiB
RPMSpec

#
# spec file for package libreoffice-voikko
#
# 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/
#
Name: libreoffice-voikko
Version: 5.0
Release: 0
Summary: LibreOffice spellchecker/hyphenator for finnish language
License: MPL-2.0 or GPL-3.0+
Group: Productivity/Text/Spell
Url: http://voikko.puimula.org/
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
BuildRequires: gcc-c++
BuildRequires: java-devel
BuildRequires: libreoffice >= 4.1
BuildRequires: libreoffice-sdk >= 4.1
BuildRequires: libvoikko-devel
BuildRequires: unzip
BuildRequires: zip
Requires(post): coreutils
Requires(post): grep
Requires(post): libreoffice >= 4.1
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 4.1
Provides: locale(libreoffice:fi)
%description
LibreOffice spellchecker/hyphenator for finnish language, which uses
libvoikko as backend.
%prep
%setup -q
%build
. %{_libdir}/libreoffice/sdk/setsdkenv_unix.sh
make oxt %{?_smp_mflags}
%install
voikko_pkg=$(pwd)/build/voikko.oxt
mkdir -p %{buildroot}%{_libdir}/libreoffice/share/extensions/voikko
cd %{buildroot}%{_libdir}/libreoffice/share/extensions/voikko
unzip $voikko_pkg
%files
%defattr(-,root,root,0755)
%doc COPYING README
%{_libdir}/libreoffice/share/extensions/voikko
%changelog