diff --git a/python-tsk.changes b/python-tsk.changes index 3614810..2a4739a 100644 --- a/python-tsk.changes +++ b/python-tsk.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Jan 20 00:42:19 UTC 2020 - Greg Freemyer + +- update to v0~20200117 + * Python 2 is officially NOT supported, drop python 2 + * Updated to Sleuthkit 4.7.0 +- add a %check section +- add + * BuildRequires: pkgconfig(libvhdi) + * BuildRequires: pkgconfig(libvmdk) +- remove unused patch file pytsk_20170128_remove_talloc_build.patch + ------------------------------------------------------------------- Tue Oct 3 23:20:10 UTC 2017 - Greg.Freemyer@gmail.com diff --git a/python-tsk.spec b/python-tsk.spec index f2e392b..5dcf8ff 100644 --- a/python-tsk.spec +++ b/python-tsk.spec @@ -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 diff --git a/pytsk3-20170802.tar.gz b/pytsk3-20170802.tar.gz deleted file mode 100644 index c0afd95..0000000 --- a/pytsk3-20170802.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:32259447c997104865ee5e09fb106fc1451019d57a6d4ffa82cbbce45a7b5495 -size 2934331 diff --git a/pytsk3-20200117.tar.gz b/pytsk3-20200117.tar.gz new file mode 100644 index 0000000..84bf93c --- /dev/null +++ b/pytsk3-20200117.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56177164a358e98baa258296aa2e9a509304dc8dab053abac347435a0978d962 +size 3060827 diff --git a/pytsk_20170128_remove_talloc_build.patch b/pytsk_20170128_remove_talloc_build.patch deleted file mode 100644 index 93cdce9..0000000 --- a/pytsk_20170128_remove_talloc_build.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: pytsk3-20170128/setup.py -=================================================================== ---- pytsk3-20170128.orig/setup.py -+++ pytsk3-20170128/setup.py -@@ -340,7 +340,7 @@ class ProjectBuilder(object): - - # The sources to build. - self._source_files = ["class.c", "error.c", "tsk3.c", -- "pytsk3.c", "talloc/talloc.c"] -+ "pytsk3.c"] - - # Path to the top of the unpacked sleuthkit sources. - self._sleuthkit_path = "sleuthkit"