Files
python-types-pefile/python-types-pefile.spec
Keke Ming fd81cd2829 add python-types-pefile
Signed-off-by: Keke Ming <ming.jvle@gmail.com>
2026-02-23 15:03:53 +08:00

51 lines
1.4 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Jvle <keke.oerv@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
%global srcname types-pefile
Name: python-%{srcname}
Version: 2023.2.7.post0
Release: %autorelease
Summary: Type stubs for pefile
License: GPL-3.0-or-later AND MIT
URL: https://pypi.org/project/types-pefile/
#!RemoteAsset
Source0: https://files.pythonhosted.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-pefile
BuildRequires: python3-setuptools
BuildRequires: python3-pip
Provides: python3-%{srcname}
%python_provide python3-%{srcname}
%description
This package contains type stubs for pefile. It is useful for static analysis
tools like MyPy or Pyright to provide better type checking for pefile.
%prep
%autosetup -p1 -n %{srcname}-%{version}
# Remove the strict version restrictions on pefile in pyproject.toml
sed -i 's/pefile >= .*/pefile"/' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files pefile-stubs ordlookup-stubs
%files -f %{pyproject_files}
%license LICENSE
%license LICENSE.pefile
%doc README.md
%changelog
%{?autochangelog}