summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-10-25 03:42:07 +0000
committerCoprDistGit <infra@openeuler.org>2024-10-25 03:42:07 +0000
commit6e01677278c97445be092b03818a03eb5a247245 (patch)
treed938738a3963115eeeeda3621026bbda6778de78
parentf66cf04255cba14abf611c77f6053d8721f3d80f (diff)
automatic import of openstack-sig-tool
-rw-r--r--.gitignore1
-rw-r--r--openstack-sig-tool.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d9f3f0a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/openstack-sig-tool-1.0.1.tar.gz
diff --git a/openstack-sig-tool.spec b/openstack-sig-tool.spec
new file mode 100644
index 0000000..d306a23
--- /dev/null
+++ b/openstack-sig-tool.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+
+Name: openstack-sig-tool
+Version: 1.0.1
+Release: 1
+Summary: The command line tool for openEuler OpenStack SIG
+License: Apache-2.0
+URL: https://gitee.com/openeuler/openstack-sig-tool
+Source0: openstack-sig-tool-1.0.1.tar.gz
+BuildArch: noarch
+
+Provides: openstack-sig-tool = %{version}
+
+# Base build requires
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pbr
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+# General build requires
+BuildRequires: ansible
+BuildRequires: python3-beautifulsoup4
+BuildRequires: python3-simplejson
+BuildRequires: python3-click
+
+BuildRequires: python3-jinja2
+BuildRequires: python3-lxml
+BuildRequires: python3-markdown
+BuildRequires: python3-packaging
+BuildRequires: python3-pandas
+BuildRequires: python3-prettytable
+BuildRequires: python3-pymdown-extensions
+BuildRequires: python3-pyyaml
+BuildRequires: python3-requests
+BuildRequires: python3-xmltodict
+
+# General requires
+Requires: ansible
+Requires: python3-beautifulsoup4
+Requires: python3-simplejson
+Requires: python3-click
+
+Requires: python3-jinja2
+Requires: python3-lxml
+Requires: python3-markdown
+Requires: python3-packaging
+Requires: python3-pandas
+Requires: python3-prettytable
+Requires: python3-pymdown-extensions
+Requires: python3-pyyaml
+Requires: python3-requests
+Requires: python3-xmltodict
+
+
+%description
+The command line tool for openEuler OpenStack SIG
+
+
+%prep
+%autosetup -n openstack-sig-tool-%{version}
+
+# the default deployment tools dont need that
+sed -i '/^huaweicloudsdkecs/d' requirements.txt
+sed -i '/^huaweicloudsdkims/d' requirements.txt
+sed -i '/^huaweicloudsdkvpc/d' requirements.txt
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m 755 %{buildroot}/usr/etc/oos
+
+# copy etc files to target directory
+cp -ar etc/* %{buildroot}/usr/etc/oos
+
+%check
+%{__python3} setup.py test
+
+%files
+%{_bindir}/oos
+%dir %{python3_sitelib}/oos
+%{python3_sitelib}/oos/*
+%{python3_sitelib}/openstack_sig_tool-%{version}-py3.*.egg-info/*
+
+%config(noreplace) %attr(0644, root, root) /usr/etc/oos/*
+
+%changelog
+* Thu Oct 24 2024 OpenStack_SIG <openstack@openeuler.org> - 1.0.1-1
+- Init package openstack-sig-tool of version 1.0.1
diff --git a/sources b/sources
new file mode 100644
index 0000000..967f832
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fe742f88e23c83dd533e2f5492ed956a openstack-sig-tool-1.0.1.tar.gz