4 Commits

Author SHA256 Message Date
b2a74c0710 Accepting request 1136456 from devel:languages:python
- require setuptools

  * Fix a bug attempting to handle an invalid string
	* Merged path from ThreatGrid's Wesley Brown. Thanks!
		revamped to use bytearrays rather than list,
- moved UserDB.txt to /usr/share/python-pefile
	* This is a PE file signature database.
	* It is available to callers of python-pefile,

OBS-URL: https://build.opensuse.org/request/show/1136456
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pefile?expand=0&rev=10
2024-01-05 21:59:37 +00:00
773ab27889 - require setuptools
* Fix a bug attempting to handle an invalid string
	* Merged path from ThreatGrid's Wesley Brown. Thanks!
		revamped to use bytearrays rather than list,
- moved UserDB.txt to /usr/share/python-pefile
	* This is a PE file signature database.
	* It is available to callers of python-pefile,

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pefile?expand=0&rev=24
2024-01-03 10:08:52 +00:00
cfa3353437 Accepting request 1116245 from devel:languages:python
- Clean up the SPEC file

OBS-URL: https://build.opensuse.org/request/show/1116245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pefile?expand=0&rev=9
2023-10-11 21:53:26 +00:00
65a1ffe929 - Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pefile?expand=0&rev=22
2023-10-07 21:14:46 +00:00
2 changed files with 27 additions and 12 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jan 3 10:08:42 UTC 2024 - Dirk Müller <dmueller@suse.com>
- require setuptools
-------------------------------------------------------------------
Sat Oct 7 21:14:38 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
-------------------------------------------------------------------
Sat Jun 10 09:48:44 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pefile
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,11 +25,12 @@ License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/erocarrera/pefile
Source: https://files.pythonhosted.org/packages/source/p/pefile/pefile-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
@@ -47,14 +48,14 @@ standard use. To the best of my knowledge most of the abuse is handled
gracefully.
%prep
%setup -q -n pefile-%{version}
%autosetup -p1 -n pefile-%{version}
sed -i -e '/^#!\//, 1d' pefile.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# Tests not in sdist and have good reason to at time of writing:
@@ -66,6 +67,10 @@ sed -i -e '/^#!\//, 1d' pefile.py
%files %{python_files}
%doc README
%license LICENSE
%{python_sitelib}/*
%pycache_only %{python_sitelib}/__pycache__/pe*.pyc
%{python_sitelib}/ordlookup
%{python_sitelib}/pefile.py
%{python_sitelib}/peutils.py
%{python_sitelib}/pefile-%{version}*-info
%changelog