-
Notifications
You must be signed in to change notification settings - Fork 3
/
greylock-bf.spec
77 lines (58 loc) · 1.95 KB
/
greylock-bf.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
70
71
72
73
74
75
76
Summary: Greylock is an embedded search engine
Name: greylock
Version: 1.1.0
Release: 1%{?dist}.1
License: GPLv3
Group: System Environment/Libraries
URL: http://reverbrain.com/
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ribosome-devel
BuildRequires: libswarm3-devel, libthevoid3-devel
BuildRequires: boost-devel, boost-system, boost-program-options, boost-filesystem
BuildRequires: jemalloc-devel, msgpack-devel, lz4-devel
BuildRequires: cmake >= 2.6
%description
Greylock is an embedded search engine which is aimed at index size and performace.
Index of 200k livejournal.com entries (200Mb of uncompressed data) takes about 450Mb,
index includes: full-text and per-author search indexes, original content, stemmed and original content.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Greylock is an embedded search engine which is aimed at index size and performace.
This package contains libraries, header files and developer documentation
needed for developing software which uses greylock utils.
%prep
%setup -q
%build
export LDFLAGS="-Wl,-z,defs"
export DESTDIR="%{buildroot}"
%{cmake} .
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR="%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/greylock_*
%{_libdir}/libgreylock.so.*
%doc conf/
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_datadir}/greylock/cmake/*
%{_libdir}/libgreylock.so
%changelog
* Tue Aug 09 2016 Evgeniy Polyakov <[email protected]> - 1.1.0
- Added date/time search
- Added exact phrase search
- Added negation support
- Added pagination support
* Thu Jul 28 2016 Evgeniy Polyakov <[email protected]> - 1.0.0
- Rewrite greylock search engine to use local rocksdb storage. It is not distributed search so far.