marshalparser/marshalparser.spec

54 lines
1.1 KiB
RPMSpec
Raw Normal View History

2020-07-20 15:20:21 +00:00
Name: marshalparser
2023-03-17 14:34:34 +00:00
Version: 0.3.4
2022-11-08 12:45:26 +00:00
Release: %autorelease
2020-07-20 15:20:21 +00:00
Summary: Parser for Python internal Marshal format
# SPDX
2020-07-20 15:20:21 +00:00
License: MIT
URL: https://github.com/fedora-python/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
# For tests on various pyc files
# We intentionally skip those on RHEL to avoid pulling other Pythons into next RHEL.
# When a new Python is added into RHEL, the new version should be explicitly added.
%if %{undefined rhel}
2020-07-20 15:20:21 +00:00
BuildRequires: python3.6
BuildRequires: python3.8
BuildRequires: python3.9
2020-11-11 08:38:28 +00:00
BuildRequires: python3.10
2022-11-05 14:20:25 +00:00
BuildRequires: python3.11
BuildRequires: python3.12
%endif
2020-07-20 15:20:21 +00:00
%generate_buildrequires
%pyproject_buildrequires -x test
2020-07-20 15:20:21 +00:00
%description
Parser for Python internal Marshal format which can fix pyc files
reproducibility.
%prep
%autosetup
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{name}
%check
%pytest
2020-07-20 15:20:21 +00:00
%files -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog
2022-11-08 12:45:26 +00:00
%autochangelog