From 027ec61be2ba2dc9490a1342e889b8f556225537 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 20 Sep 2025 11:08:39 -0700 Subject: [PATCH] add: ShivaVG (#6147) (#6437) * ShivaVG package * Auto update of ShivaVG - rhai script for auto-updating on every commit - .spec fix: LICENSE inclusion into the rpm package * ShivaVG Fixes * wip * fix * Rename update.rhai to update.rhai.bak * enable debug --------- (cherry picked from commit cd0da29528b132b4332ab703dcc86c5d305c6cc2) Signed-off-by: Ruka <10516443+ru-ka@users.noreply.github.com> Signed-off-by: madomado Co-authored-by: Ruka <10516443+ru-ka@users.noreply.github.com> Co-authored-by: Ruka Co-authored-by: madonuko Co-authored-by: Gilver --- anda/lib/ShivaVG/ShivaVG.spec | 59 ++++++++++++++++++++++++++++++++ anda/lib/ShivaVG/anda.hcl | 5 +++ anda/lib/ShivaVG/update.rhai.bak | 5 +++ 3 files changed, 69 insertions(+) create mode 100644 anda/lib/ShivaVG/ShivaVG.spec create mode 100644 anda/lib/ShivaVG/anda.hcl create mode 100644 anda/lib/ShivaVG/update.rhai.bak diff --git a/anda/lib/ShivaVG/ShivaVG.spec b/anda/lib/ShivaVG/ShivaVG.spec new file mode 100644 index 0000000000..569186b624 --- /dev/null +++ b/anda/lib/ShivaVG/ShivaVG.spec @@ -0,0 +1,59 @@ +%global commit 35e58010f3662b21b6632bbe55988dc18070534c +%global commit_date 20211031 +%global shortcommit %{sub %{commit} 1 7} + +Name: ShivaVG +Version: 0~%{commit_date}git.%shortcommit +Release: 1%{?dist} +Summary: An open-source LGPL ANSI C implementation of the Khronos Group OpenVG specification + +License: LGPL-2.1-or-later +URL: https://github.com/vpxyz/ShivaVG +Source0: %{url}/archive/%{commit}/ShivaVG-%{commit}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: glew-devel +BuildRequires: mesa-libGL-devel +BuildRequires: freeglut-devel +BuildRequires: libjpeg-turbo-devel +BuildRequires: pkgconfig + +%description +ShivaVG is an open-source LGPL ANSI C implementation of the Khronos Group OpenVG specification. +OpenVG is an royalty-free, cross-platform API that provides a low-level hardware acceleration +interface for vector graphics and imaging applications. + +%package devel +Requires: %{name} = %evr +Requires: glew-devel +Requires: mesa-libGL-devel +%pkg_devel_files +%_libdir/cmake/OpenVG/ + +%package static +Requires: %{name} = %evr +%pkg_static_files + +%prep +%autosetup -n ShivaVG-%{commit} +sed '/set(CMAKE_C_FLAGS/d' -i CMakeLists.txt + +%build +%cmake -DBUILD_EXAMPLES=OFF -DDEBUG=ON -DPROJECT_VERSION=%commit -DCMAKE_C_FLAGS='%build_cflags' +%cmake_build + +%install +%cmake_install + +%files +%license COPYING +%doc README.md + +%changelog +* Wed Aug 27 2025 Ruka - 20211031.35e5801-1 +- Set up auto-update mechanism using commit-based versioning +- Added license and documentation files + +* Mon Aug 25 2025 Ruka - 0.1.35e5801-1 +- Initial packaging for Terra PKG diff --git a/anda/lib/ShivaVG/anda.hcl b/anda/lib/ShivaVG/anda.hcl new file mode 100644 index 0000000000..e06d003706 --- /dev/null +++ b/anda/lib/ShivaVG/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "ShivaVG.spec" + } +} diff --git a/anda/lib/ShivaVG/update.rhai.bak b/anda/lib/ShivaVG/update.rhai.bak new file mode 100644 index 0000000000..2306208283 --- /dev/null +++ b/anda/lib/ShivaVG/update.rhai.bak @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("vpxyz/ShivaVG")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}