Package xapian-core: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

Name: xapian-core
Version: 1.4.25
Release: alt1
%define sover 30

Summary: Xapian is an open source search engine library

License: GPL-2.0-or-later
Group: Databases
Url: http://www.xapian.org
Vcs: https://github.com/xapian/xapian/

Source: http://www.oligarchy.co.uk/xapian/%version/%{name}-%{version}.tar
Source100: %name.watch

Packager: Michael Shigorin <mike@altlinux.org>

BuildRequires: gcc-c++ zlib-devel libuuid-devel

%description
Xapian is a highly adaptable toolkit which allows developers to easily
add advanced indexing and search facilities to their own applications.
It has built-in support for several families of weighting models
and also supports a rich set of boolean query operators.

This is core package.

%package -n libxapian%sover
Summary: Xapian search engine libraries
Group: System/Libraries
Obsoletes: libxapian < %EVR

%description -n libxapian%sover
Xapian is a highly adaptable toolkit which allows developers to easily
add advanced indexing and search facilities to their own applications.
It has built-in support for several families of weighting models and
also supports a rich set of boolean query operators.

This package provides the libraries for applications using Xapian
functionality.

%package -n libxapian-devel
Group: Development/C++
Summary: Files needed for building packages which use Xapian
Requires: libxapian%sover = %EVR

%description -n libxapian-devel
Xapian is a highly adaptable toolkit which allows developers to easily
add advanced indexing and search facilities to their own applications.
It has built-in support for several families of weighting models and
also supports a rich set of boolean query operators.

This package provides the files needed for building packages which
use Xapian library.

%package -n %name-doc
Group: Development/Documentation
Summary: Developer's documentation for Xapian
Obsoletes: xapian-doc < 0.9.9
Provides: xapian-doc = %EVR
BuildArch: noarch

%description -n %name-doc
Xapian is a highly adaptable toolkit which allows developers to easily
add advanced indexing and search facilities to their own applications.
It has built-in support for several families of weighting models and
also supports a rich set of boolean query operators.

This package contains API reference in HTML and PostScript.

%prep
%setup
%autopatch
%ifarch %e2k
# current lcc doesn't know these
sed -i  -e 's,-fno-gnu-keywords,,;s,-Wstrict-null-sentinel,,' \
	-e 's,-Wstrict-overflow=1,,;s,-Wlogical-op,,;s,-Wdouble-promotion,,' \
	configure.ac
# http://stackoverflow.com/questions/14892101/
%add_optflags -ftls-model=global-dynamic
%endif

%build
%define optflags_lto %nil
%ifarch %ix86
%add_optflags -ffloat-store
%endif
%autoreconf
%configure \
%ifarch %ix86
	--disable-sse
%endif

%make_build
gzip -9nf ChangeLog

%install
%makeinstall_std
rm -rf %buildroot%_datadir/doc/xapian-core/

%check
unset MAKEFLAGS
time %make_build check

%files
%_bindir/copydatabase
%_bindir/quest
%_bindir/simpleexpand
%_bindir/simpleindex
%_bindir/simplesearch
%_bindir/xapian-check
%_bindir/xapian-compact
%_bindir/xapian-delve
%_bindir/xapian-metadata
%_bindir/xapian-pos
%_bindir/xapian-progsrv
%_bindir/xapian-replicate
%_bindir/xapian-replicate-server
%_bindir/xapian-tcpsrv
%_datadir/xapian-core/
%_man1dir/*.1*
%exclude %_man1dir/xapian-config.1*
%doc AUTHORS ChangeLog* NEWS PLATFORMS README

%files -n libxapian%sover
%_libdir/*.so.%sover
%_libdir/*.so.%sover.*

%files -n libxapian-devel
%_bindir/xapian-config
%_includedir/xapian.h
%_includedir/xapian/
%_libdir/libxapian.so
%_libdir/cmake/xapian/
%_datadir/aclocal/xapian.m4
%_man1dir/xapian-config.1*
%_pkgconfigdir/*.pc

%files -n %name-doc
%doc docs/*.html
%doc docs/apidoc/html/
%doc HACKING

# NOTE:
# - do NOT build this package from git unless you want to maintain it
#   with xapian-bindings, and perhaps xapian-omega too.
#   I use watch file and it's more convenient to do that with srpms

%changelog
* Wed Mar 13 2024 Vitaly Chikunov <vt@altlinux.org> 1.4.25-alt1
- Update to 1.4.25 (2024-03-08).

* Sat Dec 02 2023 Vitaly Chikunov <vt@altlinux.org> 1.4.24-alt1
- Update to 1.4.24 (2023-11-06).

* Tue Jul 11 2023 Vitaly Chikunov <vt@altlinux.org> 1.4.23-alt1
- Update to 1.4.23 (2023-07-07).

* Sun Feb 05 2023 Vitaly Chikunov <vt@altlinux.org> 1.4.22-alt1
- Update to 1.4.22 (2023-02-02).

* Sun Oct 23 2022 Vitaly Chikunov <vt@altlinux.org> 1.4.21-alt1
- Update to 1.4.21 (2022-09-22).
- spec: Update Summary, License, and %%description (it's not "Probabilistic"
  anymore) tags.
- Disable LTO build (as it triggered compiler bug).
- Rename libxapian to libxapian30 so that ABI change is tracked better.
- Build IA-32 without SSE to match microarchitecture baseline.
- spec: Add %%check section with tests run.

* Thu Oct 14 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.15-alt2
- Fixed build with gcc-11

* Mon Mar 23 2020 Vitaly Lipatov <lav@altlinux.ru> 1.4.15-alt1
- new version 1.4.15 (with rpmrb script)
- update buildreqs

* Mon Oct 15 2018 Michael Shigorin <mike@altlinux.org> 1.4.5-alt3
- drop BR: libwrap (was weird anyways)

* Sun Jul 01 2018 Michael Shigorin <mike@altlinux.org> 1.4.5-alt2
- support e2kv4 through %%e2k macro (grenka@)
- merged my changes back

* Thu Oct 19 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.5-alt1
- Updated to latest stable upstream version 1.4.5.

* Tue Oct 17 2017 Michael Shigorin <mike@altlinux.org> 1.4.5-alt0
- new version (watch file uupdate)

* Tue May 09 2017 Michael Shigorin <mike@altlinux.org> 1.4.4-alt1
- new version (watch file uupdate)

* Fri Jan 27 2017 Michael Shigorin <mike@altlinux.org> 1.4.3-alt1
- new version (watch file uupdate)

* Tue Dec 27 2016 Michael Shigorin <mike@altlinux.org> 1.4.2-alt1
- new version (watch file uupdate)
- E2K: lcc adaptations

* Mon Oct 24 2016 Michael Shigorin <mike@altlinux.org> 1.4.1-alt1
- new version (watch file uupdate)

* Sun Jun 26 2016 Michael Shigorin <mike@altlinux.org> 1.4.0-alt1
- new version (watch file uupdate)
  + dropped xapian-chert-update, xapian-inspect utilities
  + renamed delve to xapian-delve

* Wed Mar 30 2016 Michael Shigorin <mike@altlinux.org> 1.2.23-alt1
- new version (watch file uupdate)

* Fri Jan 01 2016 Michael Shigorin <mike@altlinux.org> 1.2.22-alt1
- new version (watch file uupdate)

* Fri May 22 2015 Michael Shigorin <mike@altlinux.org> 1.2.21-alt2
- added pkgconfig file (thx aris@)

* Thu May 21 2015 Michael Shigorin <mike@altlinux.org> 1.2.21-alt1
- new version (watch file uupdate)

* Sun Mar 22 2015 Michael Shigorin <mike@altlinux.org> 1.2.20-alt1
- new version (watch file uupdate)

* Tue Oct 21 2014 Michael Shigorin <mike@altlinux.org> 1.2.19-alt1
- new version (watch file uupdate)

* Mon Jun 23 2014 Michael Shigorin <mike@altlinux.org> 1.2.18-alt1
- new version (watch file uupdate)

* Fri Mar 21 2014 Michael Shigorin <mike@altlinux.org> 1.2.17-alt1
- new version (watch file uupdate)

* Thu Dec 05 2013 Michael Shigorin <mike@altlinux.org> 1.2.16-alt1
- new version (watch file uupdate)
- dropped libtool patch, thanks upstream for the notice it's not needed

* Mon Apr 22 2013 Michael Shigorin <mike@altlinux.org> 1.2.15-alt1
- new version (watch file uupdate)

* Fri Mar 22 2013 Michael Shigorin <mike@altlinux.org> 1.2.14-alt1
- new version (watch file uupdate)

* Wed Feb 20 2013 Michael Shigorin <mike@altlinux.org> 1.2.13-alt1
- new version (watch file uupdate)

* Thu Jun 28 2012 Michael Shigorin <mike@altlinux.org> 1.2.12-alt1
- new version (watch file uupdate)
  + minor bugfixes/enhancements in 1.2.11 which had incorrect soname

* Thu May 10 2012 Michael Shigorin <mike@altlinux.org> 1.2.10-alt1
- new version (watch file uupdate)
  + assorted fixes

* Fri Mar 16 2012 Michael Shigorin <mike@altlinux.org> 1.2.9-alt1
- 1.2.9

* Fri Aug 12 2011 Michael Shigorin <mike@altlinux.org> 1.2.7-alt1
- 1.2.7

* Thu Apr 14 2011 Michael Shigorin <mike@altlinux.org> 1.2.5-alt1
- 1.2.5: http://trac.xapian.org/wiki/ReleaseOverview/1.2.5

* Wed Mar 30 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.3-alt1.1
- Rebuilt for debuginfo

* Tue Dec 21 2010 Michael Shigorin <mike@altlinux.org> 1.2.4-alt1
- 1.2.4: http://trac.xapian.org/wiki/ReleaseOverview/1.2.4
  + NB: remote database protocol change
  + Omega improvements
  + binding fixes
- [backdated] not published due to python module strict dep

* Mon Oct 04 2010 Michael Shigorin <mike@altlinux.org> 1.2.3-alt1
- 1.2.3
- added cmake files to devel subpackage

* Tue Jun 22 2010 Michael Shigorin <mike@altlinux.org> 1.0.21-alt1
- 1.0.21 (postponed soname change till 1.2.x)

* Wed May 05 2010 Michael Shigorin <mike@altlinux.org> 1.2.0-alt1
- 1.2.0
  + dropped quartz* utils (obsolete)
  + added a few utilities in return
- buildreq

* Wed May 05 2010 Michael Shigorin <mike@altlinux.org> 1.0.20-alt1
- 1.0.20

* Thu Apr 15 2010 Michael Shigorin <mike@altlinux.org> 1.0.19-alt1
- 1.0.19

* Mon Feb 15 2010 Michael Shigorin <mike@altlinux.org> 1.0.18-alt1
- 1.0.18: minor fixes/improvements

* Fri Jan 08 2010 Michael Shigorin <mike@altlinux.org> 1.0.17-alt3
- hacked xapian-config due to missing .la files (closes: #22629)

* Sun Dec 13 2009 Michael Shigorin <mike@altlinux.org> 1.0.17-alt2
- buildreq (thx repocop)
- gzip ChangeLog

* Thu Nov 19 2009 Michael Shigorin <mike@altlinux.org> 1.0.17-alt1
- 1.0.17

* Thu Aug 27 2009 Michael Shigorin <mike@altlinux.org> 1.0.15-alt1
- 1.0.15

* Fri Jul 24 2009 Michael Shigorin <mike@altlinux.org> 1.0.14-alt2
- noarch doc subpackage (repocop)
- minor spec cleanup

* Wed Jul 22 2009 Michael Shigorin <mike@altlinux.org> 1.0.14-alt1
- 1.0.14: more robust shared library

* Mon May 25 2009 Michael Shigorin <mike@altlinux.org> 1.0.13-alt1
- 1.0.13: minor fixes

* Tue Apr 21 2009 Michael Shigorin <mike@altlinux.org> 1.0.12-alt1
- 1.0.12: minor fixes/improvements

* Tue Apr 07 2009 Michael Shigorin <mike@altlinux.org> 1.0.11-alt1
- 1.0.11: http://trac.xapian.org/wiki/ReleaseOverview/1.0.11

* Wed Dec 24 2008 Michael Shigorin <mike@altlinux.org> 1.0.10-alt1
- 1.0.10: http://trac.xapian.org/wiki/ReleaseOverview/1.0.10
  + minor bugfixes

* Thu Dec 04 2008 Michael Shigorin <mike@altlinux.org> 1.0.9-alt2
- applied repocop patch

* Mon Nov 03 2008 Michael Shigorin <mike@altlinux.org> 1.0.9-alt1
- 1.0.9: http://trac.xapian.org/wiki/ReleaseOverview/1.0.9
  + spelling correction even faster
  + fixed issues due to excess precision

* Thu Sep 04 2008 Michael Shigorin <mike@altlinux.org> 1.0.8-alt1
- 1.0.8: http://trac.xapian.org/wiki/ReleaseOverview/1.0.8
  + assorted fixes and performance improvements

* Wed Jul 16 2008 Michael Shigorin <mike@altlinux.org> 1.0.7-alt1
- 1.0.7: http://trac.xapian.org/wiki/ReleaseOverview/1.0.7
  + performance enhancements in some cases
  + minor bugfixes

* Tue Mar 18 2008 Michael Shigorin <mike@altlinux.org> 1.0.6-alt1
- 1.0.6 (minor feature enhancements)
  + single-ended range value checks
  + faster stemmers
  + improvements to xapian-check,
    xapian-compact metadata handling

* Sat Dec 22 2007 Michael Shigorin <mike@altlinux.org> 1.0.5-alt1
- 1.0.5 (minor feature enhancements)

* Tue Oct 30 2007 Michael Shigorin <mike@altlinux.org> 1.0.4-alt1
- 1.0.4: http://wiki.xapian.org/ReleaseOverview/1.0.4
  + faster matcher
  + fixed flint bug introduced in 1.0.3
  + remote protocol minor version has been increased

* Mon Oct 01 2007 Michael Shigorin <mike@altlinux.org> 1.0.3-alt1
- 1.0.3:
  + Flint DB format extended to support user metadata,
    1.0.2 and earlier won't be able to read 1.0.3 DBs
    (upgrade is automatic on opening with newer version)
- added xapian-inspect

* Thu Jul 05 2007 Michael Shigorin <mike@altlinux.org> 1.0.2-alt1
- 1.0.2: http://wiki.xapian.org/ReleaseOverview/1.0.2
  + remote protocol version increased
  + optional Btree tables (1.0.2 is backwards compatible with
    1.0.0 and 1.0.1 databases but older versions won't be able
    to read DBs created or modified by 1.0.2)
  + QueryParser improvements, incl. precedence fixes for
    logical operators
  + misc. bugfixes in NumberValueRangeProcessor, matcher,
    delete_document(), exception handling during commit

* Mon Jun 11 2007 Michael Shigorin <mike@altlinux.org> 1.0.1-alt1
- 1.0.1: http://wiki.xapian.org/ReleaseOverview/1.0.1
  + warning: forced incompatible ABI change due to fixing
    possible double-free error introduced in 1.0.0
  + on a similar note, remote protocol version increased
  + upstream promises to try hard and avoid ABI breakage
    during 1.0.x (after 1.0.1 till 1.1.0)
  = basically we have to relink clients (of both library
    and server)

* Tue May 22 2007 Michael Shigorin <mike@altlinux.org> 1.0.0-alt1
- 1.0.0
- removed all patches
- added Packager:
- updated BuildRequires:
- added xapian-check

* Mon Mar 12 2007 Michael Shigorin <mike@altlinux.org> 0.9.10-alt1
- 0.9.10
- removed patch1

* Tue Nov 28 2006 Michael Shigorin <mike@altlinux.org> 0.9.9-alt2
- apply upstream patch referenced from 0.9.9 release notes
- apply another patch for NEAR bug (from recoll author)

* Thu Nov 09 2006 Michael Shigorin <mike@altlinux.org> 0.9.9-alt1
- 0.9.9
- renamed from xapian to xapian-core accordingly to upstream
- apidoc is now PDF instead of PS
- spec cleanup
- SMP make

* Fri Nov 03 2006 Michael Shigorin <mike@altlinux.org> 0.9.8-alt1
- 0.9.8

* Wed Oct 11 2006 Michael Shigorin <mike@altlinux.org> 0.9.7-alt1
- 0.9.7
- added xapian-progsrv

* Mon May 15 2006 Michael Shigorin <mike@altlinux.org> 0.9.6-alt1
- 0.9.6 (minor bugfixes)
  + added Ruby bindings
- added manpages

* Mon Apr 10 2006 Michael Shigorin <mike@altlinux.org> 0.9.5-alt1
- 0.9.5

* Fri Mar 10 2006 Michael Shigorin <mike@altlinux.org> 0.9.4-alt1
- 0.9.4
- removed patch1

* Mon Feb 06 2006 Michael Shigorin <mike@altlinux.org> 0.9.2-alt3
- thanks upstream developer Olly Betts <olly/survex.com> for
  checking our package and Dmitry Levin <ldv@> for libtool/xapian-config
  advice and patch
- finished implementing -devel-static subpackage, just in case;
  build disabled by default
- temporarily removed unicode query patch to check whether it was relevant
  to Cyrillic icase search with recoll

* Tue Dec 06 2005 Michael Shigorin <mike@altlinux.org> 0.9.2-alt2
- applied patch to enable unicode querying (disables stemming)
- see also recoll (qt frontend)

* Mon Dec 05 2005 Michael Shigorin <mike@altlinux.org> 0.9.2-alt1
- built for ALT Linux (recoll dependency)
- removed static libraries (anyone needing 'em adds devel-static
  and mails me a spec patch)
- moved API docs to subpackage
- spec cleanup