summaryrefslogtreecommitdiff
path: root/waas.spec
diff options
context:
space:
mode:
Diffstat (limited to 'waas.spec')
-rw-r--r--waas.spec59
1 files changed, 59 insertions, 0 deletions
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