Convert spec file to CentOS Stream 9 and RHEL 9
Resolves: rhbz#2051483
This commit is contained in:
parent
38e366710f
commit
da20a04413
@ -1,6 +1,6 @@
|
||||
Name: marshalparser
|
||||
Version: 0.3.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Parser for Python internal Marshal format
|
||||
|
||||
License: MIT
|
||||
@ -11,15 +11,11 @@ BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
|
||||
# For tests on various pyc files
|
||||
BuildRequires: python3.6
|
||||
BuildRequires: python3.7
|
||||
BuildRequires: python3.8
|
||||
BuildRequires: python3.9
|
||||
BuildRequires: python3.10
|
||||
# Test dependencies
|
||||
BuildRequires: python3-pytest
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -t
|
||||
%pyproject_buildrequires
|
||||
|
||||
%description
|
||||
Parser for Python internal Marshal format which can fix pyc files
|
||||
@ -28,6 +24,10 @@ reproducibility.
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
# Remove tests for Python versions that we don't ship, leave 3.9.
|
||||
# They are skipped automatically, but it takes a long time.
|
||||
rm -rf test/python_stdlib/{3.10,3.11,3.6,3.7,3.8}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
@ -36,7 +36,7 @@ reproducibility.
|
||||
%pyproject_save_files %{name}
|
||||
|
||||
%check
|
||||
%tox
|
||||
%pytest -v test.py
|
||||
|
||||
%files -f %{pyproject_files}
|
||||
%license LICENSE
|
||||
@ -44,6 +44,9 @@ reproducibility.
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Mar 03 2022 Tomas Orsava <torsava@redhat.com> - 0.3.0-3
|
||||
- Convert spec file to CentOS Stream 9 and RHEL 9
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
@ -85,4 +88,3 @@ reproducibility.
|
||||
|
||||
* Wed Jul 15 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.1-1
|
||||
- Initial package
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user