Files
packages/anda/system/v4l2loopback/v4l2loopback.spec
T
Raboneko 8bf9852471 Separate v4l2loopback kmod from userspace tools (#3766) (#3784)
* Separate v4l2loopback kmod from userspace tools

This fixes an issue where akmods rebuilds and reinstalls the entire userspace tools when updated, causing updates to be broken on non-Fedora systems (i.e Ultramarine)

* move modprobe config

* oops

* ok i am fucking high

(cherry picked from commit a9e351e337)

Co-authored-by: Pornpipat Popum <cappy@cappuchino.xyz>
2025-03-07 22:23:25 -06:00

64 lines
1.6 KiB
RPMSpec

%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 <cappy@fyralabs.com>
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