rpms/xapian-bindings/F-9 xapian-bindings.spec,1.9,1.10
Adel Gadllah (drago01)
fedora-extras-commits at redhat.com
Mon Jul 28 21:42:33 UTC 2008
Author: drago01
Update of /cvs/pkgs/rpms/xapian-bindings/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8237
Modified Files:
xapian-bindings.spec
Log Message:
enable ruby bindings
Index: xapian-bindings.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xapian-bindings/F-9/xapian-bindings.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- xapian-bindings.spec 22 Jul 2008 05:44:21 -0000 1.9
+++ xapian-bindings.spec 28 Jul 2008 21:42:02 -0000 1.10
@@ -1,14 +1,17 @@
-%define python_ver %(%{__python} -c "import sys; print sys.version[:3]")
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
Summary: Bindings for the Xapian Probabilistic Information Retrieval Library
Name: xapian-bindings
Version: 1.0.7
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: Development/Libraries
URL: http://www.xapian.org/
BuildRequires: python-devel >= 2.2
BuildRequires: autoconf automake libtool
+BuildRequires: ruby-devel ruby
BuildRequires: xapian-core-devel == %{version}
Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -29,11 +32,21 @@
indexing and search facilities to applications. This package provides the
files needed for developing Python scripts which use Xapian
+%package ruby
+Group: Development/Libraries
+Summary: Files needed for developing Ruby scripts which use Xapian
+
+%description ruby
+Xapian is an Open Source Probabilistic Information Retrieval framework. It
+offers a highly adaptable toolkit that allows developers to easily add advanced
+indexing and search facilities to applications. This package provides the
+files needed for developing Ruby scripts which use Xapian
+
%prep
%setup -q -n %{name}-%{version}
%build
-%configure --with-python
+%configure --with-python --with-ruby
make %{?_smp_mflags}
%install
@@ -44,6 +57,7 @@
# Move the docs to the right place, and correct the effects of prefix+DESTDIR
mkdir -p %{buildroot}/usr/share/doc/
mv %{buildroot}%{buildroot}/usr/share/doc/%{name}/python %{buildroot}/usr/share/doc/%{name}-python-%{version}
+mv %{buildroot}%{buildroot}/usr/share/doc/%{name}/ruby %{buildroot}/usr/share/doc/%{name}-ruby-%{version}
rm -rf %{buildroot}%{buildroot}/usr/share/doc/%{name}/
%clean
@@ -52,12 +66,19 @@
%files python
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
-%{_libdir}/python%{python_ver}/site-packages/_xapian.so
-%{_libdir}/python%{python_ver}/site-packages/xapian.py
-%{_libdir}/python%{python_ver}/site-packages/xapian.pyc
-%{_libdir}/python%{python_ver}/site-packages/xapian.pyo
+%{python_sitearch}/*
+
+%files ruby
+%defattr(-, root, root)
+%doc AUTHORS ChangeLog COPYING NEWS README
+%{ruby_sitearch}/_xapian.so
+%{ruby_sitelib}/xapian.rb
+
%changelog
+* Mon Jul 28 2008 Adel Gadllah <adel.gadllah at gmail.com> 1.0.7-2
+- Enable ruby bindings RH #456951, patch by Scott Seago
+
* Tue Jul 22 2008 Adel Gadllah <adel.gadllah at gmail.com> 1.0.7-1
- Update to 1.0.7
More information about the fedora-extras-commits
mailing list