2011-02-06 17:29:48 +00:00
#
2011-02-06 17:29:54 +00:00
# spec file for package libreoffice-voikko
2011-02-06 17:29:48 +00:00
#
2012-04-17 05:46:14 +00:00
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
2011-02-06 17:29:48 +00: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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-02-06 17:29:54 +00:00
2011-02-06 17:29:48 +00:00
Name : libreoffice-voikko
2013-08-24 08:14:44 +00:00
Version : 3.4.1
2012-04-17 05:46:14 +00:00
Release : 0
Summary : LibreOffice spellchecker/hyphenator for finnish language
License : GPL-3.0+
2011-02-06 17:29:48 +00:00
Group : Productivity/Text/Spell
2012-04-17 05:46:14 +00:00
%define ooo_prefix %{_libdir}
%define ooo_home libreoffice
BuildRequires : gcc-c++
BuildRequires : java-devel
2013-08-24 08:14:44 +00:00
BuildRequires : libreoffice >= 4.1
BuildRequires : libreoffice-sdk >= 4.1
2012-04-17 05:46:14 +00:00
BuildRequires : libvoikko-devel
BuildRequires : unzip
BuildRequires : zip
# post install scripts
%if 0%{?suse_version} > 01120
Requires(post) : coreutils
Requires(post) : grep
Requires(post) : libreoffice >= 3.5
Requires(postun) : coreutils
Requires(postun) : grep
Requires(postun) : libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq : coreutils
PreReq : grep
PreReq : libreoffice
%endif
2011-02-06 17:29:48 +00:00
Url : http://voikko.sourceforge.net
2013-08-24 08:14:44 +00:00
Source : %{name} -rel-%{version} .tar.bz2
# -BUCR is gone in cppumaker upstream, see http://cgit.freedesktop.org/libreoffice/core/commit/?id=02a8e8acd1f0cbb512868fd9849363f9d069db95.
# Fix like upstream for javamaker (which had the same change) in http://cgit.freedesktop.org/libreoffice/core/commit/?id=5f8015045cb59ff9574230530d371b6659697881
Patch0 : libreoffice-voikko-rel-3.4.1-lo-4.1-cppumaker.diff
2012-04-17 05:46:14 +00:00
Provides : locale(OpenOffice_org:fi)
Provides : locale(libreoffice:fi)
# compat stuff
Provides : OpenOffice_org-voikko = %{version}
Obsoletes : OpenOffice_org-voikko <= %{version}
2011-02-06 17:29:48 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
LibreOffice spellchecker/hyphenator for finnish language, which uses
libvoikko as backend.
%prep
2013-08-24 08:14:44 +00:00
%setup -q -n %{name} -rel-%{version}
%patch0 -p1
2011-02-06 17:29:48 +00:00
%build
2012-04-17 05:46:14 +00:00
. %ooo_prefix/%ooo_home/sdk/setsdkenv_unix.sh
2011-02-06 17:29:48 +00:00
make oxt
%install
cd build
voikkoPackage=$(pwd)/voikko.oxt
2012-04-17 05:46:14 +00:00
mkdir -p %{buildroot} %ooo_prefix/%ooo_home/share/extensions/voikko
cd %{buildroot} %ooo_prefix/%ooo_home/share/extensions/voikko
2011-02-06 17:29:48 +00:00
unzip " $ v o i k k o P a c k a g e "
%files
%defattr (-,root,root,0755)
%ooo_prefix/%ooo_home/share/extensions/voikko
%changelog