110 lines
3.3 KiB
RPMSpec
110 lines
3.3 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-tooz
|
|
Version: 2.8.0
|
|
Release: 2
|
|
Summary: Coordination library for distributed systems.
|
|
License: Apache-2.0
|
|
URL: https://github.com/openstack/tooz
|
|
Source0: https://files.pythonhosted.org/packages/e7/43/989e7a77be0b25dad744cb9712ef458bfe27b1c3dd58de298e88993e41d0/tooz-2.8.0.tar.gz
|
|
BuildArch: noarch
|
|
|
|
Requires: python3-fasteners
|
|
Requires: python3-futurist
|
|
Requires: python3-msgpack
|
|
Requires: python3-pbr
|
|
Requires: python3-stevedore
|
|
Requires: python3-tenacity
|
|
Requires: python3-voluptuous
|
|
Requires: python3-consul2
|
|
Requires: python3-requests
|
|
Requires: python3-etcd3
|
|
Requires: python3-grpcio
|
|
Requires: python3-etcd3gw
|
|
Requires: python3-sysv-ipc
|
|
Requires: python3-pymemcache
|
|
Requires: python3-PyMySQL
|
|
Requires: python3-psycopg2
|
|
Requires: python3-redis
|
|
Requires: python3-coverage
|
|
Requires: python3-ddt
|
|
Requires: python3-fixtures
|
|
Requires: python3-nose
|
|
Requires: python3-pifpaf
|
|
Requires: python3-pre-commit
|
|
Requires: python3-subunit
|
|
Requires: python3-stestr
|
|
Requires: python3-testtools
|
|
Requires: python3-zake
|
|
Requires: python3-kazoo
|
|
|
|
%description
|
|
The Tooz project aims at centralizing the most common distributed primitives
|
|
like group membership protocol, lock service and leader election by providing
|
|
a coordination API helping developers to build distributed applications.
|
|
|
|
%package -n python3-tooz
|
|
Summary: Coordination library for distributed systems.
|
|
Provides: python-tooz
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-pbr
|
|
%description -n python3-tooz
|
|
The Tooz project aims at centralizing the most common distributed primitives
|
|
like group membership protocol, lock service and leader election by providing
|
|
a coordination API helping developers to build distributed applications.
|
|
|
|
%package help
|
|
Summary: Development documents and examples for tooz
|
|
Provides: python3-tooz-doc
|
|
%description help
|
|
The Tooz project aims at centralizing the most common distributed primitives
|
|
like group membership protocol, lock service and leader election by providing
|
|
a coordination API helping developers to build distributed applications.
|
|
|
|
%prep
|
|
%autosetup -n tooz-2.8.0
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_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 python3-tooz -f filelist.lst
|
|
%dir %{python3_sitelib}/*
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Thu Jan 28 2021 zhangy <zhangy1317@foxmail.com>
|
|
- Add buildrequires
|
|
* Thu Dec 31 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
- Package Spec generated
|