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
|
Name: marshalparser
|
||||||
Version: 0.3.0
|
Version: 0.3.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Parser for Python internal Marshal format
|
Summary: Parser for Python internal Marshal format
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -11,15 +11,11 @@ BuildArch: noarch
|
|||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: pyproject-rpm-macros
|
BuildRequires: pyproject-rpm-macros
|
||||||
|
|
||||||
# For tests on various pyc files
|
# Test dependencies
|
||||||
BuildRequires: python3.6
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3.7
|
|
||||||
BuildRequires: python3.8
|
|
||||||
BuildRequires: python3.9
|
|
||||||
BuildRequires: python3.10
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires -t
|
%pyproject_buildrequires
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Parser for Python internal Marshal format which can fix pyc files
|
Parser for Python internal Marshal format which can fix pyc files
|
||||||
@ -28,6 +24,10 @@ reproducibility.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup
|
%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
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ reproducibility.
|
|||||||
%pyproject_save_files %{name}
|
%pyproject_save_files %{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%tox
|
%pytest -v test.py
|
||||||
|
|
||||||
%files -f %{pyproject_files}
|
%files -f %{pyproject_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -44,6 +44,9 @@ reproducibility.
|
|||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
- 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
|
* Wed Jul 15 2020 Lumír Balhar <lbalhar@redhat.com> - 0.1.1-1
|
||||||
- Initial package
|
- Initial package
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user