forked from pool/libvoikko
Stanislav Brabec
d2f2020ee9
- Version update to 4.1.1: * Various upstream fixes. See ChangeLog * Should fix boo#1031331 * Switch to python3 OBS-URL: https://build.opensuse.org/request/show/491057 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvoikko?expand=0&rev=26
108 lines
3.0 KiB
RPMSpec
108 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package libvoikko
|
|
#
|
|
# 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: libvoikko
|
|
Version: 4.1.1
|
|
Release: 0
|
|
Summary: Spellchecker and Hyphenator for Finnish Language
|
|
License: GPL-2.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
|
|
Source99: baselibs.conf
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3
|
|
BuildRequires: python3-xml
|
|
BuildRequires: pkgconfig(hfstospell)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Voikko is a Finnish spellchecker and hyphenator based on Malaga and
|
|
Suomi-Malaga.
|
|
|
|
%package -n libvoikko1
|
|
Summary: Spellchecker and Hyphenator for Finnish Language
|
|
Group: System/Libraries
|
|
Requires: malaga-suomi
|
|
|
|
%description -n libvoikko1
|
|
Voikko is a Finnish spellchecker and hyphenator based on Malaga and
|
|
Suomi-Malaga.
|
|
|
|
%package devel
|
|
Summary: Spellchecker and Hyphenator for Finnish Language
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libvoikko1 = %{version}
|
|
|
|
%description devel
|
|
Voikko is a Finnish spellchecker and hyphenator based on Malaga and
|
|
Suomi-Malaga.
|
|
|
|
%package -n voikkospell
|
|
Summary: Spellchecker and Hyphenator for Finnish Language
|
|
Group: Productivity/Text/Spell
|
|
Requires: libvoikko1 = %{version}
|
|
|
|
%description -n voikkospell
|
|
Voikko is a Finnish spellchecker and hyphenator based on Malaga and
|
|
Suomi-Malaga.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure \
|
|
--disable-silent_rules \
|
|
--with-pic \
|
|
--disable-static \
|
|
--with-dictionary-path=%{_libexecdir}/voikko:%{_datadir}/voikko
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make %{?_smp_mflags} check || :
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n libvoikko1 -p /sbin/ldconfig
|
|
%postun -n libvoikko1 -p /sbin/ldconfig
|
|
|
|
%files -n libvoikko1
|
|
%defattr(-,root,root)
|
|
%doc COPYING ChangeLog README
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n voikkospell
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%{_mandir}/man?/*%{ext_man}
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/libvoikko
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/libvoikko.pc
|
|
|
|
%changelog
|