-
Notifications
You must be signed in to change notification settings - Fork 17
/
mingw-liblightgrep.spec.in
125 lines (101 loc) · 3.6 KB
/
mingw-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
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
%{?mingw_package_header}
Name: mingw-liblightgrep
Version: @VERSION@
Release: 1%{?dist}
Summary: Not the worst forensics regexp engine
Group: Development/Libraries
License: GPLv3+
%global lggh https://github.com/LightboxTech/liblightgrep
URL: %{lggh}
%global lgcommit 25d4d18a733cf469a83b3851bc38b4ce563bbd53
Source0: %{lggh}/archive/%{lgcommit}/liblightgrep-%{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
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-binutils
BuildRequires: mingw32-gcc
BuildRequires: mingw32-boost
BuildRequires: mingw32-icu
BuildRequires: mingw32-pkg-config
#BuildRequires: mingw32-icu-static
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-binutils
BuildRequires: mingw64-gcc
BuildRequires: mingw64-boost
BuildRequires: mingw64-icu
BuildRequires: mingw64-pkg-config
#BuildRequires: mingw64-icu-static
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: libtool
BuildRequires: wine
%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 -n mingw32-liblightgrep
Summary: %{summary}
%description -n mingw32-liblightgrep
MinGW Windows liblightgrep library.
# TODO: see mingw-curl SRPM for examples of static builds
#%%package -n mingw32-liblightgrep-static
#Summary: %%{summary}
#Requires: mingw32-liblightgrep = %%{version}-%%{release}
#
#%%description -n mingw32-liblightgrep-static
%package -n mingw64-liblightgrep
Summary: %{summary}
%description -n mingw64-liblightgrep
MinGW Windows liblightgrep library.
#%%package -n mingw64-liblightgrep-static
#Summary: %%{summary}
#Requires: mingw64-liblightgrep = %%{version}-%%{release}
#
#%%description -n mingw64-liblightgrep-static
%?mingw_debug_package
%prep
%setup -q -n liblightgrep-%{lgcommit}
%setup -qDT -a 1 -n liblightgrep-%{lgcommit}
rmdir vendors/scope
mv scope-%{scopecommit} vendors/scope
%build
./bootstrap.sh
# FIXME: force -O3?
%mingw_configure --enable-shared --disable-static
%mingw_make %{?_smp_mflags}
%install
%mingw_make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%check
%mingw_make check VERBOSE=1
%files -n mingw32-liblightgrep
%doc COPYING README.md
%{mingw32_bindir}/liblightgrep.dll
%{mingw32_libdir}/liblightgrep.dll.a
%{mingw32_libdir}/pkgconfig/lightgrep.pc
%{mingw32_includedir}/*
#%%files -n mingw32-liblightgrep-static
#%%{mingw32_libdir}/liblightgrep.a
%files -n mingw64-liblightgrep
%doc COPYING README.md
%{mingw64_bindir}/liblightgrep.dll
%{mingw64_libdir}/liblightgrep.dll.a
%{mingw64_libdir}/pkgconfig/lightgrep.pc
%{mingw64_includedir}/*
#%%files -n mingw64-liblightgrep-static
#%%{mingw64_libdir}/liblightgrep.a
%changelog
* Fri Nov 21 2014 Joel Uckelman <uckelman@nomic.net> - 1.5.0-1
- Initial version