%global debug_package %{nil} %define _disable_source_fetch 0 Name: v4l2loopback Version: 0.12.5 Release: 2%{?dist} Summary: Tools to create Video4Linux loopback recording devices Group: System Environment/Kernel License: GPLv2 URL: https://github.com/umlaeute/v4l2loopback Source0: https://github.com/umlaeute/v4l2loopback/archive/v%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: help2man Requires: bash Requires: v4l-utils Requires: gstreamer1 Requires: which Requires: %{name}-kmod = %{version} %description This module and associated tools can create "virtual video devices" accessible through the Video4Linux API. 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 generated by another application. %package dkms Summary: Kernel module to create Video4Linux loopback devices (DKMS) Requires: dkms >= 2.2 Requires: kernel-devel Provides: %{name}-kmod = %{version} %description dkms This package contains the module source and DKMS configuration to build thev v4l2loopback kernel module. %post dkms %{_prefix}/lib/dkms/common.postinst %{name} %{version} %preun dkms if [ $1 -ne 1 ]; then dkms remove -m %{name} -v %{version} --all --rpm_safe_upgrade || : fi %prep %setup -q %build # v4l2loopback is a shell script %install %{__rm} -rf $RPM_BUILD_ROOT mkdir -p "${RPM_BUILD_ROOT}%{_usrsrc}" cp -r ../%{name}-%{version} "${RPM_BUILD_ROOT}%{_usrsrc}/" make install-utils install-man DESTDIR="$RPM_BUILD_ROOT" PREFIX=%{_prefix} BINDIR=%{_bindir} MANDIR=%{_mandir} %files %doc AUTHORS NEWS README.md %{_bindir}/%{name}* %{_mandir}/man1/*.1* %files dkms %config(noreplace)%{_usrsrc}/%{name}-%{version}/dkms.conf %doc %{_usrsrc}/%{name}-%{version}/AUTHORS %doc %{_usrsrc}/%{name}-%{version}/COPYING %doc %{_usrsrc}/%{name}-%{version}/NEWS %doc %{_usrsrc}/%{name}-%{version}/README.md %doc %{_usrsrc}/%{name}-%{version}/TODO %doc %{_usrsrc}/%{name}-%{version}/doc %doc %{_usrsrc}/%{name}-%{version}/examples %doc %{_usrsrc}/%{name}-%{version}/man %{_usrsrc}/%{name}-%{version} %changelog * Sat May 30 2020 Jan Drögehoff - 0.12.5-2 - add kernel-devel requirement * Fri May 01 2020 Jan Drögehoff - 0.12.5-1 - Bump to version 0.12.5 * Fri Nov 01 2019 Jan Drögehoff - 0.9.1-2 - Remove unneeded build dependencies - Fix DKMS trigger on package update * Wed Jun 22 2016 Daniel Miranda - 0.9.1-1 - Initial release