commit ee7b1e2a6f17f3c4acba3be4e24dbfb6ed047ae3
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Tue Feb 23 13:24:07 2021 +0100
Squashed commit of the following:
commit 3170a1314e36bf700f544779e723953b0a11f3fa
Author: Neal Gompa <ngompa13(a)gmail.com>
Date: Sun Dec 27 13:18:51 2020 -0500
v4l2loopback-utils: Drop unsatisfiable requirement
commit c4e552d98d8c1e28b8c4162f2081989503a3a51b
Author: Neal Gompa <ngompa13(a)gmail.com>
Date: Sun Dec 27 12:20:10 2020 -0500
v4l2loopback-utils: Fix the build
commit 37e553a1cf656c3c03a7ad38b6470e66dcc788cb
Author: Neal Gompa <ngompa13(a)gmail.com>
Date: Sat Dec 26 18:42:44 2020 -0500
v4l2loopback-kmod: Initial packaging
commit f68c1a84036d8eeda21871a4d67a7164bc22eda2
Author: Neal Gompa <ngompa13(a)gmail.com>
Date: Sat Dec 26 18:41:57 2020 -0500
v4l2loopback-utils: Initial packaging
commit 4674068219d4ab8e925f62a2f7c6805d45c59731
Author: Neal Gompa <ngompa13(a)gmail.com>
Date: Sat Dec 26 18:41:23 2020 -0500
Initial commit
Signed-off-by: Nicolas Chauvet <kwizart(a)gmail.com>
.gitignore | 2 ++
LICENSE | 21 +++++++++++++++
README.md | 3 +++
modprobe-d-98-v4l2loopback.conf | 1 +
modules-load-d-v4l2loopback.conf | 1 +
v4l2loopback.spec | 56 ++++++++++++++++++++++++++++++++++++++++
6 files changed, 84 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0195d2d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.tar.gz
+*.rpm
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..525552c
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Neal Gompa
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..b91e2e8
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# Packaging of v4l2loopback
+
+This repository contains the packaging for `v4l2loopback` driver for Fedora.
diff --git a/modprobe-d-98-v4l2loopback.conf b/modprobe-d-98-v4l2loopback.conf
new file mode 100644
index 0000000..de440a1
--- /dev/null
+++ b/modprobe-d-98-v4l2loopback.conf
@@ -0,0 +1 @@
+options v4l2loopback exclusive_caps=1 card_label="OBS Virtual Camera"
diff --git a/modules-load-d-v4l2loopback.conf b/modules-load-d-v4l2loopback.conf
new file mode 100644
index 0000000..d394e47
--- /dev/null
+++ b/modules-load-d-v4l2loopback.conf
@@ -0,0 +1 @@
+v4l2loopback
diff --git a/v4l2loopback.spec b/v4l2loopback.spec
new file mode 100644
index 0000000..1a63cbb
--- /dev/null
+++ b/v4l2loopback.spec
@@ -0,0 +1,56 @@
+%global prjname v4l2loopback
+
+Name: %{prjname}-utils
+Summary: Utils for V4L2 loopback devices
+Version: 0.12.5
+Release: 1%{?dist}
+License: GPLv2+
+
+URL:
https://github.com/umlaeute/v4l2loopback
+Source0: %{url}/archive/v%{version}/%{prjname}-%{version}.tar.gz
+Source1: modprobe-d-98-v4l2loopback.conf
+Source2: modules-load-d-v4l2loopback.conf
+
+BuildRequires: gcc
+BuildRequires: make
+BuildRequires: help2man
+BuildRequires: systemd-rpm-macros
+# For kmod package
+Provides: %{prjname}-kmod-common = %{version}-%{release}
+
+BuildArch: noarch
+
+%description
+This 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.
+
+This package contains the utilties for %{prjname}.
+
+
+%prep
+%autosetup -n %{prjname}-%{version} -p1
+
+%build
+# Nothing to build
+
+%install
+make V=1 %{?_smp_mflags} install-utils DESTDIR=%{buildroot} PREFIX=%{_prefix}
+make V=1 %{?_smp_mflags} install-man DESTDIR=%{buildroot} PREFIX=%{_prefix}
+
+install -D -m 0644 %{SOURCE1} %{buildroot}%{_modprobedir}/98-v4l2loopback.conf
+install -D -m 0644 %{SOURCE2} %{buildroot}%{_modulesloaddir}/v4l2loopback.conf
+
+%files
+%doc README.md AUTHORS NEWS
+%license COPYING
+%attr(0755,root,root) %{_bindir}/v4l2loopback-ctl
+%attr(0644,root,root) %{_mandir}/man1/v4l2loopback-ctl.1*
+%{_modprobedir}/98-v4l2loopback.conf
+%{_modulesloaddir}/v4l2loopback.conf
+
+
+%changelog
+* Sat Dec 26 2020 Neal Gompa <ngompa13(a)gmail.com> - 0.12.5-1
+- Initial packaging