summaryrefslogtreecommitdiff
path: root/python-cobald.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 06:00:14 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 06:00:14 +0000
commite6ffd6163b5618a38fbdfb039a083464a09f5417 (patch)
treeb67921d2846778f6c7ed264ac8319e2f87ac9fc6 /python-cobald.spec
parentc1aadf3fee32a9dab641cd73499c76df1d4db98a (diff)
automatic import of python-cobald
Diffstat (limited to 'python-cobald.spec')
-rw-r--r--python-cobald.spec87
1 files changed, 87 insertions, 0 deletions
diff --git a/python-cobald.spec b/python-cobald.spec
new file mode 100644
index 0000000..8e84429
--- /dev/null
+++ b/python-cobald.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cobald
+Version: 0.13.0
+Release: 1
+Summary: COBalD - the Opportunistic Balancing Daemon
+License: MIT
+URL: https://github.com/MatterMiners/cobald
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f0/23/11f0f5ce9da6bbcf7c041a581d9513cb6443f28d24409b47f31a44230c30/cobald-0.13.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-pyyaml
+Requires: python3-trio
+Requires: python3-entrypoints
+Requires: python3-toposort
+Requires: python3-typing-extensions
+Requires: python3-flake8
+Requires: python3-flake8-bugbear
+Requires: python3-pytest-cov
+Requires: python3-pytest
+Requires: python3-pytest-timeout
+Requires: python3-black
+Requires: python3-sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-pytest
+Requires: python3-pytest-timeout
+
+%description
+
+
+%package -n python3-cobald
+Summary: COBalD - the Opportunistic Balancing Daemon
+Provides: python-cobald
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cobald
+
+
+%package help
+Summary: Development documents and examples for cobald
+Provides: python3-cobald-doc
+%description help
+
+
+%prep
+%autosetup -n cobald-0.13.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-cobald -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.0-1
+- Package Spec generated