diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 21:36:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 21:36:39 +0000 |
commit | 6b3575284a49937af16db00e9e07a8044d519ec0 (patch) | |
tree | 4e06680c478fe46462f7ffcd00fddb633be3362d | |
parent | de4a061d4999f26b2f3757ef9130b7c5e8627016 (diff) |
automatic import of python-distconfig
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-distconfig.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/distconfig-0.1.0.tar.gz diff --git a/python-distconfig.spec b/python-distconfig.spec new file mode 100644 index 0000000..bd5c1e9 --- /dev/null +++ b/python-distconfig.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-distconfig +Version: 0.1.0 +Release: 1 +Summary: Library to manage configuration using Zookeeper, Etcd, Consul +License: Apache License, Version 2.0 +URL: http://github.com/deliveryhero/distconfig/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/79/c9/0382bb4247429e9bc1952318be4ab8a293328b830bc0fc64a2e83380d46a/distconfig-0.1.0.tar.gz +BuildArch: noarch + + +%description +Library to manage distributed configuration using either `ZooKeeper <https://zookeeper.apache.org/>`_ or +`Etcd <https://github.com/coreos/etcd>`_ or `Consul <http://www.consul.io/>`_. + +%package -n python3-distconfig +Summary: Library to manage configuration using Zookeeper, Etcd, Consul +Provides: python-distconfig +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-distconfig +Library to manage distributed configuration using either `ZooKeeper <https://zookeeper.apache.org/>`_ or +`Etcd <https://github.com/coreos/etcd>`_ or `Consul <http://www.consul.io/>`_. + +%package help +Summary: Development documents and examples for distconfig +Provides: python3-distconfig-doc +%description help +Library to manage distributed configuration using either `ZooKeeper <https://zookeeper.apache.org/>`_ or +`Etcd <https://github.com/coreos/etcd>`_ or `Consul <http://www.consul.io/>`_. + +%prep +%autosetup -n distconfig-0.1.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-distconfig -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +f9a92c91cb21faa256af8de65e2db1d6 distconfig-0.1.0.tar.gz |