2013-09-26 17:59:48 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-tsk
|
|
|
|
|
#
|
2017-03-12 19:02:24 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-09-26 17:59:48 +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.
|
2014-08-14 12:58:16 +00:00
|
|
|
|
2013-09-26 17:59:48 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2014-08-14 12:58:16 +00:00
|
|
|
|
2017-10-11 23:10:50 +00:00
|
|
|
%define timestamp 20170802
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-09-26 17:59:48 +00:00
|
|
|
Name: python-tsk
|
2017-03-12 19:02:24 +00:00
|
|
|
Version: 0~%{timestamp}
|
2013-09-26 17:59:48 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python bindings for tsk - The SleuthKit
|
2017-10-11 23:10:50 +00:00
|
|
|
# the included talloc library is LGPL 3
|
|
|
|
|
License: Apache-2.0 AND LGPL-3.0+
|
2017-03-12 19:02:24 +00:00
|
|
|
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
|
2017-10-11 23:10:50 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-03-12 19:02:24 +00:00
|
|
|
BuildRequires: fdupes
|
2014-08-14 12:58:16 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: libtalloc-devel
|
2017-10-11 23:10:50 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-03-12 19:02:24 +00:00
|
|
|
BuildRequires: sleuthkit-devel >= 4.4.0
|
2013-09-26 17:59:48 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-10-11 23:10:50 +00:00
|
|
|
%python_subpackages
|
2013-09-26 17:59:48 +00:00
|
|
|
|
|
|
|
|
%description
|
2017-10-11 23:10:50 +00:00
|
|
|
The Sleuthkit is a forensic filesystem analysis framework (http://www.sleuthkit.org/). This project is a python 2 binding for the sleuthkit.
|
2017-03-12 19:02:24 +00:00
|
|
|
|
2013-09-26 17:59:48 +00:00
|
|
|
%prep
|
2017-03-12 19:02:24 +00:00
|
|
|
%setup -q -n pytsk3-%{timestamp}
|
2013-09-26 17:59:48 +00:00
|
|
|
# remove unused libraries with incompatible license, use libtalloc from main repositories
|
2017-10-11 23:10:50 +00:00
|
|
|
# rm -rf pytsk talloc
|
|
|
|
|
# rm -rf pytsk talloc.new
|
|
|
|
|
# %patch1 -p1
|
2013-09-26 17:59:48 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-10-11 23:10:50 +00:00
|
|
|
CFLAGS="%{optflags}"
|
|
|
|
|
%python_build
|
2013-09-26 17:59:48 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-10-11 23:10:50 +00:00
|
|
|
%python_install
|
2017-03-12 19:02:24 +00:00
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
2017-10-11 23:10:50 +00:00
|
|
|
%files %{python_files}
|
2017-03-12 19:02:24 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc LICENSE README
|
|
|
|
|
%{python_sitearch}/*
|
2013-09-26 17:59:48 +00:00
|
|
|
|
|
|
|
|
%changelog
|