$ git show --format=fuller --patch-with-stat --summary 254b7a2ec470de259be024495933115fbb1596c6
commit 254b7a2ec470de259be024495933115fbb1596c6
Author: Davide Beatrici <git@davidebeatrici.dev>
AuthorDate: Tue Dec 16 00:33:29 2025 +0100
Commit: Davide Beatrici <git@davidebeatrici.dev>
CommitDate: Tue Dec 16 00:33:29 2025 +0100
Initial commit
---
.abf.yml | 2 ++
.onedev-buildspec.yml | 4 ++++
oberon-governor.spec | 24 ++++++++++++++++++++++++
system-yaml-cpp.patch | 23 +++++++++++++++++++++++
4 files changed, 53 insertions(+)
create mode 100644 .abf.yml
create mode 100644 .onedev-buildspec.yml
create mode 100644 oberon-governor.spec
create mode 100644 system-yaml-cpp.patch
diff --git a/.abf.yml b/.abf.yml
new file mode 100644
index 0000000..b8a3c68
--- /dev/null
+++ b/.abf.yml
@@ -0,0 +1,2 @@
+sources:
+ oberon-governor-0.1.tar.gz: d9a5442139a0f95fb43d65c806678a45af448202
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
new file mode 100644
index 0000000..b95f83a
--- /dev/null
+++ b/.onedev-buildspec.yml
@@ -0,0 +1,4 @@
+version: 40
+imports:
+- projectPath: OpenMandriva/Packages
+ revision: mirroring
diff --git a/oberon-governor.spec b/oberon-governor.spec
new file mode 100644
index 0000000..edf3533
--- /dev/null
+++ b/oberon-governor.spec
@@ -0,0 +1,24 @@
+Name: oberon-governor
+Version: 0.1
+Release: 1
+Summary: GPU governor for the AMD BC-250
+URL: https://gitlab.com/mothenjoyer69/oberon-governor.git
+License: GPLv3
+
+BuildRequires: cmake
+BuildRequires: libdrm-devel
+BuildRequires: cmake(yaml-cpp)
+BuildSystem: cmake
+
+Source0: https://gitlab.com/mothenjoyer69/oberon-governor/-/archive/0.1/oberon-governor-0.1.tar.gz
+Patch0: system-yaml-cpp.patch
+
+%description
+A GPU governor that automatically manages
+memory and core clocks on the AMD BC-250
+
+%files
+%license LICENSE
+%{_bindir}/%{name}
+%{_sysconfdir}/oberon-config.yaml
+%{_unitdir}/%{name}.service
diff --git a/system-yaml-cpp.patch b/system-yaml-cpp.patch
new file mode 100644
index 0000000..05fe6c2
--- /dev/null
+++ b/system-yaml-cpp.patch
@@ -0,0 +1,23 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,6 +4,7 @@
+ set(CMAKE_CXX_STANDARD_REQUIRED)
+
+ find_package(PkgConfig REQUIRED)
++find_package(yaml-cpp REQUIRED)
+ pkg_check_modules(LIBDRM REQUIRED libdrm)
+ pkg_check_modules(LIBDRM_AMDGPU REQUIRED libdrm_amdgpu)
+
+@@ -38,12 +39,3 @@
+ DESTINATION "/etc/"
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+ )
+-
+-include(FetchContent)
+-
+-FetchContent_Declare(
+- yaml-cpp
+- GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
+- GIT_TAG master
+-)
+-FetchContent_MakeAvailable(yaml-cpp)