File akvcam.spec of Package akvcam
#
# spec file for package akvcam
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: akvcam
Version: 1.2.6
Release: 0
Summary: Virtual camera driver for Linux (V4L2)
License: GPL-2.0-or-later
Group: System/Kernel
URL: https://github.com/webcamoid/akvcam
Source0: https://github.com/webcamoid/akvcam/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: config.ini
Source2: default_frame-1280x720.png
Source3: preamble
BuildRequires: %{kernel_module_package_buildreqs}
BuildRequires: ImageMagick
BuildRequires: libqt5-qtbase-common-devel
Requires: v4l-utils
%kernel_module_package -p %{_sourcedir}/preamble
%description
akvcam, Virtual camera driver for Linux
akvcam is a fully compliant V4L2 virtual camera driver for Linux.
%prep
%autosetup -p1
%build
mkdir obj
for flavor in %{flavors_to_build}; do
rm -rf obj/$flavor
cp -r src obj/$flavor
%make_build -C %{kernel_source $flavor} %{?linux_make_arch} modules M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR='%{kernel_module_package_moddir}'
for flavor in %{flavors_to_build}; do
make V=1 -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
done
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}
convert %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/default_frame-1280x720.bmp
%files
%dir %{_sysconfdir}/%{name}
%config %attr(0640, root, root) %{_sysconfdir}/%{name}/config.ini
%config %attr(0640, root, root) %{_sysconfdir}/%{name}/default_frame-1280x720.bmp
%changelog