|
|
685cd9 |
%global modname semver
|
|
|
685cd9 |
|
|
|
685cd9 |
Name: python-%{modname}
|
|
|
685cd9 |
Version: 2.13.0
|
|
|
685cd9 |
Release: 3%{?dist}
|
|
|
685cd9 |
Summary: Python helper for Semantic Versioning
|
|
|
685cd9 |
|
|
|
685cd9 |
License: BSD
|
|
|
685cd9 |
URL: https://github.com/k-bx/python-semver
|
|
|
685cd9 |
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
685cd9 |
|
|
|
685cd9 |
BuildArch: noarch
|
|
|
685cd9 |
|
|
|
685cd9 |
%global _description \
|
|
|
685cd9 |
Python module for semantic versioning. Simplifies comparing versions.
|
|
|
685cd9 |
|
|
|
685cd9 |
%description %{_description}
|
|
|
685cd9 |
|
|
|
685cd9 |
%package -n python3-%{modname}
|
|
|
685cd9 |
Summary: %{summary}
|
|
|
685cd9 |
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
685cd9 |
BuildRequires: python3-devel
|
|
|
685cd9 |
BuildRequires: python3-setuptools
|
|
|
685cd9 |
BuildRequires: python3-pytest
|
|
|
685cd9 |
|
|
|
685cd9 |
%description -n python3-%{modname} %{_description}
|
|
|
685cd9 |
|
|
|
685cd9 |
Python 3 version.
|
|
|
685cd9 |
|
|
|
685cd9 |
%prep
|
|
|
685cd9 |
%autosetup
|
|
|
685cd9 |
# Remove settings for coverage from setup.cfg
|
|
|
685cd9 |
sed -i '/-cov[=-]/d' setup.cfg
|
|
|
685cd9 |
# Fix tests for Python 3.10
|
|
|
685cd9 |
# Proposed upstream: https://github.com/python-semver/python-semver/pull/336
|
|
|
685cd9 |
sed -i 's/TypeError: __init__() got an unexpected/TypeError: ...__init__() got an unexpected/' docs/usage.rst
|
|
|
685cd9 |
|
|
|
685cd9 |
%build
|
|
|
685cd9 |
%py3_build
|
|
|
685cd9 |
|
|
|
685cd9 |
%install
|
|
|
685cd9 |
%py3_install
|
|
|
685cd9 |
|
|
|
685cd9 |
%check
|
|
|
685cd9 |
py.test-%{python3_version} -v
|
|
|
685cd9 |
|
|
|
685cd9 |
%files -n python3-%{modname}
|
|
|
685cd9 |
%license LICENSE.txt
|
|
|
685cd9 |
%doc README.rst CHANGELOG.rst
|
|
|
685cd9 |
%{_bindir}/py%{modname}
|
|
|
685cd9 |
%{python3_sitelib}/%{modname}-*.egg-info/
|
|
|
685cd9 |
%{python3_sitelib}/%{modname}.py
|
|
|
685cd9 |
%{python3_sitelib}/__pycache__/%{modname}.*
|
|
|
685cd9 |
|
|
|
685cd9 |
%changelog
|
|
|
685cd9 |
* Tue Feb 16 2021 Lumír Balhar <lbalhar@redhat.com> - 2.13.0-3
|
|
|
685cd9 |
- Fixed tests for Python 3.10
|
|
|
685cd9 |
Resolves: rhbz#1906368
|
|
|
685cd9 |
|
|
|
685cd9 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.0-2
|
|
|
685cd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
685cd9 |
|
|
|
685cd9 |
* Tue Dec 08 2020 Lumír Balhar <lbalhar@redhat.com> - 2.13.0-1
|
|
|
685cd9 |
- Update to 2.13.0 (#1767192)
|
|
|
685cd9 |
|
|
|
685cd9 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-8
|
|
|
685cd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
685cd9 |
|
|
|
685cd9 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.8.1-7
|
|
|
685cd9 |
- Rebuilt for Python 3.9
|
|
|
685cd9 |
|
|
|
685cd9 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-6
|
|
|
685cd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
685cd9 |
|
|
|
685cd9 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8.1-5
|
|
|
685cd9 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
685cd9 |
|
|
|
685cd9 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8.1-4
|
|
|
685cd9 |
- Rebuilt for Python 3.8
|
|
|
685cd9 |
|
|
|
685cd9 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-3
|
|
|
685cd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
685cd9 |
|
|
|
685cd9 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-2
|
|
|
685cd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
685cd9 |
|
|
|
685cd9 |
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.8.1-1
|
|
|
685cd9 |
- Update to 2.8.1
|
|
|
685cd9 |
|
|
|
685cd9 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-2
|
|
|
685cd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
685cd9 |
|
|
|
685cd9 |
* Sun Jul 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.8.0-1
|
|
|
685cd9 |
- Update to 2.8.0
|
|
|
685cd9 |
|
|
|
685cd9 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.8-3
|
|
|
685cd9 |
- Rebuilt for Python 3.7
|
|
|
685cd9 |
|
|
|
685cd9 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.8-2
|
|
|
685cd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
685cd9 |
|
|
|
685cd9 |
* Sun Aug 27 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.7.8-1
|
|
|
685cd9 |
- Update to 2.7.8
|
|
|
685cd9 |
|
|
|
685cd9 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-2
|
|
|
685cd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
685cd9 |
|
|
|
685cd9 |
* Thu Jun 08 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.7.7-1
|
|
|
685cd9 |
- Update to 2.7.7
|
|
|
685cd9 |
|
|
|
685cd9 |
* Thu Feb 09 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.7.5-1
|
|
|
685cd9 |
- Update to 2.7.5
|
|
|
685cd9 |
|
|
|
685cd9 |
* Sat Jan 28 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.7.4-1
|
|
|
685cd9 |
- Initial package
|