Files
python-pypcode/python-pypcode.spec
Keke Ming 04bcc1c341 add python-pypcode
Signed-off-by: Keke Ming <ming.jvle@gmail.com>
2026-02-22 19:45:03 +08:00

56 lines
1.6 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 pypcode
Name: python-%{srcname}
Version: 3.3.3
Release: %autorelease
Summary: Python bindings to Ghidra's SLEIGH library for disassembly and lifting to P-Code IR
License: BSD-2-Clause AND Apache-2.0 AND Zlib
URL: https://github.com/angr/pypcode
#!RemoteAsset
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildSystem: pyproject
BuildOption(install): -l %{srcname}
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3dist(nanobind)
BuildRequires: python3dist(pytest)
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: ninja
Provides: python3-%{srcname}
%python_provide python3-%{srcname}
%description
bitarray provides an object type which efficiently represents an array of booleans.
%prep
%autosetup -n %{srcname}-%{version}
# if we don't remove "cmake" from the pyproject.toml,
# pip will try to install it and fail because we
# don't have "python3-cmake" in our buildsystem,
# but we do have cmake, so just remove it from
# the pyproject.toml
sed -i 's/, "cmake"//g' pyproject.toml
%generate_buildrequires
%pyproject_buildrequires
%files -f %{pyproject_files}
%license LICENSE.txt
%doc README.md
%changelog
%{?autochangelog}