[Xapian-discuss] Xapian 0.8.2 released

Fabrice Colin fabrice.colin at ntlworld.com
Fri Sep 17 09:03:15 BST 2004


Olly Betts wrote:
> And debian names the header /usr/include/tcl8.X/tcl.h (so you can
> install -dev packages for more than one version at once I imagine).
> 
> OK, one better configure test checked in.  I can't test of FC2, but
> hopefully it'll do the trick.
> 
It does, the TCL bindings are enabled now.

For php4, make complains about another html file :

make[5]: Entering directory 
`/opt/burn/image/Linux/Xapian/v0.8.2/xapian-bindings-0.8.2/php4/docs'
make[5]: *** No rule to make target `bindings.html', needed by `all-am'. 
  Stop.
make[5]: Leaving directory 
`/opt/burn/image/Linux/Xapian/v0.8.2/xapian-bindings-0.8.2/php4/docs'

> It's intended to ignore the prefix and install where python is installed
> (since if our prefix is /usr/local and python is in /usr installing
> the module under /usr/local isn't helpful.
> 
> There should be an "install where I tell you" mode though, so users
> without root access can install the bindings for themselves.  Most
> scripting languages seem to allow that.
> 
That would be helpful. The same is true for the TCL .so file.

 >> On Thu, Sep 16, 2004 at 07:43:39PM -0400, Eric B. Ridge wrote:
 >>If this is what you want, then just include the srcdir and builddir in
 >>the -classpath argument, like so:
 >>	-classpath $srcdir:$builddir
 >
 > OK, I can't test as I don't have Java installed, but CVS HEAD now
 > passes this switch so I hope it'll work.  Thanks for all the help.
 >
I am still experiencing the same error unfortunately :

make[5]: Entering directory 
`.../xapian-bindings-0.8.2/java/org/xapian/errors'
/usr/local/java/bin/javac -classpath .:. -d . AssertionError.java
AssertionError.java:32: cannot resolve symbol
symbol  : class LogicError
location: class org.xapian.errors.AssertionError
public class AssertionError extends LogicError {
                                     ^
1 error

I have attached the first shot at a spec file that builds the Python
and TCL bindings. This generates three RPMs, the first one containing
only some documentation (as the bindings don't share common files).

# rpm -ql -p xapian-bindings-0.8.2-1.i386.rpm
/usr/share/doc/xapian-bindings-0.8.2
/usr/share/doc/xapian-bindings-0.8.2/AUTHORS
/usr/share/doc/xapian-bindings-0.8.2/COPYING
/usr/share/doc/xapian-bindings-0.8.2/ChangeLog
/usr/share/doc/xapian-bindings-0.8.2/NEWS
/usr/share/doc/xapian-bindings-0.8.2/README

# rpm -ql -p xapian-bindings-python-0.8.2-1.i386.rpm
/usr/lib/python2.3/site-packages/_xapian.so
/usr/lib/python2.3/site-packages/xapian.py
/usr/lib/python2.3/site-packages/xapian.pyc
/usr/share/doc/xapian-bindings-python-0.8.2
/usr/share/doc/xapian-bindings-python-0.8.2/bindings.html
/usr/share/doc/xapian-bindings-python-0.8.2/examples
/usr/share/doc/xapian-bindings-python-0.8.2/examples/simpleexpand.py
/usr/share/doc/xapian-bindings-python-0.8.2/examples/simpleindex.py
/usr/share/doc/xapian-bindings-python-0.8.2/examples/simplematchdecider.py
/usr/share/doc/xapian-bindings-python-0.8.2/examples/simplesearch.py

# rpm -ql -p xapian-bindings-tcl8-0.8.2-1.i386.rpm
/usr/share/tcl8.4/xapian.so

Fabrice
-------------- next part --------------
# RedHat-style .spec file for Xapian
# xapian-bindings.spec.  Generated from xapian-bindings.spec.in by configure.

Summary: Bindings for the Xapian Probabilistic Information Retrieval Library.
Name: xapian-bindings
Version: 0.8.2
Release: 1
License: GPL
Vendor: www.xapian.org
Group: Development/Libraries
URL: http://www.xapian.org/
Requires: xapian-core-libs = %{version}
BuildRequires: autoconf, swig >= 1.3.20, python-devel >= 2.3, tcl-devel >= 8.4
Source0: http://www.tartarus.org/~olly/xapian-%{version}/%{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Xapian is an Open Source Probabilistic Information Retrieval Library. 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 scripts which use Xapian.

%package python
Group: Development/Libraries
Summary: Files needed for developing Python scripts which use Xapian.
Requires: %{name} = %{version}

%description python
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 Python scripts which use Xapian.

%package tcl8
Group: Development/Libraries
Summary: Files needed for developing TCL scripts which use Xapian.
Requires: %{name} = %{version}

%description tcl8
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 TCL scripts which use Xapian.

%prep
%setup -q -n %{name}-%{version}

%build
# These options and BuildRequires should ensure we build only the Python and TCL bindings
%configure --without-php --without-java --without-guile
make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}
# Installation of the Python and TCL files does not obey prefix, DESTDIR is required
%makeinstall DESTDIR=%{buildroot}
# Move the Python 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}
rm -rf %{buildroot}%{buildroot}/usr/share/doc/%{name}/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-, root, root)
# There are no common files at the moment
%doc AUTHORS ChangeLog COPYING NEWS README

%files python
%defattr(-, root, root)
%dir /usr/lib/python2.3/site-packages/_xapian.so
%dir /usr/lib/python2.3/site-packages/xapian.py
%dir /usr/lib/python2.3/site-packages/xapian.pyc
%doc /usr/share/doc/%{name}-python-%{version}

%files tcl8
%defattr(-, root, root)
%dir /usr/share/tcl8.4/xapian.so


More information about the Xapian-discuss mailing list