55 lines
1.9 KiB
RPMSpec
55 lines
1.9 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package python-tsk
|
||
|
|
#
|
||
|
|
# Copyright (c) 2011 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-tsk
|
||
|
|
Version: 0~20130910
|
||
|
|
Release: 0
|
||
|
|
License: Apache-2.0
|
||
|
|
Summary: Python bindings for tsk - The SleuthKit
|
||
|
|
Url: http://code.google.com/p/pytsk
|
||
|
|
Group: Development/Libraries/Python
|
||
|
|
#DL-URL: http://pytsk.googlecode.com/files/pytsk-2012-11-10.tgz
|
||
|
|
#pytsk support for TSK 4.1 is not released, so we have to pull it from the source repo
|
||
|
|
#from source repo: hg clone https://code.google.com/p/pytsk/
|
||
|
|
Source0: pytsk-20130910.tgz
|
||
|
|
BuildRequires: pkg-config
|
||
|
|
BuildRequires: python-devel
|
||
|
|
BuildRequires: libtalloc-devel
|
||
|
|
BuildRequires: sleuthkit-devel
|
||
|
|
BuildRequires: gcc-c++
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
|
||
|
|
%description
|
||
|
|
The Sleuthkit is a forensic filesystem analysis framework (http://www.sleuthkit.org/). This project is a python binding for the sleuthkit.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n pytsk
|
||
|
|
# remove unused libraries with incompatible license, use libtalloc from main repositories
|
||
|
|
rm -rf pytsk talloc
|
||
|
|
rm -rf pytsk talloc.new
|
||
|
|
|
||
|
|
%build
|
||
|
|
CFLAGS="%{optflags}" python setup.py build
|
||
|
|
|
||
|
|
%install
|
||
|
|
python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES
|
||
|
|
|
||
|
|
%files -f INSTALLED_FILES
|
||
|
|
%defattr(-,root,root)
|
||
|
|
|
||
|
|
%changelog
|