- Add Python interface (package python-libvoikko)
This commit is contained in:
parent
a6387c2ebd
commit
35f57d281d
@ -1,6 +1,7 @@
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
Name: libvoikko
|
||||
Version: 2.2.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Voikko is a library for spellcheckers and hyphenators
|
||||
|
||||
Group: System Environment/Libraries
|
||||
@ -12,7 +13,7 @@ Source0: http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.g
|
||||
#Source0: http://www.puimula.org/htp/testing/%{name}-%{version}rc2.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: python glib2-devel
|
||||
BuildRequires: python-devel glib2-devel
|
||||
# Libvoikko >= 2.2 needs this, earlier versions won't work
|
||||
Requires: malaga-suomi-voikko >= 1.4
|
||||
|
||||
@ -47,6 +48,17 @@ This package contains voikkospell and voikkohyphenate, small command line
|
||||
tools for testing libvoikko. These tools may also be useful for shell
|
||||
scripts.
|
||||
|
||||
%package -n python-libvoikko
|
||||
Summary: Python interface to %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description -n python-libvoikko
|
||||
Python interface to libvoikko, library of Finnish language tools.
|
||||
This module can be used to perform various natural language analysis
|
||||
tasks on Finnish text.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
@ -67,6 +79,9 @@ make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
# Remove static archive
|
||||
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
|
||||
# Install the Python interface
|
||||
install -d $RPM_BUILD_ROOT%{python_sitelib}
|
||||
install -pm 0644 python/libvoikko.py $RPM_BUILD_ROOT%{python_sitelib}/
|
||||
|
||||
|
||||
%clean
|
||||
@ -99,7 +114,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/libvoikko.pc
|
||||
|
||||
%files -n python-libvoikko
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitelib}/%{name}.py*
|
||||
|
||||
%changelog
|
||||
* Sun Oct 25 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2.1-2
|
||||
- Add Python interface (package python-libvoikko)
|
||||
|
||||
* Fri Oct 09 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2.1-1
|
||||
- New upstream release, fixes bugs found in 2.2
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user