diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:45:27 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:45:27 +0000 |
commit | bca0a1fbc902f1618772c7c8d564a9ca9aa9dc1e (patch) | |
tree | 5e33ef7286e53abc1e4a8adc44379a1a42cfb23f | |
parent | 9b5f18b08ba10702694530a7334a43c8b1341815 (diff) |
automatic import of python-watcher-dashboardopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-watcher-dashboard.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/watcher-dashboard-9.0.0.tar.gz diff --git a/python-watcher-dashboard.spec b/python-watcher-dashboard.spec new file mode 100644 index 0000000..fda74bf --- /dev/null +++ b/python-watcher-dashboard.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-watcher-dashboard +Version: 9.0.0 +Release: 1 +Summary: Watcher Management Dashboard +License: Apache Software License +URL: https://docs.openstack.org/watcher-dashboard/latest +Source0: https://mirrors.aliyun.com/pypi/web/packages/6e/1d/57524da470ea1cddf607ea3862f7cad357664316de17e59cc97b677fa743/watcher-dashboard-9.0.0.tar.gz +BuildArch: noarch + +Requires: python3-PyYAML +Requires: python3-horizon +Requires: python3-pbr +Requires: python3-watcherclient + +%description + + +%package -n python3-watcher-dashboard +Summary: Watcher Management Dashboard +Provides: python-watcher-dashboard +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-watcher-dashboard + + +%package help +Summary: Development documents and examples for watcher-dashboard +Provides: python3-watcher-dashboard-doc +%description help + + +%prep +%autosetup -n watcher-dashboard-9.0.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-watcher-dashboard -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 9.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +32e20411ed162a39e58ab12bd03f0a07 watcher-dashboard-9.0.0.tar.gz |