From 069c49b3ceba853c3c97a902d8bbd8a353e4f3b4 Mon Sep 17 00:00:00 2001 From: Atmois <130537361+Atmois@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:38:36 +0100 Subject: [PATCH] Add scenefx package (#2204) * Add scenefx package * Update anda/lib/scenefx/scenefx.spec Co-authored-by: madomado Signed-off-by: Atmois <130537361+Atmois@users.noreply.github.com> * Update anda/lib/scenefx/scenefx.spec Co-authored-by: madomado Signed-off-by: Atmois <130537361+Atmois@users.noreply.github.com> * Update scenefx.spec Signed-off-by: Atmois <130537361+Atmois@users.noreply.github.com> * Refactor version * Add rhai file * Add quote marker --------- Signed-off-by: Atmois <130537361+Atmois@users.noreply.github.com> Co-authored-by: madomado (cherry picked from commit 14681c240d79b6376c509ff7097be4a9a2116e50) --- anda/lib/scenefx/anda.hcl | 5 +++ anda/lib/scenefx/scenefx.spec | 76 +++++++++++++++++++++++++++++++++++ anda/lib/scenefx/update.rhai | 1 + 3 files changed, 82 insertions(+) create mode 100644 anda/lib/scenefx/anda.hcl create mode 100644 anda/lib/scenefx/scenefx.spec create mode 100644 anda/lib/scenefx/update.rhai diff --git a/anda/lib/scenefx/anda.hcl b/anda/lib/scenefx/anda.hcl new file mode 100644 index 0000000000..95967590f3 --- /dev/null +++ b/anda/lib/scenefx/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "scenefx.spec" + } +} diff --git a/anda/lib/scenefx/scenefx.spec b/anda/lib/scenefx/scenefx.spec new file mode 100644 index 0000000000..d2ccbc75d8 --- /dev/null +++ b/anda/lib/scenefx/scenefx.spec @@ -0,0 +1,76 @@ +Name: scenefx +Version: 0.1 +Release: 1%{?dist} + +Summary: A drop-in replacement for the wlroots scene API that allows wayland compositors to render surfaces with eye-candy effects +URL: https://github.com/wlrfx/scenefx +License: MIT + +Source0: %{url}/archive/refs/tags/%version.tar.gz + + +BuildRequires: gcc +BuildRequires: glslang +BuildRequires: gnupg2 +BuildRequires: meson >= 0.59.0 + +BuildRequires: (pkgconfig(wlroots) >= 0.17.0 with pkgconfig(wlroots) < 0.18) +BuildRequires: pkgconfig(egl) +BuildRequires: pkgconfig(gbm) >= 17.1.0 +BuildRequires: pkgconfig(glesv2) +BuildRequires: pkgconfig(hwdata) +BuildRequires: pkgconfig(libdrm) >= 2.4.114 +BuildRequires: pkgconfig(pixman-1) >= 0.42.0 +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-protocols) >= 1.32 +BuildRequires: pkgconfig(wayland-scanner) +BuildRequires: pkgconfig(wayland-server) >= 1.22 + + +Packager: Atmois + +%description +%{summary} + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} == %{version}-%{release} +# for examples +Suggests: gcc +Suggests: meson >= 0.58.0 +Suggests: pkgconfig(wayland-egl) + +%description devel +Development files for %{name}. + + +%prep +%autosetup -N + +%build +MESON_OPTIONS=( + # Disable options requiring extra/unpackaged dependencies + -Dexamples=false + -Dwerror=false +) +%{meson} "${MESON_OPTIONS[@]}" +%{meson_build} + +%install +%{meson_install} + +%check +%{meson_test} + + +%files +%license LICENSE +%doc README.md +%{_libdir}/lib%{name}.so.* + + +%files devel +%{_includedir}/scenefx +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc diff --git a/anda/lib/scenefx/update.rhai b/anda/lib/scenefx/update.rhai new file mode 100644 index 0000000000..ddbe2c1e1b --- /dev/null +++ b/anda/lib/scenefx/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("wlrfx/scenefx")); \ No newline at end of file