b345aa5
%global pypi_name zake
b345aa5
b345aa5
%if 0%{?fedora}
b345aa5
%global with_python3 1
b345aa5
%endif
b345aa5
b345aa5
Name:           python-%{pypi_name}
b345aa5
Version:        0.2.2
6bea8e1
Release:        11%{?dist}
b345aa5
Summary:        Testing utilities for the kazoo library
b345aa5
b345aa5
License:        ASL 2.0
b345aa5
URL:            https://github.com/yahoo/Zake
b345aa5
Source0:        https://pypi.python.org/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
b345aa5
Source1:        https://raw.githubusercontent.com/yahoo/Zake/master/LICENSE
b345aa5
BuildArch:      noarch
b345aa5
b345aa5
%description
b345aa5
It is a python package that works to provide a nice set of testing
b345aa5
utilities for the `kazoo`_ library.
b345aa5
It includes the following functionality:
b345aa5
* Storage access (for viewing what was saved/created).
b345aa5
* Kazoo *mostly* compatible client API.
b345aa5
* Sync/transaction/create/get/delete... ...
b345aa5
b345aa5
%package -n python2-%{pypi_name}
b345aa5
Summary:        Testing utilities for the kazoo library
b345aa5
%{?python_provide:%python_provide python2-%{pypi_name}}
b345aa5
b345aa5
BuildRequires:       python2-devel
55246cf
BuildRequires:       python2-kazoo
55246cf
BuildRequires:       python2-six
55246cf
BuildRequires:       python2-setuptools
b345aa5
55246cf
Requires:    python2-kazoo
b345aa5
b345aa5
%description -n python2-%{pypi_name}
b345aa5
It is a python package that works to provide a nice set of testing
b345aa5
utilities for the `kazoo`_ library.
b345aa5
It includes the following functionality:
b345aa5
* Storage access (for viewing what was saved/created).
b345aa5
* Kazoo *mostly* compatible client API.
b345aa5
* Sync/transaction/create/get/delete... ...
b345aa5
Alan Pevec 42cc167
%if 0%{?with_python3}
b345aa5
%package -n python3-%{pypi_name}
b345aa5
Summary:        Testing utilities for the kazoo library
b345aa5
%{?python_provide:%python_provide python3-%{pypi_name}}
b345aa5
b345aa5
BuildRequires:       python3-devel
b345aa5
BuildRequires:       python3-kazoo
b345aa5
BuildRequires:       python3-six
b345aa5
BuildRequires:       python3-setuptools
b345aa5
55246cf
Requires:    python2-kazoo
b345aa5
b345aa5
%description -n python3-%{pypi_name}
b345aa5
It is a python package that works to provide a nice set of testing
b345aa5
utilities for the `kazoo`_ library.
b345aa5
It includes the following functionality:
b345aa5
* Storage access (for viewing what was saved/created).
b345aa5
* Kazoo *mostly* compatible client API.
b345aa5
* Sync/transaction/create/get/delete... ...
b345aa5
%endif
b345aa5
b345aa5
%prep
b345aa5
%autosetup -n %{pypi_name}-%{version}
b345aa5
cp -p %{SOURCE1} .
b345aa5
b345aa5
%build
b345aa5
%py2_build
b345aa5
Alan Pevec 42cc167
%if 0%{?with_python3}
b345aa5
%py3_build
b345aa5
%endif
b345aa5
b345aa5
%install
b345aa5
%py2_install
b345aa5
Alan Pevec 42cc167
%if 0%{?with_python3}
b345aa5
%py3_install
b345aa5
%endif
b345aa5
b345aa5
%files -n python2-%{pypi_name}
b345aa5
%doc README.rst
b345aa5
%license LICENSE
b345aa5
%{python2_sitelib}/%{pypi_name}
b345aa5
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
b345aa5
Alan Pevec 42cc167
%if 0%{?with_python3}
b345aa5
%files -n python3-%{pypi_name}
b345aa5
%doc README.rst
b345aa5
%license LICENSE
b345aa5
%{python3_sitelib}/%{pypi_name}
b345aa5
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
b345aa5
%endif
b345aa5
b345aa5
%changelog
6bea8e1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-11
6bea8e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6bea8e1
d837458
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.2-10
d837458
- Rebuilt for Python 3.7
d837458
55246cf
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.2-9
55246cf
- Update Python 2 dependency declarations to new packaging standards
55246cf
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
55246cf
7747359
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-8
7747359
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7747359
69e9e5d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-7
69e9e5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
69e9e5d
11eaf5d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-6
11eaf5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
11eaf5d
c3b9c2f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.2-5
c3b9c2f
- Rebuild for Python 3.6
c3b9c2f
9e6ca25
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-4
9e6ca25
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9e6ca25
3e0d934
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-3
3e0d934
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3e0d934
2192cbe
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
2192cbe
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2192cbe
b345aa5
* Wed Sep 30 2015 Chandan Kumar <chkumar246@gmail.com> - 0.2.2-1
b345aa5
- Initial package.