diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-11-26 04:00:34 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-11-26 04:00:34 +0000 |
| commit | f2e5029cdcb70779b70aba4ee6c37212a8320ac3 (patch) | |
| tree | 91780605d9687432bf67282040bbb85ed68ef9ce /waas.spec | |
| parent | 694a5c490c315b5e25f3c65f9545b95b345f3c0c (diff) | |
automatic import of waasopeneuler24.03_LTS_SP3
Diffstat (limited to 'waas.spec')
| -rw-r--r-- | waas.spec | 59 |
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 |
