File bulk_extractor.spec of Package bulk_extractor

# spec file for package bulk_extractor
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

Name:           bulk_extractor
Version:        1.5.5
Release:        0
Summary:        Bulk Email and URL extraction tool
License:        GPL-3.0+
Group:          Productivity/File utilities
# PATCH-FIX-UPSTREAM be-1.3.1-cpuid.patch [replaced with dfxml_nonx86.patch]
# Patch1:         be-1.3.1-cpuid.patch
# PATCH-FIX-UPSTREAM ppc-cpuid.patch [allow build on PPC]
Patch2:         ppc-cpuid.patch
# PATCH-FIX-OPENSUSE be-1.3.1-remove-date-time.patch [remove __DATE__ and __TIME__]
Patch3:         be-1.4.0-remove-date-time.patch
# PATCH-FIX-OPENSUSE be-1.3.1-remove-debug-program [/usr/bin/plugin_test should not be installed]
Patch4:         be-1.4.0-remove-debug-program.patch
BuildRequires:  flex
BuildRequires:  gcc-c++
BuildRequires:  java-devel
BuildRequires:  libewf-devel
BuildRequires:  libexiv2-devel
BuildRequires:  liblightgrep-devel
BuildRequires:  openssl-devel
BuildRequires:  zlib-devel
# We need fiwalk which was added to sleuthkit in v4.1.0
Requires:       sleuthkit >= 4.1

bulk_extractor is a C++ program that scans a disk image, a file, or a
directory of files and extracts useful information without parsing the
file system or file system structures. The results are stored in feature
files that can be easily inspected, parsed, or processed with automated
tools. bulk_extractor also created a histograms of features that it finds,
as features that are more common tend to be more important.

%setup -q
%patch2 -p1
%patch3 -p1
%patch4 -p1
sed -i 's|-jar `pwd -P`/BEViewer.jar|-jar %{_datadir}/%{name}/BEViewer.jar|' java_gui/BEViewer
cp "%{SOURCE2}" be-1.5-overview.pdf

make %{?_smp_mflags}

# jars
install -dm 0755 "%{buildroot}/%{_datadir}/%{name}"
mv "%{buildroot}/%{_bindir}/BEViewer.jar" "%{buildroot}/%{_datadir}/%{name}/"

%doc ChangeLog README COPYING be-1.5-overview.pdf
%attr(0644,root,root) %{_datadir}/%{name}/BEViewer.jar

openSUSE Build Service is sponsored by