#global debug_package #{nil} # Impossible to install without this workaround #define __find_requires #{SOURCE1} #define _use_internal_dependency_generator 0 Name: libstrangle Version: 0.1.1 Release: 1%{?dist} Summary: Frame rate limiter for Linux License: GPLv3+ URL: https://gitlab.com/torkel104/%{name} Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2 # link against libc Patch0: https://gitlab.com/torkel104/libstrangle/-/commit/27c29e381a7046970c8a8b5bd5cff6a98c4d7d63.patch # Patch1: https://gitlab.com/torkel104/libstrangle/-/commit/f6b650a37f9da4f7fd0cf6819216db256e840e07.patch ExclusiveArch: x86_64 BuildRequires: gcc gcc-c++ BuildRequires: glibc BuildRequires: libstdc++(x86-32) BuildRequires: glibc-devel(x86-32) BuildRequires: mesa-libGL-devel #BuildRequires: libglvnd-devel Requires: glibc %description Frame rate limiter for Linux/OpenGL/Vulkan. %prep %autosetup sed -i -e '/ldconfig/d' makefile sed -i -e 's/prefix=\/usr\/local/prefix=\/usr/' makefile sed -i -e 's/^CFLAGS/#CFLAGS/' makefile sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' makefile #cp COPYING LICENSE %build %make_build %install %make_install %ldconfig_scriptlets %files %doc README.md %license COPYING %{_bindir}/strangle %{_bindir}/stranglevk %{_prefix}/lib/%{name} %{_sysconfdir}/ld.so.conf.d/%{name}.conf /usr/share/vulkan/implicit_layer.d/libstrangle_vk.json #exclude #{_datadir}/doc/#{name}/LICENSE %changelog * Thu Jul 28 2022 Christian Birk - 0.1.1-1 - Changes for fedora and a out of tree build * Wed Jan 30 2019 Artem Polishchuk - 0.0.4-9 - Initial package