File python-plaso.spec of Package python-plaso
#
# spec file for package python-plaso
#
# Copyright (c) 2014 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 http://bugs.opensuse.org/
#
Name: python-plaso
Version: 1.1.0
Release: 0
Summary: Plaso is a library for working with forensic timelines
License: Apache-2.0
Group: Development/Libraries/Python
Url: http://plaso.kiddaland.net/
#DL-URL: https://e366e647f8637dd31e0a13f75e5469341a9ab0ee.googledrive.com/host/0B30H7z4S52FleW5vUHBnblJfcjg/1.1.0/release/plaso-1.1.0.tar.gz
Source0: plaso-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: pkg-config
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: OleFileIO_PL
Requires: libtsk10 >= 4.1.2
Requires: python-binplist >= 0.1.4
Requires: python-construct >= 2.5.2
Requires: python-dateutil
Requires: python-dfVFS
Requires: python-dpkt
Requires: python-hachoir-core
Requires: python-hachoir-metadata
Requires: python-hachoir-parser
# These are core libraries. Make sure current versions are used
Requires: pyevt >= 0~20140731
Requires: pyevtx >= 0~20140731
Requires: pyewf >= 0~20140603
Requires: pylnk >= 0~20140731
Requires: pymsiecf >= 0~20140731
Requires: pyolecf >= 0~20140801
Requires: pyregf >= 0~20140803
Requires: pyvshadow >= 0~20140731
Requires: pyesedb
Requires: pyqcow
Requires: pysmdev
Requires: pyvhdi
Requires: pyvmdk
Requires: python-bencode
Requires: python-protobuf
Requires: python-psutil
Requires: python-pyparsing
Requires: python-tsk
Requires: python-tz
Requires: python-yaml
Recommends: IPython
Recommends: libevt-tools
Recommends: libevtx-tools
Recommends: libewf-tools
Recommends: liblnk-tools
Recommends: libmsiecf-tools
Recommends: libolecf-tools
Recommends: libregf-tools
Recommends: libvshadow-tools
Recommends: libsmdev-tools
Recommends: libesedb-tools
Recommends: libvhdi-tools
Recommends: libvmdk-tools
Recommends: sleuthkit >= 4.1.2
Provides: plaso
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Plaso (plaso langar að safna öllu) is the Python based back-end engine used by tools such as log2timeline for automatic creation of a super timelines. The goal of log2timeline (and thus plaso) is to provide a single tool that can parse various log files and forensic artifacts from computer and related systems, such as network equipment to produce a single correlated timeline. This timeline can then be easily analysed by forensic investigators/analysts, speeding up investigations by correlating the vast amount of information found on an average computer system.
%prep
%setup -q -n plaso-%version
find plaso -name \*.py | xargs sed -i "/#!\/usr\/bin\/python/d"
%build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
%fdupes -s %{buildroot}
%files
%defattr(-,root,root)
%doc ACKNOWLEDGEMENTS AUTHORS LICENSE.TXT
%{python_sitelib}/plaso-%{version}-py2.7.egg-info
%dir %{python_sitelib}/tools
%{python_sitelib}/tools/image_export.py
%{python_sitelib}/tools/image_export.pyc
%{python_sitelib}/tools/plaso_extract_search_history.py
%{python_sitelib}/tools/plaso_extract_search_history.pyc
%{python_sitelib}/tools/plaso_process_info.py
%{python_sitelib}/tools/plaso_process_info.pyc
%{python_sitelib}/plaso
%exclude %{python_sitelib}/test_data/__init__.py
%exclude %{python_sitelib}/test_data/__init__.pyc
%exclude %{python_sitelib}/tools/__init__.py
%exclude %{python_sitelib}/tools/__init__.pyc
%{_bindir}/image_export.py
%{_bindir}/log2timeline.py
%{_bindir}/pinfo.py
%{_bindir}/plasm.py
%{_bindir}/plaso_extract_search_history.py
%{_bindir}/pprof.py
%{_bindir}/preg.py
%{_bindir}/pshell.py
%{_bindir}/psort.py
%changelog