From c03bae03c640dc34a8182f74c3c697438d4eef44af720a135ce702f5e4f16f11 Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Wed, 11 Oct 2017 23:10:50 +0000 Subject: [PATCH] Accepting request 533516 from home:gregfreemyer:Tools-for-forensic-boot-cd - update to v0~20170802 - implement python singlespec syntax - add LGPL-3.0+ for the included talloc library - update to v0~20170128 * Syncs up with recent Sleuthkit versions * required by python-plaso 1.5.1 support of Sleuthkit 4.4.0 * fails to build with Leap 42.1 and older * the only known consumer of python-tsk v0~20170128 is python-plaso v1.5.1 * both python-tsk v0~20170128 and python-plaso v1.5.1 will only be supported on Leap 42.2 and newer - add a patch to keep setup.py from attempting to build internal talloc lib - prepare to add python3 support - add Provides pytsk3 as used by python-plaso 1.5.1 - add "Provides: pytsk" - pytsk is now in use by upstream dependencies - update to v0~20140506 * This is just a wrapper for libtsk10, upstream did not provide any release notes - Address legal issues raised in BNC#839248 - update to latest version in source repo (as of 9/10/2013) * now uses libtalloc shared library if available * remaining GPL licenses changed to Apache-2.0 with permission of relevant copyright holder - added BuildRequires libtalloc-devel to allow shared library to be used - added rm -rf talloc and talloc.new to highlight they are not used in the build - fix BuildRequires * remove spurious pcre-devel * add gcc-c++ - update to latest version in source repo - per author, sleuthkit-devel 4.1 compatibility is only in the source repo - change version from 0.0.0~ to 0~ - initial package OBS-URL: https://build.opensuse.org/request/show/533516 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-tsk?expand=0&rev=10 --- python-tsk.changes | 12 ++++++++--- python-tsk.spec | 46 +++++++++++++++--------------------------- pytsk3-20170128.tar.gz | 3 --- pytsk3-20170802.tar.gz | 3 +++ 4 files changed, 28 insertions(+), 36 deletions(-) delete mode 100644 pytsk3-20170128.tar.gz create mode 100644 pytsk3-20170802.tar.gz diff --git a/python-tsk.changes b/python-tsk.changes index 3b34449..3614810 100644 --- a/python-tsk.changes +++ b/python-tsk.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Oct 3 23:20:10 UTC 2017 - Greg.Freemyer@gmail.com + +- update to v0~20170802 +- implement python singlespec syntax +- add LGPL-3.0+ for the included talloc library + ------------------------------------------------------------------- Sat Feb 25 20:05:57 UTC 2017 - Greg.Freemyer@gmail.com @@ -7,9 +14,8 @@ Sat Feb 25 20:05:57 UTC 2017 - Greg.Freemyer@gmail.com * fails to build with Leap 42.1 and older * the only known consumer of python-tsk v0~20170128 is python-plaso v1.5.1 * both python-tsk v0~20170128 and python-plaso v1.5.1 will only be supported on Leap 42.2 and newer -- add pytsk_20170128_remove_talloc_build.patch - to keep setup.py from attempting to build internal talloc lib -- add python3 support +- add a patch to keep setup.py from attempting to build internal talloc lib +- prepare to add python3 support - add Provides pytsk3 as used by python-plaso 1.5.1 ------------------------------------------------------------------- diff --git a/python-tsk.spec b/python-tsk.spec index e120a44..f2e392b 100644 --- a/python-tsk.spec +++ b/python-tsk.spec @@ -16,63 +16,49 @@ # -%define timestamp 20170128 - +%define timestamp 20170802 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tsk Version: 0~%{timestamp} Release: 0 Summary: Python bindings for tsk - The SleuthKit -License: Apache-2.0 +# 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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libtalloc-devel -BuildRequires: pkg-config -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros BuildRequires: sleuthkit-devel >= 4.4.0 -Provides: pytsk -Provides: pytsk3 BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages %description -The Sleuthkit is a forensic filesystem analysis framework (http://www.sleuthkit.org/). This project is a python binding for the sleuthkit. - -%package -n python3-tsk -Summary: Python 3 bindings for the sleuthkit -Group: Development/Languages/Python -BuildRequires: python3-devel -BuildRequires: python3-setuptools - -%description -n python3-tsk -Python 3 bindings for the sleuthkit (http://www.sleuthkit.org/) +The Sleuthkit is a forensic filesystem analysis framework (http://www.sleuthkit.org/). This project is a python 2 binding for the sleuthkit. %prep %setup -q -n pytsk3-%{timestamp} # remove unused libraries with incompatible license, use libtalloc from main repositories -rm -rf pytsk talloc -rm -rf pytsk talloc.new -%patch1 -p1 +# rm -rf pytsk talloc +# rm -rf pytsk talloc.new +# %patch1 -p1 %build -CFLAGS="%{optflags}" python setup.py build +CFLAGS="%{optflags}" +%python_build %install -python2 setup.py install --root=%{buildroot} --prefix=%{_prefix} -python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} +%python_install %fdupes %{buildroot} -%files +%files %{python_files} %defattr(-,root,root) %doc LICENSE README %{python_sitearch}/* -%files -n python3-tsk -%defattr(-,root,root) -%doc LICENSE README -%{python3_sitearch}/* - %changelog diff --git a/pytsk3-20170128.tar.gz b/pytsk3-20170128.tar.gz deleted file mode 100644 index 7b73593..0000000 --- a/pytsk3-20170128.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:71df82052f209583b2c042fed2abc5110ff83d950cdf748d6cbad244d709ce46 -size 2803782 diff --git a/pytsk3-20170802.tar.gz b/pytsk3-20170802.tar.gz new file mode 100644 index 0000000..c0afd95 --- /dev/null +++ b/pytsk3-20170802.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32259447c997104865ee5e09fb106fc1451019d57a6d4ffa82cbbce45a7b5495 +size 2934331