Files
python-pyxdia/python-pyxdia.spec
2026-01-21 14:17:48 +08:00

54 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 pyxdia
Name: python-%{srcname}
Version: 0.1.0
Release: %autorelease
Summary: Utility to extract useful program information from a PDB file in an easily parsed format
License: MIT
URL: https://github.com/mborgerson/xdia
#!RemoteAsset
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
#!RemoteAsset
Source1: https://github.com/mborgerson/xdia/releases/download/v%{version}/xdia.zip
#!RemoteAsset
Source2: https://github.com/mborgerson/xdia/releases/download/v%{version}/xdialdr.tar.xz
BuildSystem: pyproject
BuildOption(install): -l %{srcname}
BuildArch: noarch
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(wheel)
%global _description %{expand:
xdia is a utility to extract useful program information from
a PDB file in an easily parsed format (currently JSON) for
other tools to consume. xdia can be run on Windows, Linux,
macOS, and other platforms.
}
Provides: python3-%{srcname}
%python_provide python3-%{srcname}
%description %_description
%generate_buildrequires
%pyproject_buildrequires
%check
%pytest
%files -f %{pyproject_files}
%license LICENSE.txt
%doc README.md
%changelog
%{?autochangelog}