%global buildforkernels akmod %global debug_package %{nil} %global commit 2c9b67072b15d903fecde67c7f269abeafee4c25 %global commitdate 20230503 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: v4l2loopback Summary: Utils for V4L2 loopback devices Version: 0.14.0 Release: 2%?dist License: GPLv2+ URL: https://github.com/umlaeute/v4l2loopback Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Packager: Cappy Ishihara BuildRequires: gcc BuildRequires: make BuildRequires: help2man BuildRequires: systemd-rpm-macros BuildRequires: kmodtool BuildRequires: systemd-rpm-macros Requires: %{name}-kmod Provides: %{name}-kmod-common = %{version}-%{release} ### For compatibility with older names Provides: %{name}-utils = %{version}-%{release} Obsoletes: %{name}-utils < 0.12.5-2 %description Allows you to create "virtual video devices". Normal (v4l2) applications will read these devices as if they were ordinary video devices, but the video will not be read from e.g. a capture card but instead it is generated by another application. %prep %autosetup -p1 -n %{name}-%{version} %build %{set_build_flags} %make_build utils %install %{set_build_flags} %make_build utils make V=1 %{?_smp_mflags} install-utils DESTDIR=%{buildroot} PREFIX=%{_prefix} make V=1 %{?_smp_mflags} install-man DESTDIR=%{buildroot} PREFIX=%{_prefix} %files %doc README.md AUTHORS NEWS %license COPYING %attr(0755,root,root) %{_bindir}/v4l2loopback-ctl %attr(0644,root,root) %{_mandir}/man1/v4l2loopback-ctl.1* %changelog %autochangelog