File gpu-screen-recorder.spec of Package gpu-screen-recorder
#
# spec file for package gpu-screen-recorder
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without check
Name: gpu-screen-recorder
Version: @SERVICE@
Release: 0
Summary: A shadowplay-like screen recorder for Linux
License: GPL-3.0-only
Group: Productivity/Multimedia/Other
URL: https://git.dec05eba.com/gpu-screen-recorder
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavfilter)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libcap)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libspa-0.2)
BuildRequires: pkgconfig(libswresample)
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(libva-drm)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-scanner)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrandr)
%description
This is a screen recorder that has minimal impact on system performance by
recording your monitor using the GPU only, similar to ShadowPlay on
windows. This is the fastest screen recording tool for Linux.
This screen recorder can be used for recording your desktop offline, for
live streaming and for nvidia ShadowPlay-like instant replay, where only
the last few minutes are saved.
This software can also take screenshots.
%package devel
Summary: Development files %{name}
Group: Development/Languages/C and C++
BuildArch: noarch
%description devel
This subpackage contains header files for developing plugins %{name}.
%prep
%autosetup
%build
%meson -Dcapabilities=false
%meson_build
%install
%meson_install
%if 0%{?suse_version} < 1600
rm -fv %{buildroot}%{_prefix}/lib/modprobe.d/gsr-nvidia.conf
%endif
%if %{with check}
%check
%meson_test
%endif
%files
%doc README.md
%{_bindir}/%{name}
%{_bindir}/gsr-kms-server
%{_mandir}/man?/%{name}.?%{?ext_man}
%{_mandir}/man?/gsr-kms-server.?%{?ext_man}
%{_userunitdir}/%{name}.service
%if 0%{?suse_version} >= 1600
%{_modprobedir}/gsr-nvidia.conf
%endif
%license LICENSE
%files devel
%dir %{_includedir}/gsr
%{_includedir}/gsr/plugin.h
%changelog