2014-08-27 05:45:55 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-dfVFS
|
|
|
|
#
|
2020-01-20 01:48:26 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-08-27 05:45:55 +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.
|
|
|
|
|
2020-01-20 01:48:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-08-27 05:45:55 +00:00
|
|
|
#
|
|
|
|
|
2014-12-23 10:50:59 +00:00
|
|
|
|
2020-01-20 01:48:26 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define timestamp 20200117
|
|
|
|
%define skip_python2 1
|
2014-08-27 05:45:55 +00:00
|
|
|
Name: python-dfVFS
|
|
|
|
Version: 0~%{timestamp}
|
|
|
|
Release: 0
|
|
|
|
Summary: Digital Forensics Virtual File System
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Productivity/File utilities
|
2020-01-20 01:48:26 +00:00
|
|
|
URL: https://github.com/log2timeline/dfvfs/wiki
|
|
|
|
Source: https://github.com/log2timeline/dfvfs/releases/download/%{timestamp}/dfvfs-%{timestamp}.tar.gz
|
|
|
|
BuildRequires: %{python_module PyYAML}
|
|
|
|
BuildRequires: %{python_module cffi}
|
|
|
|
BuildRequires: %{python_module cryptography}
|
|
|
|
BuildRequires: %{python_module dfdatetime}
|
|
|
|
BuildRequires: %{python_module dtfabric}
|
|
|
|
BuildRequires: %{python_module idna}
|
|
|
|
BuildRequires: %{python_module libbde}
|
|
|
|
BuildRequires: %{python_module libewf}
|
|
|
|
BuildRequires: %{python_module libfsapfs}
|
|
|
|
BuildRequires: %{python_module libfsntfs}
|
|
|
|
BuildRequires: %{python_module libfvde}
|
|
|
|
BuildRequires: %{python_module libfwnt}
|
|
|
|
BuildRequires: %{python_module libqcow}
|
|
|
|
BuildRequires: %{python_module libsigscan}
|
|
|
|
BuildRequires: %{python_module libsmdev}
|
|
|
|
BuildRequires: %{python_module libsmraw}
|
|
|
|
BuildRequires: %{python_module libvhdi}
|
|
|
|
BuildRequires: %{python_module libvmdk}
|
|
|
|
BuildRequires: %{python_module libvshadow}
|
|
|
|
BuildRequires: %{python_module libvslvm}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
BuildRequires: %{python_module pytsk3}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2014-08-27 05:45:55 +00:00
|
|
|
BuildRequires: fdupes
|
2017-10-03 23:02:19 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2014-08-27 05:45:55 +00:00
|
|
|
Requires: python-construct
|
2020-01-20 01:48:26 +00:00
|
|
|
Requires: python-dfdatetime >= 0~20180110
|
|
|
|
Requires: python-libbde
|
|
|
|
Requires: python-libewf
|
|
|
|
Requires: python-libfsntfs >= 0~20160418
|
|
|
|
Requires: python-libfvde
|
|
|
|
Requires: python-libfwnt
|
|
|
|
Requires: python-libqcow
|
|
|
|
Requires: python-libsigscan
|
|
|
|
Requires: python-libsmdev
|
|
|
|
Requires: python-libsmraw
|
|
|
|
Requires: python-libvhdi
|
|
|
|
Requires: python-libvmdk
|
|
|
|
Requires: python-libvshadow >= 0~20170902
|
|
|
|
Requires: python-libvslvm
|
2018-01-15 02:06:09 +00:00
|
|
|
Requires: python-pycrypto
|
2020-01-20 01:48:26 +00:00
|
|
|
# Use the python- variant of the libyal python bindings. This allows
|
|
|
|
# python singlespec to tweak the Requires for python2 and python3
|
2014-08-27 05:45:55 +00:00
|
|
|
Requires: python-six
|
2020-01-20 01:48:26 +00:00
|
|
|
Requires: python-tsk >= 0~20160721
|
2014-08-27 05:45:55 +00:00
|
|
|
BuildArch: noarch
|
2020-01-20 01:48:26 +00:00
|
|
|
%python_subpackages
|
2014-08-27 05:45:55 +00:00
|
|
|
|
|
|
|
%description
|
2020-01-20 01:48:26 +00:00
|
|
|
dfVFS, or Digital Forensics Virtual File System, provides read-only
|
|
|
|
access to file-system objects from various storage media types and file
|
|
|
|
formats. The goal of dfVFS is to provide a generic interface for
|
|
|
|
accessing file-system objects, for which it uses several back-ends that
|
|
|
|
provide the actual implementation of the various storage media types,
|
|
|
|
volume systems and file systems.
|
2014-08-27 05:45:55 +00:00
|
|
|
|
2020-01-20 01:48:26 +00:00
|
|
|
dfVFS originates from the Plaso project and is also based on ideas from
|
|
|
|
the GRR project. It was largely rewritten and made into a stand-alone
|
|
|
|
project to provide more flexibility and allow other projects to make use
|
|
|
|
of the VFS functionality. dfVFS originally was named PyVFS, but that
|
|
|
|
name conflicted with another project.
|
2014-08-27 05:45:55 +00:00
|
|
|
|
|
|
|
dfVFS is currently implemented as a Python module.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n dfvfs-%{timestamp}
|
|
|
|
find dfvfs -name \*.py | xargs sed -i "/#!\/usr\/bin\/python/d"
|
2014-12-23 10:50:59 +00:00
|
|
|
chmod -x utils/check_dependencies.py
|
2015-03-25 22:33:01 +00:00
|
|
|
chmod -x run_tests.py
|
2014-08-27 05:45:55 +00:00
|
|
|
|
|
|
|
%build
|
2020-01-20 01:48:26 +00:00
|
|
|
%python_build
|
2014-08-27 05:45:55 +00:00
|
|
|
|
|
|
|
%install
|
2020-01-20 01:48:26 +00:00
|
|
|
%python_install
|
|
|
|
%{python_expand mv %{buildroot}%{$python_sitelib}/{examples,dfvfs}
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
2014-08-27 05:45:55 +00:00
|
|
|
|
2020-01-20 01:48:26 +00:00
|
|
|
%check
|
|
|
|
# Using pytest leads to some horribly-looking crashes, not sure what's
|
|
|
|
# going on.
|
|
|
|
# /bin/true because of gh#log2timeline/dfvfs#421
|
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
|
|
$python ./run_tests.py
|
|
|
|
}
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc ACKNOWLEDGEMENTS AUTHORS README
|
2017-10-03 23:02:19 +00:00
|
|
|
%doc utils/check_dependencies.py utils/dependencies.py
|
2015-01-21 20:31:39 +00:00
|
|
|
%doc examples
|
2020-01-20 01:48:26 +00:00
|
|
|
%{python_sitelib}/dfvfs*
|
2015-03-25 22:33:01 +00:00
|
|
|
# these are installed into the wrong place
|
|
|
|
%exclude %{_datadir}/doc/dfvfs/
|
2014-08-27 05:45:55 +00:00
|
|
|
|
|
|
|
%changelog
|