add: ShivaVG (#6147)

* ShivaVG package

Signed-off-by: Ruka <10516443+ru-ka@users.noreply.github.com>

* Auto update of ShivaVG

- rhai script for auto-updating on every commit
- .spec fix: LICENSE inclusion into the rpm package

Signed-off-by: Ruka <10516443+ru-ka@users.noreply.github.com>

* ShivaVG Fixes

* wip

* fix

* Rename update.rhai to update.rhai.bak

Signed-off-by: madomado <madonuko@outlook.com>

* enable debug

---------

Signed-off-by: Ruka <10516443+ru-ka@users.noreply.github.com>
Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: Ruka <ru-ka@users.noreply.github.com>
Co-authored-by: madonuko <madonuko@outlook.com>
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Ruka
2025-09-20 20:08:01 +02:00
committed by GitHub
parent 806b7badee
commit cd0da29528
3 changed files with 69 additions and 0 deletions
+59
View File
@@ -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 <pkgs@ruka.red> - 20211031.35e5801-1
- Set up auto-update mechanism using commit-based versioning
- Added license and documentation files
* Mon Aug 25 2025 Ruka <pkgs@ruka.red> - 0.1.35e5801-1
- Initial packaging for Terra PKG
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "ShivaVG.spec"
}
}
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("vpxyz/ShivaVG"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}