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