-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmtbl.spec
69 lines (49 loc) · 1.46 KB
/
mtbl.spec
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
Name: mtbl
Version: 1.7.1
Release: 1%{?dist}
Summary: immutable sorted string table utilities
License: Apache-2.0
URL: https://github.com/farsightsec/%{name}
Source0: https://dl.farsightsecurity.com/dist/%{name}/%{name}-%{version}.tar.gz
BuildRequires: zlib-devel lz4-devel libzstd-devel snappy-devel
#Requires:
# TODO: will Requires be set automatically?
%description
mtbl is a C library implementation of the Sorted String Table (SSTable)
data structure. mtbl exposes primitives for creating, searching and
merging SSTable files.
This package contains the shared library for libmtbl and the mtbl
command-line tools.
%package devel
Summary: immutable sorted string table library (development files)
Requires: %{name}%{?_isa} = %{version}-%{release} zlib lz4 libzstd snappy
%description devel
mtbl is a C library implementation of the Sorted String Table (SSTable)
data structure. mtbl exposes primitives for creating, searching and
merging SSTable files.
This package contains the static library, headers, and development
documentation for libmtbl.
%prep
%setup -q
%build
[ -x configure ] || autoreconf -fvi
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%make_install
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%exclude %{_libdir}/libmtbl.la
%_bindir/*
%_mandir/man1/*
%files devel
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%{_includedir}/*
%_mandir/man3/*
%_mandir/man7/*
%doc
%changelog