20993e7
Name:           marshalparser
0759bc1
Version:        0.3.4
603fb53
Release:        %autorelease
20993e7
Summary:        Parser for Python internal Marshal format
20993e7
5683a7f
# SPDX
20993e7
License:        MIT
20993e7
URL:            https://github.com/fedora-python/%{name}
20993e7
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
20993e7
BuildArch:      noarch
20993e7
20993e7
BuildRequires:  python3-devel
20993e7
BuildRequires:  pyproject-rpm-macros
20993e7
20993e7
# For tests on various pyc files
89c691e
# We intentionally skip those on RHEL to avoid pulling other Pythons into next RHEL.
89c691e
# When a new Python is added into RHEL, the new version should be explicitly added.
89c691e
%if %{undefined rhel}
20993e7
BuildRequires:  python3.6
20993e7
BuildRequires:  python3.8
20993e7
BuildRequires:  python3.9
e34b60a
BuildRequires:  python3.10
3d6604f
BuildRequires:  python3.11
3d6604f
BuildRequires:  python3.12
89c691e
%endif
20993e7
20993e7
%generate_buildrequires
89c691e
%pyproject_buildrequires -x test
20993e7
20993e7
%description
20993e7
Parser for Python internal Marshal format which can fix pyc files
20993e7
reproducibility.
20993e7
20993e7
%prep
20993e7
%autosetup
20993e7
20993e7
%build
20993e7
%pyproject_wheel
20993e7
20993e7
%install
20993e7
%pyproject_install
20993e7
%pyproject_save_files %{name}
20993e7
20993e7
%check
89c691e
%pytest
20993e7
20993e7
%files -f %{pyproject_files}
20993e7
%license LICENSE
20993e7
%doc README.md
20993e7
%{_bindir}/%{name}
20993e7
20993e7
%changelog
603fb53
%autochangelog