diff --git a/kazoo-2.2.1.tar.gz b/kazoo-2.2.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5472a0197f28370e9304143be9d7ac50c2ec67d7 Binary files /dev/null and b/kazoo-2.2.1.tar.gz differ diff --git a/python-kazoo.spec b/python-kazoo.spec new file mode 100644 index 0000000000000000000000000000000000000000..9978ea5cda51afe6b5ace8c0968f51431099de7f --- /dev/null +++ b/python-kazoo.spec @@ -0,0 +1,91 @@ +%global _empty_manifest_terminate_build 0 +Name: python-kazoo +Version: 2.2.1 +Release: 2 +Summary: Higher Level Zookeeper Client +License: Apache-2.0 +URL: https://kazoo.readthedocs.org +Source0: https://files.pythonhosted.org/packages/60/5c/210aa291f9b5be2d0424d512a04dea2f06db816f27289ad1080e267129ec/kazoo-2.2.1.tar.gz +BuildArch: noarch +%description +Kazoo + +``kazoo`` implements a higher level API to `Apache Zookeeper`_ for Python +clients. + + +%package -n python2-kazoo +Summary: Higher Level Zookeeper Client +Provides: python2-kazoo +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-six +Requires: python2-six +Requires: python2-coverage +Requires: python2-mock +Requires: python2-nose +Requires: python2-flake8 +Requires: python2-gevent +Requires: python2-eventlet +%description -n python2-kazoo +Kazoo + +``kazoo`` implements a higher level API to `Apache Zookeeper`_ for Python +clients. + + +%package help +Summary: Development documents and examples for kazoo +Provides: python2-kazoo-doc +%description help +Kazoo + +``kazoo`` implements a higher level API to `Apache Zookeeper`_ for Python +clients. + + +%prep +%autosetup -n kazoo-2.2.1 + +%build +%py2_build + +%install +%py2_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python2-kazoo -f filelist.lst +%{python2_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue May 25 2021 openstack-sig +- Fix Provides +* Wed May 12 2021 openstack-sig +- Package Spec generated