Hello community, here is the log from the commit of package python-tsk for openSUSE:Factory checked in at 2017-03-12 20:02:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tsk (Old) and /work/SRC/openSUSE:Factory/.python-tsk.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tsk" Sun Mar 12 20:02:24 2017 rev:5 rq:477360 version:0~20170128 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tsk/python-tsk.changes 2014-08-20 10:51:36.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-tsk.new/python-tsk.changes 2017-03-12 20:02:25.147178754 +0100 @@ -1,0 +2,14 @@ +Sat Feb 25 20:05:57 UTC 2017 - [email protected] + +- 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 pytsk_20170128_remove_talloc_build.patch + to keep setup.py from attempting to build internal talloc lib +- add python3 support +- add Provides pytsk3 as used by python-plaso 1.5.1 + +------------------------------------------------------------------- Old: ---- pytsk-20140506.tgz New: ---- pytsk3-20170128.tar.gz pytsk_20170128_remove_talloc_build.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tsk.spec ++++++ --- /var/tmp/diff_new_pack.S599PQ/_old 2017-03-12 20:02:26.522984078 +0100 +++ /var/tmp/diff_new_pack.S599PQ/_new 2017-03-12 20:02:26.526983512 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-tsk # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,39 +16,63 @@ # +%define timestamp 20170128 + Name: python-tsk -Version: 0~20140506 +Version: 0~%{timestamp} Release: 0 Summary: Python bindings for tsk - The SleuthKit License: Apache-2.0 -Group: Development/Libraries/Python -Url: http://code.google.com/p/pytsk -#DL-URL: https://4a014e8976bcea5c2cd7bfa3cac120c3dd10a2f1.googledrive.com/host/0B3fBvzttpiiScUxsUm54cG02RDA/pytsk-20140506.tgz -Source0: pytsk-20140506.tgz +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: fdupes BuildRequires: gcc-c++ BuildRequires: libtalloc-devel BuildRequires: pkg-config BuildRequires: python-devel -BuildRequires: sleuthkit-devel +BuildRequires: python-setuptools +BuildRequires: sleuthkit-devel >= 4.4.0 Provides: pytsk +Provides: pytsk3 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. +%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/) + %prep -%setup -q -n pytsk +%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 %build CFLAGS="%{optflags}" python setup.py build %install -python setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES +python2 setup.py install --root=%{buildroot} --prefix=%{_prefix} +python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} +%fdupes %{buildroot} + +%files +%defattr(-,root,root) +%doc LICENSE README +%{python_sitearch}/* -%files -f INSTALLED_FILES +%files -n python3-tsk %defattr(-,root,root) +%doc LICENSE README +%{python3_sitearch}/* %changelog ++++++ pytsk_20170128_remove_talloc_build.patch ++++++ 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"
