diff options
Diffstat (limited to 'deps/xapian-bindings/SPECS/xapian-bindings.spec')
-rw-r--r-- | deps/xapian-bindings/SPECS/xapian-bindings.spec | 218 |
1 files changed, 218 insertions, 0 deletions
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 |