# prevent library files from being installed %global cargo_install_lib 0 Name: wl-screenrec Version: 0.2.0 Release: %autorelease Summary: High performance screen/audio recorder for wlroots # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # ISC # MIT # MIT OR Apache-2.0 # Unlicense OR MIT # WTFPL License: Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND ISC AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) and WTFPL SourceLicense: Apache-2.0 URL: https://github.com/russelltg/wl-screenrec Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: clang-devel BuildRequires: pkgconfig(libavdevice) BuildRequires: pkgconfig(libavfilter) BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(libdrm) BuildRequires: vulkan-loader %global _description %{expand: High performance screen/audio recorder for wlroots.} %description %{_description} %prep %autosetup -p1 cargo vendor %cargo_prep -v vendor %build export CARGO_NET_OFFLINE=false %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install export CARGO_NET_OFFLINE=false %cargo_install %files %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/wl-screenrec %changelog %autochangelog