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