|
 |
4f21af9 |
%global modname etcd
|
|
 |
4f21af9 |
%global srcname python-%{modname}
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
Name: %{srcname}
|
|
 |
b4f6e73 |
Version: 0.4.5
|
|
 |
e8b2724 |
Release: 8%{?dist}
|
|
Matthew Barnes |
a673770 |
Summary: A python client library for etcd
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
License: MIT
|
|
Matthew Barnes |
a673770 |
URL: http://pypi.python.org/pypi/%{srcname}
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
# Using the github URL because the tarball file at pypi excludes
|
|
Matthew Barnes |
a673770 |
# the license file. But github tarball files are named awkwardly.
|
|
Matthew Barnes |
a673770 |
Source0: https://github.com/jplana/%{srcname}/archive/%{version}.tar.gz
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
#VCS: git:https://github.com/jplana/python-etcd
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
BuildArch: noarch
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
e321fa6 |
# See https://bugzilla.redhat.com/1393497
|
|
Matthew Barnes |
05cda07 |
# Also https://fedoraproject.org/wiki/Packaging:Guidelines#Noarch_with_Unported_Dependencies
|
|
Matthew Barnes |
d35e5e6 |
ExclusiveArch: noarch %{ix86} x86_64 %{arm} aarch64 ppc64le s390x
|
|
Matthew Barnes |
e321fa6 |
|
|
Matthew Barnes |
a673770 |
BuildRequires: python2-devel
|
|
Matthew Barnes |
a673770 |
BuildRequires: python-dns
|
|
Matthew Barnes |
a673770 |
BuildRequires: python-mock
|
|
Matthew Barnes |
a673770 |
BuildRequires: python-nose
|
|
Matthew Barnes |
f84ddac |
BuildRequires: python-urllib3
|
|
Matthew Barnes |
a673770 |
BuildRequires: pyOpenSSL
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
BuildRequires: python3-devel
|
|
Matthew Barnes |
a673770 |
BuildRequires: python3-dns
|
|
Matthew Barnes |
a673770 |
BuildRequires: python3-mock
|
|
Matthew Barnes |
a673770 |
BuildRequires: python3-nose
|
|
Matthew Barnes |
f84ddac |
BuildRequires: python3-urllib3
|
|
Matthew Barnes |
a673770 |
BuildRequires: python3-pyOpenSSL
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
%description
|
|
Matthew Barnes |
a673770 |
Client library for interacting with an etcd service, providing Python
|
|
Matthew Barnes |
a673770 |
access to the full etcd REST API. Includes authentication, accessing
|
|
Matthew Barnes |
a673770 |
and manipulating shared content, managing cluster members, and leader
|
|
Matthew Barnes |
a673770 |
election.
|
|
Matthew Barnes |
a673770 |
|
|
 |
e8b2724 |
%package -n python2-%{modname}
|
|
Matthew Barnes |
a673770 |
Summary: %summary
|
|
Matthew Barnes |
a673770 |
Requires: python-dns
|
|
Matthew Barnes |
8fbff5d |
Requires: python-urllib3
|
|
 |
e8b2724 |
Obsoletes: python2-python-etcd
|
|
 |
e8b2724 |
Provides: python2-python-etcd
|
|
 |
e8b2724 |
%{?python_provide:%python_provide python2-etcd}
|
|
Matthew Barnes |
a673770 |
|
|
 |
e8b2724 |
%description -n python2-%{modname}
|
|
Matthew Barnes |
a673770 |
Client library for interacting with an etcd service, providing Python
|
|
Matthew Barnes |
a673770 |
access to the full etcd REST API. Includes authentication, accessing
|
|
Matthew Barnes |
a673770 |
and manipulating shared content, managing cluster members, and leader
|
|
Matthew Barnes |
a673770 |
election.
|
|
Matthew Barnes |
a673770 |
|
|
 |
e8b2724 |
%package -n python3-%{modname}
|
|
Matthew Barnes |
a673770 |
Summary: %summary
|
|
Matthew Barnes |
a673770 |
Requires: python3-dns
|
|
Matthew Barnes |
8fbff5d |
Requires: python3-urllib3
|
|
 |
e8b2724 |
Obsoletes: python3-python-etcd
|
|
 |
e8b2724 |
Provides: python3-python-etcd
|
|
 |
e8b2724 |
%{?python_provide:%python_provide python3-etcd}
|
|
Matthew Barnes |
a673770 |
|
|
 |
e8b2724 |
%description -n python3-%{modname}
|
|
Matthew Barnes |
a673770 |
Client library for interacting with an etcd service, providing Python
|
|
Matthew Barnes |
a673770 |
access to the full etcd REST API. Includes authentication, accessing
|
|
Matthew Barnes |
a673770 |
and manipulating shared content, managing cluster members, and leader
|
|
Matthew Barnes |
a673770 |
election.
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
%prep
|
|
Matthew Barnes |
a673770 |
%autosetup -p1
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
%build
|
|
Matthew Barnes |
a673770 |
%py2_build
|
|
Matthew Barnes |
a673770 |
%py3_build
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
%install
|
|
Matthew Barnes |
a673770 |
%py2_install
|
|
Matthew Barnes |
a673770 |
%py3_install
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
%check
|
|
 |
256bfce |
nosetests src/etcd/tests/unit/
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
# This seems to require a newer python3-mock than what's currently available
|
|
Matthew Barnes |
a673770 |
# in F23, and even Rawhide. If I let it download mock-1.3.0 from the Python
|
|
Matthew Barnes |
a673770 |
# Package Index (pypi) then tests pass.
|
|
Matthew Barnes |
a673770 |
#%%{__python3} setup.py test
|
|
Matthew Barnes |
a673770 |
|
|
 |
e8b2724 |
%files -n python2-%{modname}
|
|
Matthew Barnes |
a673770 |
%doc README.rst
|
|
Matthew Barnes |
a673770 |
%license LICENSE.txt
|
|
Matthew Barnes |
a673770 |
%{python2_sitelib}/*
|
|
Matthew Barnes |
a673770 |
|
|
 |
e8b2724 |
%files -n python3-%{modname}
|
|
Matthew Barnes |
a673770 |
%doc README.rst
|
|
Matthew Barnes |
a673770 |
%license LICENSE.txt
|
|
Matthew Barnes |
a673770 |
%{python3_sitelib}/*
|
|
Matthew Barnes |
a673770 |
|
|
Matthew Barnes |
a673770 |
%changelog
|
|
 |
380697a |
* Mon Dec 18 2017 Steve Milner <smilner@redhat.com> - 0.4.5-8
|
|
 |
e8b2724 |
- Fix naming per rhbz#1526788.
|
|
 |
e8b2724 |
|
|
 |
275851e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.5-7
|
|
 |
275851e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
 |
275851e |
|
|
Matthew Barnes |
d35e5e6 |
* Mon Jun 19 2017 Matthew Barnes <mbarnes@redhat.com> - 0.4.5-6
|
|
Matthew Barnes |
d35e5e6 |
- I'm told etcd works on s390x too; add it to ExclusiveArch.
|
|
Matthew Barnes |
d35e5e6 |
|
|
 |
0d5f95b |
* Mon Jun 19 2017 Steve Milner <smilner@redhat.com> - 0.4.5-5
|
|
 |
0d5f95b |
- Remove requirements on etcd for build and install
|
|
 |
0d5f95b |
|
|
Matthew Barnes |
05cda07 |
* Mon Jun 19 2017 Matthew Barnes <mbarnes@redhat.com> - 0.4.5-4
|
|
Matthew Barnes |
05cda07 |
- Last change didn't help and we were in compliance with Packaging
|
|
Matthew Barnes |
05cda07 |
Guidelines before the change, so revert. The fact that it still
|
|
Matthew Barnes |
05cda07 |
randomly gets built on ppc64 seems to be a Fedora infrastructure
|
|
Matthew Barnes |
ea69313 |
issue.
|
|
Matthew Barnes |
05cda07 |
|
|
Matthew Barnes |
aa23b95 |
* Wed Jun 14 2017 Matthew Barnes <mbarnes@redhat.com> - 0.4.5-3
|
|
Matthew Barnes |
aa23b95 |
- Try excluding ppc64 directly, since ExclusiveArch doesn't.
|
|
Matthew Barnes |
aa23b95 |
|
|
Matthew Barnes |
8fbff5d |
* Wed Apr 12 2017 Matthew Barnes <mbarnes@redhat.com> - 0.4.5-2
|
|
Matthew Barnes |
8fbff5d |
- Add missing requires python[3]-urllib3 (rhbz#1440546).
|
|
Matthew Barnes |
8fbff5d |
- Patch from Oleg Gashev <oleg@gashev.net>
|
|
Matthew Barnes |
8fbff5d |
|
|
 |
b4f6e73 |
* Thu Mar 2 2017 Steve Milner <smilner@redhat.com> - 0.4.5-1
|
|
 |
b4f6e73 |
- Update to 0.4.5
|
|
 |
b4f6e73 |
|
|
Matthew Barnes |
df534ed |
* Fri Feb 17 2017 Matthew Barnes <mbarnes@redhat.com> - 0.4.4-1
|
|
Matthew Barnes |
df534ed |
- Update to 0.4.4
|
|
Matthew Barnes |
df534ed |
|
|
 |
67c3a98 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-7
|
|
 |
67c3a98 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
 |
67c3a98 |
|
|
 |
899e13b |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.4.3-6
|
|
 |
899e13b |
- Rebuild for Python 3.6
|
|
 |
899e13b |
|
|
 |
256bfce |
* Fri Nov 18 2016 Steve Milner <smilner@redhat.com> - 0.4.3-5
|
|
 |
256bfce |
- Running unittests only.
|
|
 |
256bfce |
|
|
 |
8748a74 |
* Wed Nov 16 2016 Steve Milner <smilner@redhat.com> - 0.4.3-4
|
|
 |
8748a74 |
- Added noarch to the list to build.
|
|
 |
4f21af9 |
- Fixed provides (see rhbz#1374240)
|
|
 |
4f21af9 |
- Disabled the new auth module (see https://github.com/jplana/python-etcd/issues/210)
|
|
 |
8748a74 |
|
|
Matthew Barnes |
e321fa6 |
* Wed Nov 09 2016 Matthew Barnes <mbarnes@redhat.com> - 0.4.3-3
|
|
Matthew Barnes |
e321fa6 |
- etcd now excludes ppc64; follow suit.
|
|
Matthew Barnes |
e321fa6 |
related: #1393497
|
|
Matthew Barnes |
e321fa6 |
|
|
 |
f099529 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-2
|
|
 |
f099529 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
 |
f099529 |
|
|
Matthew Barnes |
a673770 |
* Mon Feb 22 2016 Matthew Barnes <mbarnes@redhat.com> - 0.4.3-1
|
|
Matthew Barnes |
a673770 |
- Initial packaging.
|