Name: latencyflex-vulkan-layer Version: 0.0.git.79.bf20b917 Release: 1%{?dist} Summary: Vendor agnostic latency reduction middleware License: ASL 2.0 URL: https://github.com/KyleGospo/LatencyFleX BuildRequires: git BuildRequires: meson BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: vulkan-devel BuildRequires: vulkan-headers # Package and patch needed only on Fedora %if 0%{?fedora} BuildRequires: vulkan-validation-layers-devel Patch0: nesting.patch %endif %{?is_opensuse:BuildRequires: vulkan-validationlayers-devel} # Don't allow this package to be used along-side the development package. Conflicts: latencyflex-vulkan-layer-dev %description Vendor agnostic latency reduction middleware. An alternative to NVIDIA Reflex. # Disable debug packages %define debug_package %{nil} %prep git clone https://github.com/KyleGospo/LatencyFleX.git cd LatencyFleX git submodule update --init --recursive %if 0%{?fedora} <= 37 %patch0 %endif %build cd LatencyFleX/layer meson build -Dprefix=%{_prefix} ninja -C build %install mkdir -p %{buildroot}%{_datadir}/licenses/%{name} cp LatencyFleX/LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE mkdir -p %{buildroot}%{_docdir}/%{name} cp LatencyFleX/README.md %{buildroot}%{_docdir}/%{name}/README.md cd LatencyFleX/layer DESTDIR=%{buildroot} meson install -C build --skip-subprojects %files %license LICENSE %doc README.md %{_libdir}/liblatencyflex_layer.so %{_datadir}/vulkan/implicit_layer.d/latencyflex.json # Finally, changes from the latest release of your application are generated from # your project's Git history. It will be empty until you make first annotated Git tag. %changelog