|
rdobuilder |
257e93 |
%global srcname etcd3gw
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%if 0%{?fedora} && 0%{?fedora} < 30
|
|
rdobuilder |
257e93 |
%bcond_without python2
|
|
rdobuilder |
257e93 |
%bcond_without python3
|
|
rdobuilder |
257e93 |
%else
|
|
rdobuilder |
257e93 |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
rdobuilder |
257e93 |
%bcond_with python2
|
|
rdobuilder |
257e93 |
%bcond_without python3
|
|
rdobuilder |
257e93 |
%else
|
|
rdobuilder |
257e93 |
%bcond_without python2
|
|
rdobuilder |
257e93 |
%bcond_with python3
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
Name: python-%{srcname}
|
|
rdobuilder |
257e93 |
Version: 2.1.0
|
|
rdobuilder |
257e93 |
Release: 1%{?dist}
|
|
rdobuilder |
257e93 |
Summary: An etcd3 gateway Python client
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
License: ASL 2.0
|
|
rdobuilder |
257e93 |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
rdobuilder |
257e93 |
Source0: %{pypi_source}
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
BuildArch: noarch
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%description
|
|
rdobuilder |
257e93 |
A python client for etcd3 grpc-gateway v3alpha API
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%if %{with python2}
|
|
rdobuilder |
257e93 |
%package -n python2-%{srcname}
|
|
rdobuilder |
257e93 |
Summary: %{summary}
|
|
rdobuilder |
257e93 |
BuildRequires: python2-devel
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
BuildRequires: python2-futurist
|
|
rdobuilder |
257e93 |
BuildRequires: python2-oslotest
|
|
rdobuilder |
257e93 |
BuildRequires: python2-pytest
|
|
rdobuilder |
257e93 |
BuildRequires: python2-requests
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
Requires: python2-futurist
|
|
rdobuilder |
257e93 |
Requires: python2-pbr
|
|
rdobuilder |
257e93 |
Requires: python2-requests
|
|
rdobuilder |
257e93 |
Requires: python2-six
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%description -n python2-%{srcname}
|
|
rdobuilder |
257e93 |
A python client for etcd3 grpc-gateway v3alpha API
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%if %{with python3}
|
|
rdobuilder |
257e93 |
%package -n python3-%{srcname}
|
|
rdobuilder |
257e93 |
Summary: %{summary}
|
|
rdobuilder |
257e93 |
BuildRequires: python3-devel
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
BuildRequires: python3-futurist
|
|
rdobuilder |
257e93 |
BuildRequires: python3-oslotest
|
|
rdobuilder |
257e93 |
BuildRequires: python3-pytest
|
|
rdobuilder |
257e93 |
BuildRequires: python3-requests
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
Requires: python3-futurist
|
|
rdobuilder |
257e93 |
Requires: python3-pbr
|
|
rdobuilder |
257e93 |
Requires: python3-requests
|
|
rdobuilder |
257e93 |
Requires: python3-six
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%{?python_enable_dependency_generator}
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%description -n python3-%{srcname}
|
|
rdobuilder |
257e93 |
A python client for etcd3 grpc-gateway v3alpha API
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%prep
|
|
rdobuilder |
257e93 |
%autosetup -n %{srcname}-%{version}
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
# Let's manage dependencies using rpm deps.
|
|
rdobuilder |
257e93 |
rm -f *requirements.txt
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%build
|
|
rdobuilder |
257e93 |
%if %{with python2}
|
|
rdobuilder |
257e93 |
%py2_build
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%if %{with python3}
|
|
rdobuilder |
257e93 |
%py3_build
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%install
|
|
rdobuilder |
257e93 |
%if %{with python2}
|
|
rdobuilder |
257e93 |
%py2_install
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%if %{with python3}
|
|
rdobuilder |
257e93 |
%py3_install
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%check
|
|
rdobuilder |
257e93 |
%if %{with python2}
|
|
rdobuilder |
257e93 |
export PYTHON=%{__python2}
|
|
rdobuilder |
257e93 |
py.test
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%if %{with python3}
|
|
rdobuilder |
257e93 |
export PYTHON=%{__python3}
|
|
rdobuilder |
257e93 |
# workaround for https://bugs.launchpad.net/testrepository/+bug/1229445
|
|
rdobuilder |
257e93 |
rm -rf .testrepository/times.dbm
|
|
rdobuilder |
257e93 |
py.test-3
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%if %{with python2}
|
|
rdobuilder |
257e93 |
%files -n python2-%{srcname}
|
|
rdobuilder |
257e93 |
%license LICENSE
|
|
rdobuilder |
257e93 |
%doc README.md CONTRIBUTING.rst HACKING.rst
|
|
rdobuilder |
257e93 |
%{python2_sitelib}/%{srcname}-*.egg-info/
|
|
rdobuilder |
257e93 |
%{python2_sitelib}/%{srcname}/
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%if %{with python3}
|
|
rdobuilder |
257e93 |
%files -n python3-%{srcname}
|
|
rdobuilder |
257e93 |
%license LICENSE
|
|
rdobuilder |
257e93 |
%doc README.md CONTRIBUTING.rst HACKING.rst
|
|
rdobuilder |
257e93 |
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
rdobuilder |
257e93 |
%{python3_sitelib}/%{srcname}/
|
|
rdobuilder |
257e93 |
%endif
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
%changelog
|
|
rdobuilder |
257e93 |
* Thu Sep 1 2022 John Eckersberg <jeckersb@redhat.com> - 2.1.0-1
|
|
rdobuilder |
257e93 |
- New upstream version 2.1.0 (rhbz#2123402)
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Thu Aug 4 2022 John Eckersberg <jeckersb@redhat.com> - 2.0.0-1
|
|
rdobuilder |
257e93 |
- New upstream version 2.0.0 (rhbz#2115274)
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
|
|
rdobuilder |
257e93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Thu Jun 23 2022 Python Maint <python-maint@redhat.com> - 1.0.2-2
|
|
rdobuilder |
257e93 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Thu May 12 2022 John Eckersberg <jeckersb@redhat.com> - 1.0.2-1
|
|
rdobuilder |
257e93 |
- New upstream version 1.0.2 (rhbz#2082061)
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Wed Feb 9 2022 John Eckersberg <jeckersb@redhat.com> - 1.0.1-1
|
|
rdobuilder |
257e93 |
- New upstream version 1.0.1 (rhbz#2052448)
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
rdobuilder |
257e93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
rdobuilder |
257e93 |
- Second attempt - Rebuilt for
|
|
rdobuilder |
257e93 |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Thu Jul 1 2021 John Eckersberg <jeckersb@redhat.com> - 1.0.0-1
|
|
rdobuilder |
257e93 |
- New upstream version 1.0.0 (rhbz#1978274)
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.6-3
|
|
rdobuilder |
257e93 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-2
|
|
rdobuilder |
257e93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Thu Jul 30 2020 John Eckersberg <jeckersb@redhat.com> - 0.2.6-1
|
|
rdobuilder |
257e93 |
- New upstream version 0.2.6 (rhbz#1862104)
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-3
|
|
rdobuilder |
257e93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-2
|
|
rdobuilder |
257e93 |
- Rebuilt for Python 3.9
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Tue Jan 28 2020 John Eckersberg <eck@redhat.com> - 0.2.5-1
|
|
rdobuilder |
257e93 |
- New upstream version 0.2.5 (rhbz#1795745)
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.4-11
|
|
rdobuilder |
257e93 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.4-10
|
|
rdobuilder |
257e93 |
- Rebuilt for Python 3.8
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Mon Jul 29 2019 Alfredo Moralejo <amoralej@redhat.com> - 0.2.4-9
|
|
rdobuilder |
257e93 |
- Use pytest to run unit tests
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-8
|
|
rdobuilder |
257e93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Fri Mar 8 2019 John Eckersberg <eck@redhat.com> - 0.2.4-7
|
|
rdobuilder |
257e93 |
- Before f30, build for both py2 and py3
|
|
rdobuilder |
257e93 |
- Add test workaround when run for both py2 and py3
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Tue Mar 5 2019 John Eckersberg <eck@redhat.com> - 0.2.4-6
|
|
rdobuilder |
257e93 |
- Add missing req for python3-pbr
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Tue Mar 05 2019 Eric Harney <eharney@redhat.com> - 0.2.4-5
|
|
rdobuilder |
257e93 |
- Add missing reqs for python3
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Mon Mar 04 2019 Eric Harney <eharney@redhat.com> - 0.2.4-4
|
|
rdobuilder |
257e93 |
- Remove runtime req on oslotest
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Thu Feb 28 2019 Alfredo Moralejo <amoralej@redhat.com> - 0.2.4-3
|
|
rdobuilder |
257e93 |
- Remve {test-,}requirements.txt to manage dependencies manually.
|
|
rdobuilder |
257e93 |
|
|
rdobuilder |
257e93 |
* Wed Feb 13 2019 John Eckersberg <eck@redhat.com> - 0.2.4-1
|
|
rdobuilder |
257e93 |
- Initial package
|
|
rdobuilder |
257e93 |
|