v4l2loopback-dkms/v4l2loopback-dkms.spec

64 lines
1.8 KiB
RPMSpec
Raw Normal View History

Name: v4l2loopback-dkms
Version: 0.13.2
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
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires(post):dkms
%description
A kernel module to create V4L2 loopback devices.
%prep
%setup -q -n v4l2loopback-%{version}
%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 May 25 2024 Automatic Build System <autodist@openmamba.org> 0.13.2-1mamba
- automatic version update by autodist
* Tue Mar 26 2024 Automatic Build System <autodist@openmamba.org> 0.13.1-1mamba
- automatic version update by autodist
* Sat Feb 24 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12.7-1mamba
- package created using the webbuild interface