2013-09-13 12:44:15 +00:00
|
|
|
#
|
|
|
|
# spec file for package liblightgrep
|
|
|
|
#
|
2018-04-30 10:53:40 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-09-13 12:44:15 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2016-02-01 20:49:08 +00:00
|
|
|
|
2013-09-13 12:44:15 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-02-01 20:49:08 +00:00
|
|
|
|
2013-09-13 12:44:15 +00:00
|
|
|
%define soname 0
|
|
|
|
|
|
|
|
Name: liblightgrep
|
|
|
|
%define lname %{name}%soname
|
2016-02-01 20:49:08 +00:00
|
|
|
Version: 1.4
|
2013-09-13 12:44:15 +00:00
|
|
|
Release: 0
|
2018-07-25 03:39:20 +00:00
|
|
|
Summary: Multipattern regular expression searching for digital forensics
|
2018-04-30 10:53:40 +00:00
|
|
|
License: GPL-3.0-or-later
|
2013-09-13 12:44:15 +00:00
|
|
|
Group: Productivity/File utilities
|
2016-02-01 20:49:08 +00:00
|
|
|
Url: https://github.com/jonstewart/liblightgrep
|
|
|
|
# The original archive contains tests : 155MB. As we don't run them, save space by removing them :
|
|
|
|
# /pytest, /re_gen and /test
|
|
|
|
#Source: https://github.com/LightboxTech/liblightgrep/archive/v%{version}.tar.gz
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
2018-04-30 10:53:40 +00:00
|
|
|
Patch0: aarch64_and_ppc64le.patch
|
2013-09-13 12:44:15 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
2017-02-01 13:11:09 +00:00
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_program_options-devel
|
|
|
|
BuildRequires: libboost_system-devel
|
|
|
|
BuildRequires: libboost_thread-devel
|
|
|
|
%else
|
2013-09-13 12:44:15 +00:00
|
|
|
BuildRequires: boost-devel
|
2017-02-01 13:11:09 +00:00
|
|
|
%endif
|
2013-09-13 12:44:15 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
BuildRequires: libtool
|
2016-02-01 20:49:08 +00:00
|
|
|
BuildRequires: pkg-config
|
2013-09-13 12:44:15 +00:00
|
|
|
# With v1.2.1, to run the %check section, you may need extra modules:
|
|
|
|
# - Boost::asio
|
|
|
|
# - Boost::chrono
|
|
|
|
# - Boost::program_options
|
|
|
|
# - Boost::system
|
|
|
|
# - Boost::thread
|
|
|
|
# - Scope (a git submodule)
|
|
|
|
|
|
|
|
%description
|
2018-07-25 03:39:20 +00:00
|
|
|
liblightgrep is a regular expression engine designed
|
|
|
|
for digital forensics.
|
2013-09-13 12:44:15 +00:00
|
|
|
|
2018-07-25 03:39:20 +00:00
|
|
|
* it searches for many patterns simultaneously,
|
|
|
|
* searches binary data as a stream, not as discrete lines of text,
|
|
|
|
* searches for patterns in many different encodings,
|
|
|
|
* is a forward-looking only engine
|
2013-09-13 12:44:15 +00:00
|
|
|
|
|
|
|
%package -n %{lname}
|
2018-07-25 03:39:20 +00:00
|
|
|
Summary: Multipattern regular expression searching for digital forensics
|
2018-04-30 10:53:40 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2013-09-13 12:44:15 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
2018-07-25 03:39:20 +00:00
|
|
|
liblightgrep is a regular expression engine designed
|
|
|
|
for digital forensics.
|
2013-09-13 12:44:15 +00:00
|
|
|
|
2018-07-25 03:39:20 +00:00
|
|
|
* it searches for many patterns simultaneously,
|
|
|
|
* searches binary data as a stream, not as discrete lines of text,
|
|
|
|
* searches for patterns in many different encodings,
|
|
|
|
* is a forward-looking only engine
|
2013-09-13 12:44:15 +00:00
|
|
|
|
|
|
|
%package devel
|
2016-01-27 22:34:18 +00:00
|
|
|
Summary: Development files for liblightgrep
|
2018-04-30 10:53:40 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2013-09-13 12:44:15 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{soname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2018-07-25 03:39:20 +00:00
|
|
|
Development files for liblightgrep, a regex engine designed for digital forensics.
|
2013-09-13 12:44:15 +00:00
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of %{name}.
|
|
|
|
|
|
|
|
%prep
|
2024-03-01 08:30:49 +00:00
|
|
|
%autosetup -p1
|
2013-09-13 12:44:15 +00:00
|
|
|
#The test file test_kilopattern.CPP breaks ARM builds
|
|
|
|
find . -name 'test_kilopattern.CPP' -delete
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -i
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%check
|
|
|
|
#these take many minutes, so don't run them all the time
|
|
|
|
# THIS IS FAILING TO BUILD WITH v1.2.1, so comment out
|
|
|
|
#make check
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
2018-07-12 12:33:13 +00:00
|
|
|
%doc README.md
|
|
|
|
%license COPYING
|
2013-09-13 12:44:15 +00:00
|
|
|
%{_libdir}/liblightgrep.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2018-07-12 12:33:13 +00:00
|
|
|
%doc README.md
|
|
|
|
%license COPYING
|
2013-09-13 12:44:15 +00:00
|
|
|
%{_includedir}/lightgrep/
|
|
|
|
%{_libdir}/liblightgrep.so
|
2016-02-01 20:49:08 +00:00
|
|
|
%{_libdir}/pkgconfig/lightgrep.pc
|
2013-09-13 12:44:15 +00:00
|
|
|
|
|
|
|
%changelog
|