## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global libliftoff_minver 0.4.1 %global reshade_commit 4245743a8c41abbe3dc73980c1810fe449359bf1 %global reshade_shortcommit %(c=%{reshade_commit}; echo ${c:0:7}) Name: gamescope Version: 3.14.0 Release: %autorelease Summary: Micro-compositor for video games on Wayland License: BSD URL: https://github.com/Plagman/gamescope Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz # Create stb.pc to satisfy dependency('stb') Source1: stb.pc Source2: https://github.com/Joshua-Ashton/reshade/archive/%{reshade_commit}/reshade-%{reshade_shortcommit}.tar.gz Patch01: 0001-cstdint.patch BuildRequires: meson >= 0.54.0 BuildRequires: ninja-build BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: glm-devel BuildRequires: google-benchmark-devel BuildRequires: libXmu-devel BuildRequires: libXcursor-devel BuildRequires: pkgconfig(libdisplay-info) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xdamage) BuildRequires: pkgconfig(xcomposite) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xfixes) BuildRequires: pkgconfig(xxf86vm) BuildRequires: pkgconfig(xtst) BuildRequires: pkgconfig(xres) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(vulkan) BuildRequires: pkgconfig(wayland-scanner) BuildRequires: pkgconfig(wayland-server) BuildRequires: pkgconfig(wayland-protocols) >= 1.17 BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(libpipewire-0.3) BuildRequires: pkgconfig(libavif) BuildRequires: (pkgconfig(wlroots) >= 0.17.0 with pkgconfig(wlroots) < 0.18) BuildRequires: (pkgconfig(libliftoff) >= 0.4.1 with pkgconfig(libliftoff) < 0.5) BuildRequires: pkgconfig(libcap) BuildRequires: pkgconfig(hwdata) BuildRequires: spirv-headers-devel # Enforce the the minimum EVR to contain fixes for all of: # CVE-2021-28021 CVE-2021-42715 CVE-2021-42716 CVE-2022-28041 CVE-2023-43898 # CVE-2023-45661 CVE-2023-45662 CVE-2023-45663 CVE-2023-45664 CVE-2023-45666 # CVE-2023-45667 BuildRequires: stb_image-devel >= 2.28^20231011gitbeebb24-12 # Header-only library: -static is for tracking per guidelines BuildRequires: stb_image-static BuildRequires: stb_image_resize-devel BuildRequires: stb_image_resize-static BuildRequires: stb_image_write-devel BuildRequires: stb_image_write-static BuildRequires: vkroots-devel BuildRequires: /usr/bin/glslangValidator # libliftoff hasn't bumped soname, but API/ABI has changed for 0.2.0 release Requires: libliftoff%{?_isa} >= %{libliftoff_minver} Requires: xorg-x11-server-Xwayland Recommends: mesa-dri-drivers Recommends: mesa-vulkan-drivers %description %{name} is the micro-compositor optimized for running video games on Wayland. %prep %autosetup -p1 -a2 -N # Install stub pkgconfig file mkdir -p pkgconfig cp %{SOURCE1} pkgconfig/stb.pc # Replace spirv-headers include with the system directory sed -i 's^../thirdparty/SPIRV-Headers/include/spirv/^/usr/include/spirv/^' src/meson.build # Push in reshade from sources instead of submodule rm -rf src/reshade && mv reshade-%{reshade_commit} src/reshade %autopatch -p1 %build export PKG_CONFIG_PATH=pkgconfig %meson -Dpipewire=enabled -Denable_openvr_support=false -Dforce_fallback_for=[] %meson_build %install %meson_install %files %license LICENSE %doc README.md %{_bindir}/gamescope %{_libdir}/libVkLayer_FROG_gamescope_wsi_*.so %{_datadir}/vulkan/implicit_layer.d/VkLayer_FROG_gamescope_wsi.*.json %changelog * Thu Feb 01 2024 František Zatloukal - 3.14.0-1 - Rebase to 3.14.0 (Fixes RHBZ#2259316) * Wed Jan 24 2024 Fedora Release Engineering - 3.13.19-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 3.13.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Dec 13 2023 František Zatloukal - 3.13.19-1 - Rebase to 3.13.19 * Tue Dec 12 2023 František Zatloukal - 3.13.18-1 - Rebase to 3.13.18 (Fixes RHBZ#2249222) * Fri Oct 27 2023 Benjamin A. Beasley - 3.12.7-3 - Add -static BR’s for header-only stb libraries per guidelines * Fri Oct 27 2023 Benjamin A. Beasley - 3.12.7-2 - Ensure stb_image contains the latest CVE patches * Tue Oct 10 2023 František Zatloukal - 3.12.7-1 - Rebase to 3.12.7 (Fixes RHBZ#2242995) * Sun Oct 08 2023 František Zatloukal - 3.12.6-1 - Rebase to 3.12.6 (Fixes RHBZ#2242699) * Mon Sep 04 2023 František Zatloukal - 3.12.5-1 - Rebase to 3.12.5 (Fixes RHBZ#2236963) * Sun Aug 20 2023 František Zatloukal - 3.12.3-1 - Rebase to 3.12.3 (Fixes RHBZ#2232483) * Wed Jul 26 2023 Frantisek Zatloukal - 3.12.0-2 - Bacport i686 build fix * Wed Jul 26 2023 Frantisek Zatloukal - 3.12.0-1 - Rebase to 3.12.0 (fixes RHBZ#2152065,RHBZ#2225815) * Wed Jul 19 2023 Fedora Release Engineering - 3.11.49-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 3.11.49-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Dec 07 2022 Frantisek Zatloukal - 3.11.51-1 - Rebase to 3.11.51 * Fri Nov 18 2022 Onuralp SEZER - 3.11.49-1 - Rebase to 3.11.49 (fixes RHBZ#2143471 ) * Sat Nov 12 2022 Onuralp SEZER - 3.11.48-1 - Rebase to 3.11.48 (fixes RHBZ#2138408 ) * Mon Oct 03 2022 Frantisek Zatloukal - 3.11.47-1 - Rebase to 3.11.47 (fixes RHBZ#2053802 ) * Mon Sep 05 2022 Frantisek Zatloukal - 3.11.43-1 - Rebase to 3.11.43 * Fri Aug 19 2022 Frantisek Zatloukal - 3.11.36-1 - Rebase to 3.11.36 * Thu Jul 21 2022 Fedora Release Engineering - 3.11.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Feb 10 2022 Neal Gompa - 3.11.9-1 - Rebase to 3.11.9 * Thu Jan 20 2022 Fedora Release Engineering - 3.8.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 3.8.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 07 2021 Aleksei Bavshin - 3.8.4-2 - Pin wlroots dependency to 0.13 * Sun Jul 04 2021 Neal Gompa - 3.8.4-1 - Rebase to version 3.8.4 - Drop merged wlroots patch - Backport patch for libliftoff 0.1.0 support - Add explicit dependency on libliftoff >= 0.1.0 * Wed Apr 07 2021 Aleksei Bavshin - 3.7.1-1 - Update to 3.7.1 - Add patch for wlroots 0.13.0 API changes * Tue Jan 26 2021 Fedora Release Engineering - 3.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Nov 18 2020 Aleksei Bavshin - 3.7-2 - Rebuild for wlroots 0.12 * Sun Oct 4 15:56:25 EDT 2020 Neal Gompa - 3.7-1 - Initial packaging