Accepting request 1306480 from home:glaubitz:branches:security:forensics
- Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install - Limit Python files matched in %files section OBS-URL: https://build.opensuse.org/request/show/1306480 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-tsk?expand=0&rev=22
This commit is contained in:
@@ -34,7 +34,9 @@ Source3: python-tsk.keyring
|
||||
#PATCH-FIX-UPSTREAM fix-rename-bool-variable.patch taken from https://github.com/py4n6/pytsk/pull/111/
|
||||
Patch0: fix-rename-bool-variable.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libstdc++-devel
|
||||
@@ -60,10 +62,10 @@ The Sleuthkit is a forensic filesystem analysis framework (http://www.sleuthkit.
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}"
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
@@ -75,6 +77,7 @@ $python ./run_tests.py
|
||||
%files %{python_files}
|
||||
%doc README
|
||||
%license LICENSE
|
||||
%{python_sitearch}/*
|
||||
%{python_sitearch}/pytsk3-%{version}.dist-info
|
||||
%{python_sitearch}/pytsk3.*.so
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user