summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-11-26 04:00:34 +0000
committerCoprDistGit <infra@openeuler.org>2026-11-26 04:00:34 +0000
commitf2e5029cdcb70779b70aba4ee6c37212a8320ac3 (patch)
tree91780605d9687432bf67282040bbb85ed68ef9ce
parent694a5c490c315b5e25f3c65f9545b95b345f3c0c (diff)
automatic import of waasopeneuler24.03_LTS_SP3
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--waas.spec59
3 files changed, 61 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9bf49e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/waas-25.3.T7.B083.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..c7c39e4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f0db16f21355ebda7bc67cb02e4b2dc0 waas-25.3.T7.B083.tar.gz
diff --git a/waas.spec b/waas.spec
new file mode 100644
index 0000000..adce2a2
--- /dev/null
+++ b/waas.spec
@@ -0,0 +1,59 @@
+# WAAS (Workload-Aware Application Scheduling) codeploy service.
+#
+# Upstream ships a flat Python application (src/*.py) with no setup.py or
+# pyproject.toml, therefore it is packaged as an application rather than an
+# importable library. The scripts import each other by bare module name, so
+# they are installed together under /usr/libexec/waas and exposed through a
+# small launcher in /usr/bin.
+#
+# Runtime note: src/metric_monitor.py imports the BoostKit "kperf" module,
+# which is not shipped in the openEuler repositories; it is expected to be
+# provided by the WAAS deployment environment.
+
+Name: waas
+Version: 25.3.T7.B083
+Release: 1%{?dist}
+Summary: WAAS codeploy service for workload-aware resource scheduling
+
+License: Apache-2.0
+URL: https://gitcode.com/boostkit/waas
+Source0: https://gitcode.com/boostkit/waas/archive/%{version}/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+
+Requires: python3
+Requires: python3-psutil
+
+%description
+WAAS (Workload-Aware Application Scheduling) codeploy is a DaemonSet-style
+service that binds target processes to CPU cores, performs NUMA-aware
+migration and enforces cgroup / resctrl resource restrictions on nodes.
+This package provides the waas_codeploy Python service and its helper
+modules.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+# Pure Python application: nothing to compile.
+
+%install
+install -d %{buildroot}%{_libexecdir}/%{name}
+install -m 0644 src/*.py %{buildroot}%{_libexecdir}/%{name}/
+
+install -d %{buildroot}%{_bindir}
+cat > %{buildroot}%{_bindir}/waas_codeploy << 'EOF'
+#!/bin/sh
+exec python3 %{_libexecdir}/waas/waas_codeploy.py "$@"
+EOF
+chmod 0755 %{buildroot}%{_bindir}/waas_codeploy
+
+%files
+%license LICENSE
+%doc README.md README.en.md
+%{_libexecdir}/%{name}/
+%{_bindir}/waas_codeploy
+
+%changelog
+* Thu Nov 26 2026 Python_Bot <Python_Bot@openeuler.org> - 25.3.T7.B083-1
+- Initial package