Name: liblightgrep Version: 1.4.1 Release: 1%{?dist} Summary: Not the worst forensics regexp engine Group: Development/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} 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 %doc %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/lightgrep.pc %changelog * Fri Nov 21 2014 Joel Uckelman - 1.5.0-1 - Initial version