Skip to content

Commit

Permalink
Add scenefx package (#2204)
Browse files Browse the repository at this point in the history
* Add scenefx package

* Update anda/lib/scenefx/scenefx.spec

Co-authored-by: madomado <[email protected]>
Signed-off-by: Atmois <[email protected]>

* Update anda/lib/scenefx/scenefx.spec

Co-authored-by: madomado <[email protected]>
Signed-off-by: Atmois <[email protected]>

* Update scenefx.spec

Signed-off-by: Atmois <[email protected]>

* Refactor version

* Add rhai file

* Add quote marker

---------

Signed-off-by: Atmois <[email protected]>
Co-authored-by: madomado <[email protected]>
(cherry picked from commit 14681c2)
  • Loading branch information
Atmois authored and raboneko committed Oct 9, 2024
1 parent bd43f3a commit 9e33d6b
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/lib/scenefx/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "scenefx.spec"
}
}
76 changes: 76 additions & 0 deletions anda/lib/scenefx/scenefx.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>

%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
1 change: 1 addition & 0 deletions anda/lib/scenefx/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("wlrfx/scenefx"));

0 comments on commit 9e33d6b

Please sign in to comment.