diff --git a/wayback/wayback.spec b/wayback/wayback.spec new file mode 100644 index 0000000..f06d5f6 --- /dev/null +++ b/wayback/wayback.spec @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors +# SPDX-FileContributor: jingyupu +# +# SPDX-License-Identifier: MulanPSL-2.0 + +Name: wayback +Version: 0.1 +Release: %autorelease +Summary: Experimental X11 compatibility layer for Wayland +License: MIT +Group: Development/Libraries/C and C++ +URL: https://gitlab.freedesktop.org/wayback/wayback +Source: https://gitlab.freedesktop.org/wayback/wayback/-/archive/%version/wayback-%version.tar.gz +BuildRequires: c++_compiler +BuildRequires: meson +BuildRequires: pkg-config +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-server) +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(wayland-cursor) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(xwayland) +BuildRequires: pkgconfig(wayland-protocols) >= 1.14 +BuildRequires: wlroots-devel >= 0.19 +Requires: xwayland + +%description +Wayback is an experimental X compatibility layer which allows for +running full X desktop environments using Wayland components. It is +essentially a stub compositor which provides just enough Wayland +capabilities to host a rootful Xwayland server. + +%prep +%autosetup -p1 + +%build +# includedir intentional, cf. bugzilla.opensuse.org/795968 +%meson \ + --includedir="%_includedir/%name" -Dgenerate_manpages=disabled +%meson_build + +%install +%meson_install + +%files +%_bindir/Xwayback +%_bindir/wayback-session +%_libexecdir/wayback* +%license LICENSE + +%changelog +%{?autochangelog} \ No newline at end of file