From 112242f4cff51dde184e6cb61ed8cc09ced26d69888ba893a3865ae5a2fa0f80 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Thu, 5 Oct 2017 11:05:38 +0000 Subject: [PATCH 1/3] Accepting request 531065 from home:illuusio - Added python3 interface package libvoikko which is needed by LibreOffice OBS-URL: https://build.opensuse.org/request/show/531065 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvoikko?expand=0&rev=28 --- libvoikko.changes | 6 ++++++ libvoikko.spec | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) 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 From cbc759f7c0b21449356e25f9b1caf3eef2fe1b0ad288b5a9b5dce31e6e1308f2 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Thu, 5 Oct 2017 11:08:32 +0000 Subject: [PATCH 2/3] Fix python interface library Group OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvoikko?expand=0&rev=29 --- libvoikko.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvoikko.spec b/libvoikko.spec index f0fde8a..f837bc7 100644 --- a/libvoikko.spec +++ b/libvoikko.spec @@ -69,7 +69,7 @@ Suomi-Malaga. %package -n python3-libvoikko Summary: Python interface to %{name} -Group: Development/Libraries +Group: Development/Libraries/Python Requires: libvoikko1 = %{version}-%{release} BuildArch: noarch From f53c449df74b3c6107e95db03eecc13404f5dc0b6801f399f3218f951669f5d8 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Mon, 9 Oct 2017 15:12:54 +0000 Subject: [PATCH 3/3] Accepting request 531620 from home:jengelh:branches:devel:libraries:c_c++ - Stop mixing %buildroot and $RPM_BUILD_ROOT. - Drop --with-pic which is a no-op with --disable-static. OBS-URL: https://build.opensuse.org/request/show/531620 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvoikko?expand=0&rev=30 --- libvoikko.changes | 6 ++++++ libvoikko.spec | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libvoikko.changes b/libvoikko.changes index e0f6be3..c30cebd 100644 --- a/libvoikko.changes +++ b/libvoikko.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Oct 5 11:18:38 UTC 2017 - jengelh@inai.de + +- Stop mixing %buildroot and $RPM_BUILD_ROOT. +- Drop --with-pic which is a no-op with --disable-static. + ------------------------------------------------------------------- Wed Oct 4 07:54:42 UTC 2017 - tuukka.pasanen@ilmi.fi diff --git a/libvoikko.spec b/libvoikko.spec index f837bc7..5670ab0 100644 --- a/libvoikko.spec +++ b/libvoikko.spec @@ -84,7 +84,6 @@ tasks on text. %build %configure \ --disable-silent_rules \ - --with-pic \ --disable-static \ --with-dictionary-path=%{_libexecdir}/voikko:%{_datadir}/voikko make %{?_smp_mflags} @@ -96,8 +95,8 @@ 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}/ +install -d %{buildroot}/%{python3_sitelib} +install -pm 0644 python/libvoikko.py %{buildroot}/%{python3_sitelib}/ %post -n libvoikko1 -p /sbin/ldconfig %postun -n libvoikko1 -p /sbin/ldconfig