2016-09-28 22:31:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-dfwinreg
|
|
|
|
#
|
2024-05-13 18:37:55 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-09-28 22:31:29 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-01-21 04:37:46 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-09-28 22:31:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-08-01 16:32:34 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2022-06-06 22:24:12 +00:00
|
|
|
|
2024-05-13 18:37:55 +00:00
|
|
|
%define timestamp 20240316
|
2020-01-21 04:37:46 +00:00
|
|
|
%define modname dfwinreg
|
2016-09-28 22:31:29 +00:00
|
|
|
Name: python-dfwinreg
|
|
|
|
Version: 0~%{timestamp}
|
|
|
|
Release: 0
|
|
|
|
Summary: Digital Forensics Windows Registry
|
|
|
|
License: Apache-2.0
|
2016-09-30 12:01:35 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-01-21 04:37:46 +00:00
|
|
|
URL: https://github.com/log2timeline/dfwinreg
|
|
|
|
Source: https://github.com/log2timeline/%{modname}/releases/download/%{timestamp}/%{modname}-%{timestamp}.tar.gz
|
2022-06-06 22:24:12 +00:00
|
|
|
BuildRequires: %{python_module PyYAML}
|
2020-01-21 04:37:46 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2022-06-06 22:24:12 +00:00
|
|
|
BuildRequires: %{python_module dfdatetime}
|
|
|
|
BuildRequires: %{python_module dtfabric}
|
|
|
|
BuildRequires: %{python_module libcreg}
|
|
|
|
BuildRequires: %{python_module libregf}
|
2024-05-13 18:37:55 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-01-21 04:37:46 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-05-13 18:37:55 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-01-21 04:37:46 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-05-13 18:37:55 +00:00
|
|
|
Requires: python-dfdatetime
|
|
|
|
Requires: python-dtfabric
|
|
|
|
Requires: python-libcreg >= 20210502
|
2022-06-08 15:59:12 +00:00
|
|
|
Requires: python-libregf >= 20201002
|
2016-09-28 22:31:29 +00:00
|
|
|
BuildArch: noarch
|
2020-01-21 04:37:46 +00:00
|
|
|
%python_subpackages
|
2016-09-28 22:31:29 +00:00
|
|
|
|
|
|
|
%description
|
2020-01-21 04:37:46 +00:00
|
|
|
%{modname}, or Digital Forensics Windows Registry, is a Python module that provides read-only access to Windows Registry objects.
|
2016-09-28 22:31:29 +00:00
|
|
|
|
|
|
|
%prep
|
2020-01-21 04:37:46 +00:00
|
|
|
%setup -q -n %{modname}-%{timestamp}
|
2022-06-06 22:24:12 +00:00
|
|
|
sed -i 's|/usr/bin/env python|/usr/bin/env python3|' run_tests.py
|
2016-09-28 22:31:29 +00:00
|
|
|
|
|
|
|
%build
|
2024-05-13 18:37:55 +00:00
|
|
|
%pyproject_wheel
|
2016-09-28 22:31:29 +00:00
|
|
|
|
|
|
|
%install
|
2024-05-13 18:37:55 +00:00
|
|
|
%pyproject_install
|
2020-01-21 04:37:46 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-09-28 22:31:29 +00:00
|
|
|
|
2020-01-21 04:37:46 +00:00
|
|
|
# these are installed into the wrong place
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/%{modname}
|
2016-09-28 22:31:29 +00:00
|
|
|
|
2022-06-06 22:24:12 +00:00
|
|
|
%check
|
2022-06-08 02:40:03 +00:00
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
|
|
$python ./run_tests.py
|
|
|
|
}
|
2022-06-06 22:24:12 +00:00
|
|
|
|
2020-01-21 04:37:46 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc ACKNOWLEDGEMENTS AUTHORS README
|
|
|
|
%{python_sitelib}/%{modname}*
|
2016-09-28 22:31:29 +00:00
|
|
|
|
|
|
|
%changelog
|