2006-11-04 11:35:09 +00:00
|
|
|
#
|
2011-09-19 15:57:30 +00:00
|
|
|
# spec file for package xapian-core
|
|
|
|
#
|
Accepting request 764595 from home:alarrosa:branches:server:search
- Update to 1.4.14:
* API:
+ Xapian::QueryParser: Handle "" inside a quoted phrase better. In a quoted
boolean term, "" is treated as an escaped ", so handle it in a compatible way
for quoted phrases. Previously we'd drop out of the phrase and start a new
phrase. Fixes #630, reported by Austin Clements.
+ Xapian::Stem: The constructor which takes a stemmer name now takes an
optional second bool parameter - if this is true, then an unknown stemmer
name falls back to using the "none" stemmer instead of throwing an exception.
This allows simply constructing a stemmer from an ISO language code without
having to worry about whether there's a stemmer for that language, and
without having to handle an exception if there isn't.
+ Xapian::Stem: Fix a bug with handling 4-byte UTF-8 sequences which
potentially affects most of the stemmers. None of the stemmers work in
languages where 4-byte UTF-8 sequences are part of the alphabet, but this
bug could result in invalid UTF-8 sequences in terms generated from text
containing high Unicode codepoints such as emoji, which can cause issues (for
example, in some language bindings). Fix synced from Snowball git post
2.0.0.
+ Xapian::Stem: Add a new is_none() method which tests if this is a "none"
stemmer.
+ Xapian::Weight: The total length of all documents is now made available to
Xapian::Weight subclasses, and this is now used by DLHWeight, DPHWeight and
LMWeight. To maintain ABI compatibility, internally this still fetches the
average length and the number of documents, multiplies them, then rounds the
result, but in the next release series this will be handled directly.
+ Xapian::Database::locked() on an inmemory database used to always return
false, but an inmemory Database is always actually a WritableDatabase
underneath, so now we always report true in this case because it's really
always report being locked for writing.
OBS-URL: https://build.opensuse.org/request/show/764595
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=89
2020-01-20 14:38:52 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-09-19 15:57:30 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-24 11:45:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-11-04 11:35:09 +00:00
|
|
|
#
|
|
|
|
|
2011-09-19 15:57:30 +00:00
|
|
|
|
2006-11-04 11:35:09 +00:00
|
|
|
Name: xapian-core
|
2020-08-27 10:52:04 +00:00
|
|
|
Version: 1.4.17
|
2012-01-04 17:43:46 +00:00
|
|
|
Release: 0
|
2011-09-13 12:39:06 +00:00
|
|
|
Summary: The Xapian Probabilistic Information Retrieval Library
|
Accepting request 620422 from home:alarrosa:branches:server:search
- Update to 1.4.6:
* API classes now support C++11 move semantics when using a compiler which
we are confident supports them (currently compilers which define
__cplusplus >= 201103 plus a special check for MSVC 2015 or later).
C++11 move semantics provide a clean and efficient way for threaded code to
hand-off Xapian objects to worker threads, but in this case it's very
unhelpful for availability of these semantics to vary by compiler as it
quietly leads to a build with non-threadsafe behaviour. To address this,
user code can #define XAPIAN_MOVE_SEMANTICS before #include <xapian.h> to
force this on, and will then get a compilation failure if the compiler
lacks suitable support.
* MSet::snippet():
+ We were only escaping output for HTML/XML in some cases, which would
potentially allow HTML to be injected into output (this fixes
bnc#1099925, CVE-2018-0499).
+ Include certain leading non-word characters in snippets. Previously we
started the snippet at the start of the first actual word, but there are
various cases where including non-word characters in front of the actual
word adds useful context or otherwise aids comprehension.
* Add MSetIterator::get_sort_key() method. The sort key has always been
available internally, but wasn't exposed via the public API before, which
seems like an oversight as the collapse key has long been available.
* Database::compact():
+ Allow Compactor::resolve_duplicate_metadata() implementations to delete
entries. Previously if an implementation returned an empty string this
would result in a user meta-data entry with an empty value, which isn't
normally achievable (empty meta-data values aren't stored), and so will
cause odd behaviour. We now handle an empty returned value by
interpreting it in the natural way - it means that the merged result is
to not set a value for that key in the output database.
OBS-URL: https://build.opensuse.org/request/show/620422
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=80
2018-07-04 07:16:37 +00:00
|
|
|
License: GPL-2.0-only
|
2011-01-24 15:54:38 +00:00
|
|
|
Group: Productivity/Databases/Servers
|
Accepting request 764595 from home:alarrosa:branches:server:search
- Update to 1.4.14:
* API:
+ Xapian::QueryParser: Handle "" inside a quoted phrase better. In a quoted
boolean term, "" is treated as an escaped ", so handle it in a compatible way
for quoted phrases. Previously we'd drop out of the phrase and start a new
phrase. Fixes #630, reported by Austin Clements.
+ Xapian::Stem: The constructor which takes a stemmer name now takes an
optional second bool parameter - if this is true, then an unknown stemmer
name falls back to using the "none" stemmer instead of throwing an exception.
This allows simply constructing a stemmer from an ISO language code without
having to worry about whether there's a stemmer for that language, and
without having to handle an exception if there isn't.
+ Xapian::Stem: Fix a bug with handling 4-byte UTF-8 sequences which
potentially affects most of the stemmers. None of the stemmers work in
languages where 4-byte UTF-8 sequences are part of the alphabet, but this
bug could result in invalid UTF-8 sequences in terms generated from text
containing high Unicode codepoints such as emoji, which can cause issues (for
example, in some language bindings). Fix synced from Snowball git post
2.0.0.
+ Xapian::Stem: Add a new is_none() method which tests if this is a "none"
stemmer.
+ Xapian::Weight: The total length of all documents is now made available to
Xapian::Weight subclasses, and this is now used by DLHWeight, DPHWeight and
LMWeight. To maintain ABI compatibility, internally this still fetches the
average length and the number of documents, multiplies them, then rounds the
result, but in the next release series this will be handled directly.
+ Xapian::Database::locked() on an inmemory database used to always return
false, but an inmemory Database is always actually a WritableDatabase
underneath, so now we always report true in this case because it's really
always report being locked for writing.
OBS-URL: https://build.opensuse.org/request/show/764595
OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=89
2020-01-20 14:38:52 +00:00
|
|
|
URL: http://www.xapian.org/
|
2015-02-20 14:05:46 +00:00
|
|
|
Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz.asc
|
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: baselibs.conf
|
2012-01-04 17:43:46 +00:00
|
|
|
BuildRequires: automake
|
2011-09-13 12:39:06 +00:00
|
|
|
BuildRequires: fdupes
|
2016-11-12 07:43:25 +00:00
|
|
|
BuildRequires: gcc-c++ >= 4.6
|
2011-05-03 18:00:43 +00:00
|
|
|
BuildRequires: libuuid-devel
|
2015-03-12 08:23:11 +00:00
|
|
|
BuildRequires: pkg-config
|
2013-12-16 09:17:14 +00:00
|
|
|
BuildRequires: xz
|
2011-09-13 12:39:06 +00:00
|
|
|
BuildRequires: zlib-devel
|
2016-07-09 06:38:14 +00:00
|
|
|
Requires: libxapian30 = %{version}
|
2011-09-13 12:39:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-05-03 19:21:16 +00:00
|
|
|
|
2006-06-27 10:58:33 +00:00
|
|
|
%description
|
2018-07-26 13:38:20 +00:00
|
|
|
Xapian is a Probabilistic Information Retrieval library. It offers an
|
|
|
|
adaptable toolkit for adding indexing and search facilities to
|
|
|
|
applications.
|
2006-06-27 10:58:33 +00:00
|
|
|
|
2016-07-09 06:38:14 +00:00
|
|
|
%package -n libxapian30
|
2011-04-11 08:06:37 +00:00
|
|
|
Summary: Xapian search engine libraries
|
2018-07-26 13:38:20 +00:00
|
|
|
Group: System/Libraries
|
2011-05-03 19:21:16 +00:00
|
|
|
|
2016-07-09 06:38:14 +00:00
|
|
|
%description -n libxapian30
|
2018-07-26 13:38:20 +00:00
|
|
|
Xapian is a Probabilistic Information Retrieval library. It offers an
|
|
|
|
adaptable toolkit for adding indexing and search facilities to
|
|
|
|
applications.
|
2006-06-27 10:58:33 +00:00
|
|
|
|
2011-09-13 12:39:06 +00:00
|
|
|
%package -n libxapian-devel
|
|
|
|
Summary: Files needed for building packages which use Xapian
|
2011-04-11 08:06:37 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-09-13 12:39:06 +00:00
|
|
|
Requires: gcc-c++
|
2012-12-26 11:58:33 +00:00
|
|
|
Requires: libuuid-devel
|
2016-07-09 06:38:14 +00:00
|
|
|
Requires: libxapian30 = %{version}
|
2011-09-13 12:39:06 +00:00
|
|
|
Requires: zlib-devel
|
2011-05-03 19:21:16 +00:00
|
|
|
|
2011-09-13 12:39:06 +00:00
|
|
|
%description -n libxapian-devel
|
2018-07-26 13:38:20 +00:00
|
|
|
Xapian is a Probabilistic Information Retrieval library. It offers an
|
|
|
|
adaptable toolkit for adding indexing and search facilities to
|
|
|
|
applications.
|
|
|
|
|
|
|
|
This subpackage contains the header files for the library.
|
2011-04-11 08:06:37 +00:00
|
|
|
|
|
|
|
%package doc
|
2018-07-26 13:38:20 +00:00
|
|
|
Summary: Documentation for the xapian-core libraries
|
|
|
|
Group: Documentation/HTML
|
2011-04-11 08:06:37 +00:00
|
|
|
Requires: %{name} = %{version}
|
2011-09-13 12:39:06 +00:00
|
|
|
|
2011-04-11 08:06:37 +00:00
|
|
|
%description doc
|
2018-07-26 13:38:20 +00:00
|
|
|
Xapian is a Probabilistic Information Retrieval library.
|
|
|
|
|
|
|
|
This subpackage provides the documentation for Xapian.
|
2006-06-27 10:58:33 +00:00
|
|
|
|
2011-04-11 08:06:37 +00:00
|
|
|
%package examples
|
2011-09-13 12:39:06 +00:00
|
|
|
Summary: Examples for Xapian-core libraries
|
2011-04-11 08:06:37 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
2011-09-13 12:39:06 +00:00
|
|
|
|
2011-04-11 08:06:37 +00:00
|
|
|
%description examples
|
2018-07-26 13:38:20 +00:00
|
|
|
Xapian is a Probabilistic Information Retrieval Library.
|
|
|
|
|
|
|
|
This subpackage contains some examples for Xapian.
|
2011-01-24 15:54:38 +00:00
|
|
|
|
2006-06-27 10:58:33 +00:00
|
|
|
%prep
|
2011-01-24 15:54:38 +00:00
|
|
|
%setup -q
|
2006-06-27 10:58:33 +00:00
|
|
|
|
|
|
|
%build
|
2014-04-28 08:11:49 +00:00
|
|
|
%configure \
|
|
|
|
%ifarch i586
|
|
|
|
--disable-sse \
|
|
|
|
%endif
|
2015-03-12 08:23:11 +00:00
|
|
|
--docdir=%{_docdir}/%{name}/
|
2014-04-28 08:11:49 +00:00
|
|
|
|
2011-09-13 12:39:06 +00:00
|
|
|
make %{?_smp_mflags}
|
2006-06-27 10:58:33 +00:00
|
|
|
|
|
|
|
%install
|
2015-02-20 14:05:46 +00:00
|
|
|
make DESTDIR=%{buildroot} docdatadir=%{_docdir}/%{name} install %{?_smp_mflags}
|
2018-11-20 12:08:23 +00:00
|
|
|
rm -rf examples/{.libs,.deps,.dirstamp,*.o,quest,delve,simplesearch,simpleexpand,simpleindex,copydatabase,xapian-metadata,xapian-pos}
|
2011-09-16 09:41:20 +00:00
|
|
|
cp -vr examples %{buildroot}%{_docdir}/%{name}/
|
2011-09-13 12:39:06 +00:00
|
|
|
find . -name \*.spec -delete
|
2018-11-20 12:08:23 +00:00
|
|
|
install -m 644 AUTHORS ChangeLog README NEWS HACKING PLATFORMS ChangeLog.examples %{buildroot}%{_docdir}/%{name}
|
|
|
|
# SLE12 support needs to copy this manually, since %doc would include the examples subdirectory too
|
|
|
|
%if 0%{suse_version} < 1500 && !0%{?is_opensuse}
|
|
|
|
install -m 644 COPYING %{buildroot}%{_docdir}/%{name}
|
|
|
|
%endif
|
2015-02-20 14:05:46 +00:00
|
|
|
%fdupes %{buildroot}%{_docdir}/%{name}
|
2011-04-11 08:06:37 +00:00
|
|
|
|
2016-07-09 06:38:14 +00:00
|
|
|
%post -n libxapian30 -p /sbin/ldconfig
|
2006-06-27 10:58:33 +00:00
|
|
|
|
2016-07-09 06:38:14 +00:00
|
|
|
%postun -n libxapian30 -p /sbin/ldconfig
|
2006-06-27 10:58:33 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2011-11-29 09:11:12 +00:00
|
|
|
%dir %{_docdir}/%{name}
|
2018-11-20 12:08:23 +00:00
|
|
|
%if 0%{suse_version} < 1500 && !0%{?is_opensuse}
|
2011-11-29 09:11:12 +00:00
|
|
|
%{_docdir}/%{name}/COPYING
|
2018-11-20 12:08:23 +00:00
|
|
|
%else
|
|
|
|
%license COPYING
|
|
|
|
%endif
|
|
|
|
%{_docdir}/%{name}/AUTHORS
|
2011-11-29 09:11:12 +00:00
|
|
|
%{_docdir}/%{name}/ChangeLog
|
|
|
|
%{_docdir}/%{name}/README
|
|
|
|
%{_docdir}/%{name}/NEWS
|
|
|
|
%{_docdir}/%{name}/HACKING
|
|
|
|
%{_docdir}/%{name}/PLATFORMS
|
2011-04-11 08:06:37 +00:00
|
|
|
%{_bindir}/xapian-tcpsrv
|
|
|
|
%{_bindir}/xapian-progsrv
|
2011-01-24 15:54:38 +00:00
|
|
|
%{_bindir}/quest
|
2011-04-11 08:06:37 +00:00
|
|
|
%{_bindir}/copydatabase
|
2006-06-27 10:58:33 +00:00
|
|
|
%{_bindir}/simpleindex
|
|
|
|
%{_bindir}/simplesearch
|
2011-04-11 08:06:37 +00:00
|
|
|
%{_bindir}/simpleexpand
|
2011-01-24 15:54:38 +00:00
|
|
|
%{_bindir}/xapian-compact
|
2011-04-11 08:06:37 +00:00
|
|
|
%{_bindir}/xapian-check
|
2016-07-09 06:57:28 +00:00
|
|
|
%{_bindir}/xapian-delve
|
2011-05-03 18:19:00 +00:00
|
|
|
%{_bindir}/xapian-metadata
|
2018-11-20 12:08:23 +00:00
|
|
|
%{_bindir}/xapian-pos
|
2011-05-03 18:19:00 +00:00
|
|
|
%{_bindir}/xapian-replicate
|
|
|
|
%{_bindir}/xapian-replicate-server
|
2011-04-11 08:06:37 +00:00
|
|
|
%{_mandir}/man1/xapian-check.1*
|
2016-07-09 06:57:28 +00:00
|
|
|
%{_mandir}/man1/xapian-delve.1*
|
2006-06-27 10:58:33 +00:00
|
|
|
%{_mandir}/man1/copydatabase.1*
|
|
|
|
%{_mandir}/man1/quest.1*
|
|
|
|
%{_mandir}/man1/xapian-compact.1*
|
|
|
|
%{_mandir}/man1/xapian-config.1*
|
2006-11-11 04:32:24 +00:00
|
|
|
%{_mandir}/man1/xapian-progsrv.1*
|
2006-06-27 10:58:33 +00:00
|
|
|
%{_mandir}/man1/xapian-tcpsrv.1*
|
2011-05-03 18:19:00 +00:00
|
|
|
%{_mandir}/man1/xapian-metadata.1*
|
2018-11-20 12:08:23 +00:00
|
|
|
%{_mandir}/man1/xapian-pos.1*
|
2011-05-03 18:19:00 +00:00
|
|
|
%{_mandir}/man1/xapian-replicate.1*
|
|
|
|
%{_mandir}/man1/xapian-replicate-server.1*
|
2016-07-09 06:57:28 +00:00
|
|
|
%{_datadir}/xapian-core/
|
2011-01-24 15:54:38 +00:00
|
|
|
|
2016-07-09 06:38:14 +00:00
|
|
|
%files -n libxapian30
|
2006-06-27 10:58:33 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libxapian.so.*
|
|
|
|
|
2011-09-13 12:39:06 +00:00
|
|
|
%files -n libxapian-devel
|
2006-06-27 10:58:33 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_bindir}/xapian-config
|
2011-04-11 08:06:37 +00:00
|
|
|
%{_includedir}/xapian
|
2006-06-27 10:58:33 +00:00
|
|
|
%{_includedir}/xapian.h
|
2011-01-24 15:54:38 +00:00
|
|
|
%{_libdir}/libxapian.so
|
2011-04-11 08:06:37 +00:00
|
|
|
%{_libdir}/libxapian.la
|
2006-06-27 10:58:33 +00:00
|
|
|
%{_datadir}/aclocal/xapian.m4
|
2011-05-03 18:33:01 +00:00
|
|
|
%dir %{_libdir}/cmake/
|
2011-05-03 18:19:00 +00:00
|
|
|
%{_libdir}/cmake/xapian/
|
2015-03-12 08:23:11 +00:00
|
|
|
%{_libdir}/pkgconfig/xapian-core.pc
|
2011-04-11 08:06:37 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
2011-09-16 09:54:45 +00:00
|
|
|
%{_docdir}/%{name}/*.html
|
|
|
|
%{_docdir}/%{name}/apidoc*
|
2011-04-11 08:06:37 +00:00
|
|
|
|
|
|
|
%files examples
|
|
|
|
%defattr(-, root, root)
|
2018-11-20 12:08:23 +00:00
|
|
|
%{_docdir}/%{name}/ChangeLog.examples
|
2011-09-16 09:54:45 +00:00
|
|
|
%{_docdir}/%{name}/examples/
|
2006-11-04 11:35:09 +00:00
|
|
|
|
2007-04-01 19:16:33 +00:00
|
|
|
%changelog
|