diff --git a/.gitignore b/.gitignore index e69de29..1f2d63e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pefile-2023.2.7.tar.gz diff --git a/python-pefile.spec b/python-pefile.spec new file mode 100644 index 0000000..c172086 --- /dev/null +++ b/python-pefile.spec @@ -0,0 +1,53 @@ +# Created by pyp2rpm-3.3.8 +%global pypi_name pefile +%global pypi_version 2023.2.7 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1%{?dist} +Summary: Python PE parsing module + +License: MIT +URL: https://github.com/erocarrera/pefile +Source0: %{pypi_name}-%{pypi_version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description +pefile is a multi-platform Python module to parse and work with Portable +Executable (PE) files. Most of the information contained in the PE file +headers is accessible, as well as all the sections' details and data. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +pefile is a multi-platform Python module to parse and work with Portable +Executable (PE) files. Most of the information contained in the PE file +headers is accessible, as well as all the sections' details and data. + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%{python3_sitelib}/pefile.py +%{python3_sitelib}/peutils.py +%{python3_sitelib}/ordlookup +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Tue May 23 2023 Gerd Hoffmann - 2023.2.7-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..b99cd47 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pefile-2023.2.7.tar.gz) = 241d9846954f094ed39e61d80e7d8c1612829ec909650175e75657f9cf69c9bef9e2a115d4106bb14757125c0ffaa3e93abfb2f078e80326e78ac5818c7c2fd3