| |
@@ -2,7 +2,7 @@
|
| |
|
| |
Name: python-%{pypi_name}
|
| |
Version: 2.10.0
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Run-time type checker for Python
|
| |
License: MIT
|
| |
URL: https://github.com/agronholm/%{pypi_name}
|
| |
@@ -38,7 +38,11 @@
|
| |
|
| |
%prep
|
| |
%autosetup -n %{pypi_name}-%{version}
|
| |
- rm -rf %{pypi_name}.egg-info/*
|
| |
+ rm -rf %{pypi_name}.egg-info
|
| |
+ %if 0%{?fedora} < 33 || 0%{?rhel} < 9
|
| |
+ # older setuptools generates PKG-INFO with version=='0.0.0' unless specified
|
| |
+ sed -i '/name = typeguard/a version = %{version}' setup.cfg
|
| |
+ %endif
|
| |
|
| |
%build
|
| |
%py3_build
|
| |
@@ -56,6 +60,9 @@
|
| |
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
| |
|
| |
%changelog
|
| |
+ * Thu Jan 14 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.10.0-2
|
| |
+ - Fix egginfo on Fedora < 33 so the auto-generated Provides has the right version
|
| |
+
|
| |
* Mon Oct 26 2020 Christopher Brown <chris.brown@redhat.com> - 2.10.0-1
|
| |
- Update to 2.10.0
|
| |
- Remove conditional as python 3.9 now supported
|
| |
If
setup.cfg
does not have a declared version, the generatedPKG-INFO
has version set to 0.0.0. This does not seem to affect newer setuptools in Fedora >= 33 (and the upcoming RHEL >= 9)Signed-off-by: Michel Alexandre Salim michel@michel-slm.name