Package tokyocabinet: 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
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
%def_enable fastest
%def_disable debug
%def_disable devel
%def_disable profile
%def_enable shared
%def_enable static
%def_disable uyield
%def_enable zlib
%def_enable bzip
%def_disable lzo
%def_disable lzma
%def_enable pthread
%def_enable off64
%def_disable check
#----------------------------------------------------------------------
%define subst_enable_to() %{expand:%%{?_enable_%{1}:--enable-%{2}}} %{expand:%%{?_disable_%{1}:--disable-%{2}}}

%{!?x86_64:%global x86_64 x86_64}

%define Name Tokyo Cabinet
Name: tokyocabinet
%define lname lib%name
Summary: A modern implementation of a DBM
Version: 1.4.47
Release: alt2
License: %lgpl2plus
Group: Databases
Packager: Vladimir Lettiev <crux@altlinux.org>
URL: http://fallabs.com/%name
Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires(pre): rpm-build-licenses
%{?_enable_zlib:BuildRequires: zlib-devel}
%{?_enable_bzip:BuildRequires: bzlib-devel}
%{?_enable_lzo:BuildRequires: liblzo2-devel}
%{?_enable_lzma:BuildRequires: lzmalib-devel}

%description
%Name is a library of routines for managing a database. It is
the successor of QDBM. %Name runs very fast. For example, the
time required to store 1 million records is 1.5 seconds for a hash
database and 2.2 seconds for a B+ tree database. Moreover, the database
size is very small and can be up to 8EB. Furthermore, the scalability
of %Name is great.


%package utils
Summary: Command line tools for managing %Name databases
Group: Databases
Requires: %lname = %version-%release

%description utils
%Name is a library of routines for managing a database. It is
the successor of QDBM. %Name runs very fast. For example, the
time required to store 1 million records is 1.5 seconds for a hash
database and 2.2 seconds for a B+ tree database. Moreover, the database
size is very small and can be up to 8EB. Furthermore, the scalability
of %Name is great.
This package contains command line tools for managing %Name
databases.


%if_enabled shared
%package -n %lname
Summary: %Name library
Group: System/Libraries

%description -n %lname
%Name is a library of routines for managing a database. It is
the successor of QDBM. %Name runs very fast. For example, the
time required to store 1 million records is 1.5 seconds for a hash
database and 2.2 seconds for a B+ tree database. Moreover, the database
size is very small and can be up to 8EB. Furthermore, the scalability
of %Name is great.
%endif


%package -n %lname-devel
Summary: Headers for developing programs that will use %lname
Group: Development/C
Requires: %lname%{?_disable_shared:-devel-static} = %version-%release

%description -n %lname-devel
%Name is a library of routines for managing a database. It is
the successor of QDBM. %Name runs very fast. For example, the
time required to store 1 million records is 1.5 seconds for a hash
database and 2.2 seconds for a B+ tree database. Moreover, the database
size is very small and can be up to 8EB. Furthermore, the scalability
of %Name is great.
This package contains the libraries and header files needed for
developing with %lname.


%if_enabled static
%package -n %lname-devel-static
Summary: Static version of %Name database library
Group: Development/C
Requires: %lname-devel = %version-%release

%description -n %lname-devel-static
%Name is a library of routines for managing a database. It is
the successor of QDBM. %Name runs very fast. For example, the
time required to store 1 million records is 1.5 seconds for a hash
database and 2.2 seconds for a B+ tree database. Moreover, the database
size is very small and can be up to 8EB. Furthermore, the scalability
of %Name is great.
This package contains static libraries for building statically linked
programs which use %Name.
%endif


%package doc
Summary: Documentation for %Name
Group: Documentation
BuildArch: noarch

%description doc
%Name is a library of routines for managing a database. It is
the successor of QDBM. %Name runs very fast. For example, the
time required to store 1 million records is 1.5 seconds for a hash
database and 2.2 seconds for a B+ tree database. Moreover, the database
size is very small and can be up to 8EB. Furthermore, the scalability
of %Name is great.
This package contains documentation for developers.


%prep
%setup
%patch -p1


%build
%define _optlevel 3
%ifarch %ix86 %x86_64
%add_optflags -minline-all-stringops
%endif
%autoreconf
%configure \
    %{subst_enable fastest} \
    %{subst_enable debug} \
    %{subst_enable devel} \
    %{subst_enable profile} \
    %{subst_enable shared} \
    %{subst_enable uyield} \
    %{subst_enable zlib} \
    %{subst_enable bzip} \
    %{subst_enable_to lzo exlzo} \
    %{subst_enable_to lzma exlzma} \
    %{subst_enable pthread} \
    %{subst_enable off64}
%make_build


%install
%make_install DESTDIR=%buildroot install
rm -f %buildroot%_datadir/%name/{COPYING,README,doc/*.ppt}
bzip2 --best %buildroot%_datadir/%name/ChangeLog
install -d -m 0755 %buildroot%_docdir
mv %buildroot{%_datadir/%name,%_docdir/%name-%version}


%check
%make_build check


%files utils
%_bindir/*
%_libexecdir/*.cgi
%_man1dir/*


%if_enabled shared
%files -n %lname
%_libdir/*.so.*
%endif


%files -n %lname-devel
%_includedir/*
%{?_enable_shared:%_libdir/*.so}
%_pkgconfigdir/*
%_man3dir/*


%if_enabled static
%files -n %lname-devel-static
%_libdir/*.a
%endif


%files doc
%_docdir/%name-%version


%changelog
* Mon Mar 02 2020 Dmitry V. Levin <ldv@altlinux.org> 1.4.47-alt2
- Rebuilt.

* Fri Feb 18 2011 Vladimir Lettiev <crux@altlinux.ru> 1.4.47-alt1
- 1.4.47

* Sun Nov 21 2010 Vladimir Lettiev <crux@altlinux.ru> 1.4.46-alt1
- 1.4.46
- update URL
- dropped packager tag

* Thu Oct 28 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.42-alt2
- Rebuilt for soname set-versions

* Thu Jan 21 2010 Led <led@altlinux.ru> 1.4.42-alt1
- 1.4.42

* Wed Dec 09 2009 Led <led@altlinux.ru> 1.4.41-alt1
- 1.4.41

* Mon Nov 16 2009 Led <led@altlinux.ru> 1.4.39-alt1
- 1.4.39:
  + new macros: _alignof, _issigned, _maxof, TCALIGNOF, tcgeneric_t

* Tue Nov 10 2009 Led <led@altlinux.ru> 1.4.38-alt1
- 1.4.38:
  + new function: tcmpoolclear

* Mon Oct 19 2009 Led <led@altlinux.ru> 1.4.35-alt1
- 1.4.35:
  + new functions: tcadbsetskelmulti, tcadbmulnew, tcadbmuldel,
    setskeltran
  + "range" sub function for B+ tree was added to tcadbmisc

* Tue Oct 06 2009 Led <led@altlinux.ru> 1.4.34-alt1
- 1.4.34

* Sun Sep 27 2009 Led <led@altlinux.ru> 1.4.33-alt1
- 1.4.33
- changed URL

* Fri Aug 28 2009 Led <led@altlinux.ru> 1.4.32-alt1
- 1.4.32:
  + added "INC", "PRT" operators and "SET" directive
- 1.4.31:
  + new functions: tcwwwformdecode2, tcarccipher,
    tcmpoolpop, tcstatfile

* Wed Jul 22 2009 Led <led@altlinux.ru> 1.4.30-alt1
- 1.4.30:
  + new function: tctdbstrtometasearcytype
  + added command "metasearch" into tcadbmisc

* Sat Jul 11 2009 Led <led@altlinux.ru> 1.4.29-alt1
- 1.4.29:
  + efficiency couting sort was improved

* Fri Jul 03 2009 Led <led@altlinux.ru> 1.4.28-alt1
- 1.4.28:
  + new functions: tctdbmetasearch, tctdbget4, tctdbqrykwic,
    tctdbsetinvcache, tctdbidxsyncicc, tctdbidxcmpkey, tcstrutfnorm,
    tcstrkwic, tcstrtokenize

* Sat Jun 27 2009 Led <led@altlinux.ru> 1.4.27-alt1
- 1.4.27:
  + new functions: tcstrskipspc, tcstrucsnorm,
    tctdbidxputqgram, tctdbidxoutqgram, tctdbidxgetbyfts
  + added full-text search operators
  + added q-gram inverted index

* Tue Jun 16 2009 Led <led@altlinux.ru> 1.4.26-alt1
- 1.4.26:
  + new functions: tctdbidxputone, tctdbidxoutone, tctdbidxputtoken,
    tctdbidxouttoken, tctdbidxgetbytokens
  + tctdbsetindex, tctdbsearchimpl: token inverted index was added

* Sun Jun 14 2009 Led <led@altlinux.ru> 1.4.25-alt1
- 1.4.25:
  + new functions: tctdbiternext3, tcpathlock, tcpathunlock,
    tccstrescape, tccstrunescape, tcjsonescape, tcjsonunescape

* Wed Jun 10 2009 Led <led@altlinux.ru> 1.4.24-alt1
- 1.4.24:
  + new functions: runtmpl, proctmpl, tclistprintf, tcmapprintf,
    tctreeprintf, tcmapget4, tctreeget4, tctmplnew, tctmpldel,
    tctmplload, tctmpldump, tcwwwformencode, tcwwwformdecode

* Wed May 27 2009 Led <led@altlinux.ru> 1.4.23-alt1
- 1.4.23:
  + new functions: tctdbiterinit2, tcfdbiterinit2, tcfdbiterjumpimpl,
    tchdbiterinit2, tchdbiterjumpimpl, tcmapiterinit2, tcmdbiterinit2

* Sun May 24 2009 Led <led@altlinux.ru> 1.4.22-alt1
- 1.4.22
- 1.4.21:
  + new functions: tctdbsetdfunit, tctdbdfunit, tctdbdefrag,
    tcbdbsetdfunit, tcbdbdfunit, tcbdbdefrag, tchdbdefragimpl,
    tchdbfbptrim, tchdbshiftrec, tchdbsetdfunit, tchdbdfunit,
    tchdbdefrag

* Sat May 09 2009 Led <led@altlinux.ru> 1.4.20-alt1
- 1.4.20

* Thu May 07 2009 Led <led@altlinux.ru> 1.4.19-alt1
- 1.4.19:
  + new functions: tctdbidxhash, tctdbqryproc2, tctdbqrysearchout2
- 1.4.18:
  + new functions: tcadbsetskel, tcatoih

* Sun Apr 26 2009 Led <led@altlinux.ru> 1.4.17-alt1
- 1.4.17:
  + new functions: tctdbqryidxfetch, tcsysinfo
- 1.4.16:
  + new function: tcbdbleafcheck
  + shift mechanism of cursors on deleted leaves was added
- 1.4.15:
  + new functions: tcadboptimize, tcadbpath, tcsleep
  + abolished: tcfdblocktran, tcfdbunlocktran, tchdblocktran,
    tchdbunlocktran

* Tue Apr 07 2009 Led <led@altlinux.ru> 1.4.14-alt1
- 1.4.14:
  + tcbdbputimpl, tcbdbcurputimpl: page size limitation was added
  + removed tcbdbleafdatasize
  + tctdbsetindeximpl: inner indexes were tuned

* Mon Apr 06 2009 Led <led@altlinux.ru> 1.4.13-alt1
- 1.4.13:
  + new functions: tcfdbtranbegin, tcfdbtrancommit, tcfdbtranabort,
    tcadbtranbegin, tcadbtrancommit, tcadbtranabort

* Thu Apr 02 2009 Led <led@altlinux.ru> 1.4.12-alt1
- 1.4.12:
  + new function: tctdbqrycount
  + tcadbmisc: "count" option was added

* Fri Mar 20 2009 Led <led@altlinux.ru> 1.4.11-alt1
- 1.4.11:
  + new function: tctopsort
  + performance and concurrency was improved
  + bugfixes

* Wed Mar 11 2009 Led <led@altlinux.ru> 1.4.10-alt1
- 1.4.10:
  + new function: tchdbremoverec
  + new function: tctdbsetlimit instead of tctdbqrysetmax

* Sat Feb 28 2009 Led <led@altlinux.ru> 1.4.9-alt1
- 1.4.9

* Thu Feb 19 2009 Led <led@altlinux.ru> 1.4.7-alt1
- 1.4.7

* Mon Feb 16 2009 Led <led@altlinux.ru> 1.4.6-alt1
- 1.4.6:
  + new function: tctdbsetuidseed

* Sun Feb 15 2009 Led <led@altlinux.ru> 1.4.5-alt2
- cleaned up CFLAGS

* Sun Feb 15 2009 Led <led@altlinux.ru> 1.4.5-alt1
- 1.4.5:
  + new functions: runrace, procrace
- 1.4.4:
  + new functions: tcstrisnum, tcadbputproc, tcfdbputproc,
    tcbdbputproc, tchdbputproc, tcmapputproc, tctreeputproc,
    tcmdbputproc, tcndbputproc
  + tcadbmisc: added sub funcitons "put", "out", and "get"

* Sat Jan 31 2009 Led <led@altlinux.ru> 1.4.3-alt1
- 1.4.3
- 1.4.2:
  + new function: tcatof
  + tcadb: all methods now support the table database API

* Thu Jan 22 2009 Led <led@altlinux.ru> 1.4.1-alt1
- 1.4.1:
  + new functions: tctdbqryonecondmatch, tctdbsetcache, tctdbforeach,
    tctdbqryproc
- 1.4.0:
  + new functions: tchdbgetnext3, tcstrjoin2, tcstrjoin3, tcstrjoin4,
    tcstrsplit2, tcstrsplit3, tcstrsplit4, tcatoix, tclistinvert,
    tclog2l, tclog2d, tclistnew3, tcmapnew3

* Wed Jan 07 2009 Led <led@altlinux.ru> 1.3.27-alt1
- 1.3.27

* Sat Dec 27 2008 Led <led@altlinux.ru> 1.3.26-alt1
- 1.3.26:
  + new function: tcadbmisc

* Mon Dec 22 2008 Led <led@altlinux.ru> 1.3.25-alt1
- 1.3.25

* Mon Dec 15 2008 Led <led@altlinux.ru> 1.3.24-alt1
- 1.3.24:
  + new functions: tcmdbforeach, tcmdbforeachimpl, tcndbforeach,
    tcndbforeachimpl, tchdbforeach, tchdbforeachimpl, tcbdbforeach,
    tcbdbforeachimpl, tcfdbforeach, tcfdbforeachimpl, tcadbomode,
    tcadbreveal

* Sun Dec 14 2008 Led <led@altlinux.ru> 1.3.23-alt1
- 1.3.23
- 1.3.22:
  + new functions: tcmapput3, tcmdbput3, tcmapputcat3, tcmdbputcat3
    tctreeput3, tcndbput3

* Sun Dec 07 2008 Led <led@altlinux.ru> 1.3.21-alt1
- 1.3.21
- 1.3.20:
  + new functions: tchdbtranbegin, tchdbtrancommit, tchdbtranabort
- cleaned up spec

* Thu Nov 20 2008 Led <led@altlinux.ru> 1.3.19-alt1
- 1.3.19:
  + new functions: tcmdbnew, tcmdbdel, tcmdbopen, tcmdbclose,
    tcptrlistnew, tcptrlistdel, tcbdbputimpl, tcbdboutimpl,
    tcbdbgetimpl
  + tcadbnew, tcadbdel: on-memory tree database is now supported

* Sun Nov 09 2008 Led <led@altlinux.ru> 1.3.16-alt1
- 1.3.16:
  + tcmapdup: performance was improved
  + new functions: tcsystem, tctreenew, tctreedel, tctreeput,
    tctreeout, tctreeget
  + memory usage of reader declined
  + on-memory database is now supported

* Wed Oct 29 2008 Led <led@altlinux.ru> 1.3.15-alt1
- 1.3.15

* Wed Sep 24 2008 Led <led@altlinux.ru> 1.3.10-alt1
- 1.3.10
- updated %name-1.3.10-alt.patch

* Tue Sep 09 2008 Led <led@altlinux.ru> 1.3.8-alt1
- 1.3.8

* Fri Aug 29 2008 Led <led@altlinux.ru> 1.3.5-alt1
- 1.3.5

* Mon Aug 25 2008 Led <led@altlinux.ru> 1.3.4-alt1
- 1.3.4

* Wed Aug 13 2008 Led <led@altlinux.ru> 1.3.2-alt1
- 1.3.2

* Wed Jul 30 2008 Led <led@altlinux.ru> 1.3.1-alt1
- 1.3.1

* Mon Jul 28 2008 Led <led@altlinux.ru> 1.3.0-alt1
- 1.3.0

* Fri Jul 25 2008 Led <led@altlinux.ru> 1.2.12-alt1
- 1.2.12
- initial Build for Sisyphus
- remade spec from Fedora

* Sun May 25 2008 Masahiro Hasegawa <masahase@gmail.com> - 1.2.6-1
- Update to 1.2.6

* Mon Apr 28 2008 Deji Akingunola <dakingun@gmail.com> - 1.2.5-1
- Update to 1.2.5

* Fri Feb 08 2008 Deji Akingunola <dakingun@gmail.com> - 1.1.14-1
- Update to 1.1.14

* Fri Jan 11 2008 Deji Akingunola <dakingun@gmail.com> - 1.1.7-1
- Update to 1.1.7

* Tue Dec 18 2007 Deji Akingunola <dakingun@gmail.com> - 1.1.4-1
- Update to 1.1.4

* Sat Nov 24 2007 Deji Akingunola <dakingun@gmail.com> - 1.0.8-1
- Update to 1.0.8

* Sat Nov 24 2007 Deji Akingunola <dakingun@gmail.com> - 1.0.6-1
- Initial package