rpms/libvoikko/F-12 libvoikko.spec,1.29,1.30

Ville-Pekka Vainio vpv at fedoraproject.org
Sun Oct 25 12:36:53 UTC 2009


Author: vpv

Update of /cvs/pkgs/rpms/libvoikko/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29256

Modified Files:
	libvoikko.spec 
Log Message:
* Sun Oct 25 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 2.2.1-2
- Add Python interface (package python-libvoikko)



Index: libvoikko.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libvoikko/F-12/libvoikko.spec,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -p -r1.29 -r1.30
--- libvoikko.spec	8 Oct 2009 23:12:38 -0000	1.29
+++ libvoikko.spec	25 Oct 2009 12:36:53 -0000	1.30
@@ -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.sourcef
 #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 vo
 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" DESTDI
 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
 




More information about the scm-commits mailing list