summaryrefslogtreecommitdiff
path: root/python-etos-lib.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:41:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:41:05 +0000
commite81ac965b3022e1dead3cdd76600535e6d836c09 (patch)
tree5459935555839d9b1ebab53a10363e199aef7a81 /python-etos-lib.spec
parent119439ce809bab9928220e88a76a6cdb1ddba6e3 (diff)
automatic import of python-etos-lib
Diffstat (limited to 'python-etos-lib.spec')
-rw-r--r--python-etos-lib.spec83
1 files changed, 83 insertions, 0 deletions
diff --git a/python-etos-lib.spec b/python-etos-lib.spec
new file mode 100644
index 0000000..4295b6e
--- /dev/null
+++ b/python-etos-lib.spec
@@ -0,0 +1,83 @@
+%global _empty_manifest_terminate_build 0
+Name: python-etos-lib
+Version: 2.1.0
+Release: 1
+Summary: ETOS Library
+License: Apache License, Version 2.0
+URL: https://github.com/eiffel-community/etos-library
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e6/2f/2291f0c299b4b7dfff02e56936fab71add183e601dbfbd2c64bdc2b0452f/etos_lib-2.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-graphql-core
+Requires: python3-gql
+Requires: python3-cryptography
+Requires: python3-redis
+Requires: python3-eiffellib[rabbitmq]
+Requires: python3-pydantic
+Requires: python3-requests
+Requires: python3-kubernetes
+Requires: python3-box
+Requires: python3-pytest
+Requires: python3-pytest-cov
+
+%description
+
+
+%package -n python3-etos-lib
+Summary: ETOS Library
+Provides: python-etos-lib
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-etos-lib
+
+
+%package help
+Summary: Development documents and examples for etos-lib
+Provides: python3-etos-lib-doc
+%description help
+
+
+%prep
+%autosetup -n etos-lib-2.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-etos-lib -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.0-1
+- Package Spec generated