4f92519971
Accepted submit request 60091 from user pmladek OBS-URL: https://build.opensuse.org/request/show/60091 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libreoffice-voikko?expand=0&rev=1
61 lines
2.0 KiB
RPMSpec
61 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package libreoffice-voikko (Version 3.1)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products 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
|
|
%define ooo_prefix %_libdir
|
|
%define ooo_home libreoffice
|
|
BuildRequires: libreoffice libreoffice-sdk gcc-c++ java-devel libvoikko-devel unzip update-alternatives zip
|
|
Summary: LibreOffice spellchecker/hyphenator for finnish language
|
|
Version: 3.1.2
|
|
Release: 4
|
|
License: GPL
|
|
Group: Productivity/Text/Spell
|
|
PreReq: libreoffice coreutils grep zip
|
|
Provides: locale(libreoffice:fi) locale(OpenOffice_org:fi)
|
|
# compat stuff
|
|
Provides: OpenOffice_org-voikko = %version
|
|
Obsoletes: OpenOffice_org-voikko <= %version
|
|
Url: http://voikko.sourceforge.net
|
|
Source: openoffice.org-voikko-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
LibreOffice spellchecker/hyphenator for finnish language, which uses
|
|
libvoikko as backend.
|
|
|
|
|
|
%prep
|
|
%setup -q -n openoffice.org-voikko-%{version}
|
|
|
|
%build
|
|
. %ooo_prefix/%ooo_home/basis-link/sdk/setsdkenv_unix.sh
|
|
make oxt
|
|
|
|
%install
|
|
|
|
cd build
|
|
voikkoPackage=$(pwd)/voikko.oxt
|
|
mkdir -p $RPM_BUILD_ROOT%ooo_prefix/%ooo_home/share/extensions/voikko
|
|
cd $RPM_BUILD_ROOT%ooo_prefix/%ooo_home/share/extensions/voikko
|
|
unzip "$voikkoPackage"
|
|
|
|
%files
|
|
%defattr(-,root,root,0755)
|
|
%ooo_prefix/%ooo_home/share/extensions/voikko
|
|
|
|
%changelog
|