diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-22 22:24:40 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-22 22:24:40 (GMT) |
commit | e72874c84820814cb92959b90cb0686bf5aaa82f (patch) | |
tree | b1aba82ef28a6c046fa11e8d90db9e34e002e849 | |
parent | 87fa887b66eba93fc00092f8a9bd39c3e2a20ed4 (diff) |
Original xapian-bindings spec
4 files changed, 259 insertions, 0 deletions
diff --git a/deps/xapian-bindings/SOURCES/xapian-bindings-fix_mono_test.patch b/deps/xapian-bindings/SOURCES/xapian-bindings-fix_mono_test.patch new file mode 100644 index 0000000..4440d5a --- /dev/null +++ b/deps/xapian-bindings/SOURCES/xapian-bindings-fix_mono_test.patch @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -15477,7 +15477,7 @@ + if test -n "$MONO" ; then + { echo "$as_me:$LINENO: checking whether $MONO can run CSharp programs" >&5 + echo $ECHO_N "checking whether $MONO can run CSharp programs... $ECHO_C" >&6; } +- if OK = "`$MONO ./conftest.exe 2> /dev/null`" ; then ++ if test OK = "`$MONO ./conftest.exe 2> /dev/null`" ; then + { echo "$as_me:$LINENO: result: yes" >&5 + echo "${ECHO_T}yes" >&6; } + RUN_CSHARP=mono diff --git a/deps/xapian-bindings/SOURCES/xapian-bindings-pkgIndex_old.patch b/deps/xapian-bindings/SOURCES/xapian-bindings-pkgIndex_old.patch new file mode 100644 index 0000000..931a45c --- /dev/null +++ b/deps/xapian-bindings/SOURCES/xapian-bindings-pkgIndex_old.patch @@ -0,0 +1,8 @@ +pkgIndex.tcl and the library do not reside in the same directory +in older versions of the distribution + +--- tcl8/pkgIndex.tcl.in ++++ tcl8/pkgIndex.tcl.in +@@ -1 +1 @@ +-package ifneeded xapian @VERSION_NO_SNAPSHOT@ [list load [file join $dir xapian[info sharedlibextension]]] ++package ifneeded xapian @VERSION_NO_SNAPSHOT@ [list load [file join @TCL_LIB@/xapian@VERSION@ xapian[info sharedlibextension]]] diff --git a/deps/xapian-bindings/SOURCES/xapian-bindings-tcllibdir.patch b/deps/xapian-bindings/SOURCES/xapian-bindings-tcllibdir.patch new file mode 100644 index 0000000..50ec944 --- /dev/null +++ b/deps/xapian-bindings/SOURCES/xapian-bindings-tcllibdir.patch @@ -0,0 +1,22 @@ +--- configure ++++ configure +@@ -14937,7 +14937,7 @@ + + + if test -z "$TCL_LIB" ; then +- TCL_LIB=`echo 'foreach d $tcl_pkgPath {if {!regexp {/share(/|$)} $d} {break}};puts $d'|$TCLSH` ++ TCL_LIB=`echo 'foreach d $tcl_pkgPath {if {![regexp {/share(/|$)} $d]} {break}};puts $d'|$TCLSH` + fi + + +--- tcl8/Makefile.in ++++ tcl8/Makefile.in +@@ -275,7 +275,7 @@ + TESTS = smoketest.tcl + EXTRA_DIST = except.i util.i $(TESTS) $(BUILT_SOURCES) run-tcl-test runtest.tcl pkgIndex.tcl.in + SUBDIRS = docs +-tcllibdir = @TCL_LIB@/../xapian@VERSION@ ++tcllibdir = @TCL_LIB@/xapian@VERSION@ + tcllib_LTLIBRARIES = xapian.la + tcllib_DATA = pkgIndex.tcl + AM_CPPFLAGS = @TCL_CPPFLAGS@ -DUSE_TCL_STUBS diff --git a/deps/xapian-bindings/SPECS/xapian-bindings.spec b/deps/xapian-bindings/SPECS/xapian-bindings.spec new file mode 100644 index 0000000..5741058 --- /dev/null +++ b/deps/xapian-bindings/SPECS/xapian-bindings.spec @@ -0,0 +1,218 @@ +# +# spec file for package xapian-bindings (Version 1.0.4) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: xapian-bindings +Summary: Bindings for xapian +Version: 1.0.6 +Release: 7.3 +Group: Development/Languages/Misc +Url: http://www.xapian.org/ +License: GPL +BuildRequires: xapian-core-devel = %{version} +BuildRequires: java-devel mono-devel php5-devel pkgconfig python-devel ruby-devel tcl-devel update-alternatives +Requires: xapian-core-libs = %{version} +Source: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.bz2 +Patch: xapian-bindings-tcllibdir.patch +Patch1: xapian-bindings-fix_mono_test.patch +Patch2: xapian-bindings-pkgIndex_old.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%define php_extension_dir %(php-config --extension-dir) +%define tcl_dir %(echo 'foreach d $tcl_pkgPath {if {![regexp {/share(/|$)} $d]} {break}};puts $d'|tclsh) +%define xapian_tcl_dir %{tcl_dir}/xapian%{version} + +%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. + + +%package -n python-xapian +Summary: Files needed for developing Python scripts which use Xapian +Group: Development/Libraries/Python +Requires: %{name} = %{version} +%py_requires + +%description -n python-xapian +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 -n php-xapian +Summary: Files needed for developing PHP scripts which use Xapian +Group: Productivity/Networking/Web/Servers +Requires: %{name} = %{version}, php5 + +%description -n php-xapian +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 PHP scripts which use Xapian. + + +%package -n ruby-xapian +Summary: Files needed for developing Ruby scripts which use Xapian +Group: Development/Languages/Ruby +Requires: %{name} = %{version}, ruby + +%description -n ruby-xapian +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. + + +%package -n tcl8-xapian +Summary: Files needed for developing TCL scripts which use Xapian +Group: Development/Libraries/TCL +Requires: %{name} = %{version}, tcl + +%description -n tcl8-xapian +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. + + +%package -n csharp-xapian +Summary: Files needed for developing C# applications which use Xapian +Group: Development/Languages/Other +Requires: %{name} = %{version}, mono-core + +%description -n csharp-xapian +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 C# applications which use Xapian. + + +%prep +%setup -q +%patch +%patch1 +%if 0%{suse_version} < 1100 +%patch2 +%endif + +%build +echo "tcl_dir = %{tcl_dir}" +echo "xapian_tcl_dir = %{xapian_tcl_dir}" +%configure \ + --with-swig \ + --with-python \ + --with-php \ + --with-ruby \ + --with-tcl \ + --with-csharp \ + --docdir=%{_docdir}/%{name} +%{__make} %{?jobs:-j%jobs} + +%install +%makeinstall +%if 0%{suse_version} < 1100 +%{__install} -d %{buildroot}%{_datadir}/tcl/xapian%{version} +%{__mv} %{buildroot}%{xapian_tcl_dir}/pkgIndex.tcl %{buildroot}%{_datadir}/tcl/xapian%{version} +%endif + +%{__install} -m 0644 AUTHORS COPYING ChangeLog HACKING NEWS README TODO \ + %{buildroot}%{_docdir}/%{name}/ + + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-, root, root) +%dir %{_docdir}/%{name}/ +#%doc %{_docdir}/%{name}/index.html +%doc %{_docdir}/%{name}/AUTHORS +%doc %{_docdir}/%{name}/COPYING +%doc %{_docdir}/%{name}/ChangeLog +%doc %{_docdir}/%{name}/HACKING +%doc %{_docdir}/%{name}/NEWS +%doc %{_docdir}/%{name}/README +%doc %{_docdir}/%{name}/TODO + +%files -n python-xapian +%defattr(-, root, root) +%{py_sitedir}/_xapian.so +%{py_sitedir}/xapian.py* +%doc %{_docdir}/%{name}/python/ + +%files -n php-xapian +%defattr(-, root, root) +%{php_extension_dir}/xapian.so +%doc %{_docdir}/%{name}/php/ +%{_datadir}/php5/xapian.php + +%files -n ruby-xapian +%defattr(-, root, root) +%{_libdir}/ruby/site_ruby/%{rb_ver}/%{rb_arch}/_xapian.so +%{_libdir}/ruby/site_ruby/%{rb_ver}/xapian.rb +%if 0%{suse_version} < 1100 +%dir %{_libdir}/ruby/site_ruby/%{rb_ver}/%{rb_arch} +%endif +%doc %{_docdir}/%{name}/ruby/ + +%files -n tcl8-xapian +%defattr(-, root, root) +%{xapian_tcl_dir} +%if 0%{suse_version} < 1100 +%{_datadir}/tcl/xapian%{version} +%endif +%doc %{_docdir}/%{name}/tcl8/ + +%files -n csharp-xapian +%defattr(-, root, root) +%{_libdir}/XapianSharp.la +%{_libdir}/XapianSharp.so +%dir %{_libdir}/mono/ +%{_libdir}/mono/XapianSharp/ +%dir %{_libdir}/mono/gac/ +%{_libdir}/mono/gac/XapianSharp/ +%doc %{_docdir}/%{name}/csharp/ + +%changelog +* Wed Jun 18 2008 pth@suse.de +- Update to 1.0.6. Changes since 1.0.4: + General: + * Wrap OP_VALUE_GE and OP_VALUE_LE and the new Query constructor which + they are used with. + * Wrap Xapian::Sorter and subclasses. + * Wrap Enquire::set_sort_by_key(), Enquire::set_sort_by_key_then_relevance(), + and Enquire::set_sort_by_relevance_then_key(). + PHP: + * php/smoketest.php: Fix to work under PHP4. + * Add feature test for XapianMultiValueSorter. + Python: + * Don't drop the GIL when calling Xapian.MSet.items and Xapian.ESet.items - + these properties build a python list, so dropping the GIL isn't safe and + may cause undefined behaviour in multithreaded environments. + Tcl: + * tcl8/docs/index.html: Update documentation to cover flint and mention that + quartz is now deprecated. + * Remove code to handle `const char *' exceptions - as of 1.0.0 the + QueryParser throws QueryParserError instead. +- Don't use the '[' shortcut for test in configure +- Add missing square brackets in the command to determine TCL_LIB +- Fix pkgIndex.tcl for distributions before openSUSE 11.0 +* Tue Nov 20 2007 mrueckert@suse.de +- updated java build requires +* Tue Nov 20 2007 mrueckert@suse.de +- fixed filelist +* Mon Nov 19 2007 mrueckert@suse.de +- update to version 1.0.4 +* Sun Jun 24 2007 mrueckert@suse.de +- update to version 1.0.1 +* Sat Nov 11 2006 mrueckert@suse.de +- initial package of version 0.9.9 |