v4l2loopback-dkms/v4l2loopback-dkms.spec

58 lines
1.6 KiB
RPMSpec

Name: v4l2loopback-dkms
Version: 0.12.7
Release: 1mamba
Summary: A kernel module to create V4L2 loopback devices
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/umlaeute/v4l2loopback
Source: https://github.com/umlaeute/v4l2loopback.git/v%{version}/v4l2loopback-%{version}.tar.bz2
Patch0: v4l2loopback-dkms-0.12.7-kernel-5.18.patch
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires(post):dkms
%description
A kernel module to create V4L2 loopback devices.
%prep
%setup -q -n v4l2loopback-%{version}
%patch 0 -p1 -b .kernel-5.18
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install-utils install-man
install -D -m0644 v4l2loopback.c v4l2loopback_formats.h dkms.conf Makefile \
-t %{buildroot}%{_prefix}/src/v4l2loopback-%{version}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%preun
dkms remove -q -m v4l2loopback -v %{version} --all
:
%posttrans
if [ $1 -ge 1 ]; then
dkms add -q -m v4l2loopback -v %{version}
dkms install -q -m v4l2loopback -v %{version} --force
fi
:
%files
%defattr(-,root,root)
%{_bindir}/v4l2loopback-ctl
%dir %{_prefix}/src/v4l2loopback-%{version}
%{_prefix}/src/v4l2loopback-%{version}/*
%{_mandir}/man1/v4l2loopback-ctl.1*
%doc AUTHORS COPYING
%changelog
* Sat Feb 24 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12.7-1mamba
- package created using the webbuild interface