SHA256
1
0
forked from pool/python-tsk

Accepting request 765652 from home:gregfreemyer:Tools-for-forensic-boot-cd

Remove python 2 support and update to the 20200117 release

OBS-URL: https://build.opensuse.org/request/show/765652
OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-tsk?expand=0&rev=12
This commit is contained in:
Greg Freemyer
2020-01-20 01:15:36 +00:00
committed by Git OBS Bridge
parent c03bae03c6
commit 720520891f
5 changed files with 38 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-tsk
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,29 +12,34 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define timestamp 20170802
%define timestamp 20200117
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-tsk
Version: 0~%{timestamp}
Release: 0
Summary: Python bindings for tsk - The SleuthKit
# the included talloc library is LGPL 3
License: Apache-2.0 AND LGPL-3.0+
Group: Development/Languages/Python
Url: https://github.com/py4n6/pytsk/
Source0: https://github.com/py4n6/pytsk/releases/download/%{timestamp}/pytsk3-%{timestamp}.tar.gz
Patch1: pytsk_20170128_remove_talloc_build.patch
License: Apache-2.0 AND LGPL-3.0-or-later
URL: https://github.com/py4n6/pytsk/
Source0: https://files.pythonhosted.org/packages/source/p/pytsk3/pytsk3-%{timestamp}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: libtalloc-devel
BuildRequires: postgresql-devel
BuildRequires: python-rpm-macros
BuildRequires: sleuthkit-devel >= 4.4.0
BuildRequires: sleuthkit-devel >= 4.6.7
BuildRequires: zlib-devel
BuildRequires: pkgconfig(libvhdi)
BuildRequires: pkgconfig(libvmdk)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
@@ -54,11 +59,18 @@ CFLAGS="%{optflags}"
%install
%python_install
%fdupes %{buildroot}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
# pytest is NOT suppoerted (see gh#py4n6/pytsk#48)
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
$python ./run_tests.py
}
%files %{python_files}
%defattr(-,root,root)
%doc LICENSE README
%doc README
%license LICENSE
%{python_sitearch}/*
%changelog