forked from jonstewart/liblightgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathliblightgrep.spec.in
81 lines (66 loc) · 2.31 KB
/
liblightgrep.spec.in
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
Name: liblightgrep
Version: @VERSION@
Release: 1%{?dist}
Summary: Not the worst forensics regexp engine
Group: System Environment/Libraries
License: GPLv3+
%global lggh https://github.com/LightboxTech/%{name}
URL: %{lggh}
%global lgcommit 25d4d18a733cf469a83b3851bc38b4ce563bbd53
Source0: %{lggh}/archive/%{lgcommit}/%{name}-%{lgcommit}.tar.gz
#Source0: %{lggh}/archive/v%{version}.tar.gz#/liblightgrep-%{version}.tar.gz
%global scopecommit 9a76e5810f82fe1dc51ff78a6c1d58e617e4f6a3
Source1: https://github.com/jonstewart/scope/archive/%{scopecommit}/scope-%{scopecommit}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: boost-devel
BuildRequires: pkgconfig(icu-uc)
BuildRequires: libtool
%description
Lightgrep is a new regular expression engine, designed specifically for
digital forensics. Why another regexp engine?
Lightgrep:
* searches for many patterns simultaneously
* searches binary data as a stream, not as discrete lines of text
* searches for patterns in many different encodings; give it dirty data,
lightgrep don't care
* never, ever, ever, never, never looks at a byte twice or backs up in your
input
Lightgrep is still pretty new and doesn't have all the regexp features you
might be used to. But it has enough features to be more than a toy, and what
is supported is well-tested.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n liblightgrep-%{lgcommit}
%setup -qDTa 1 -n liblightgrep-%{lgcommit}
rmdir vendors/scope
mv scope-%{scopecommit} vendors/scope
%build
./bootstrap.sh
# FIXME: force -O3?
%configure --enable-shared --disable-static
make %{?_smp_mflags}
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%check
make check VERBOSE=1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING README.md
%{_libdir}/*.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/lightgrep.pc
%changelog
* Fri Nov 21 2014 Joel Uckelman <[email protected]> - 1.5.0-1
- Initial version