diff --git a/libvoikko.changes b/libvoikko.changes index ba44a0d..e0f6be3 100644 --- a/libvoikko.changes +++ b/libvoikko.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 4 07:54:42 UTC 2017 - tuukka.pasanen@ilmi.fi + +- Added python3 interface package libvoikko which is needed + by LibreOffice + ------------------------------------------------------------------- Tue Apr 25 13:17:13 UTC 2017 - tchvatal@suse.com diff --git a/libvoikko.spec b/libvoikko.spec index f517506..f0fde8a 100644 --- a/libvoikko.spec +++ b/libvoikko.spec @@ -67,6 +67,17 @@ Requires: libvoikko1 = %{version} Voikko is a Finnish spellchecker and hyphenator based on Malaga and Suomi-Malaga. +%package -n python3-libvoikko +Summary: Python interface to %{name} +Group: Development/Libraries +Requires: libvoikko1 = %{version}-%{release} +BuildArch: noarch + +%description -n python3-libvoikko +Python interface to libvoikko, library of language tools. +This module can be used to perform various natural language analysis +tasks on text. + %prep %setup -q @@ -85,6 +96,9 @@ make %{?_smp_mflags} check || : %make_install find %{buildroot} -type f -name "*.la" -delete -print +install -d $RPM_BUILD_ROOT%{python3_sitelib} +install -pm 0644 python/libvoikko.py $RPM_BUILD_ROOT%{python3_sitelib}/ + %post -n libvoikko1 -p /sbin/ldconfig %postun -n libvoikko1 -p /sbin/ldconfig @@ -104,4 +118,8 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_libdir}/*.so %{_libdir}/pkgconfig/libvoikko.pc +%files -n python3-libvoikko +%defattr(-,root,root) +%{python3_sitelib}/* + %changelog