File v4l2ucp.spec of Package v4l2ucp
#
# spec file for package v4l2ucp
#
# Copyright (c) 2021 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: v4l2ucp
Version: 0
Release: 0
Summary: A universal control panel for V4L2 devices
License: GPL-2.0-only
Group: Hardware/Camera
URL: https://github.com/smunaut/v4l2ucp-qt5
Source: %{name}-%{version}.tar.bz2
Patch0: v4l2ucp-desktop.patch
BuildRequires: cmake
BuildRequires: hicolor-icon-theme
BuildRequires: libqt5-qtbase-devel
BuildRequires: libv4l-devel
BuildRequires: update-desktop-files
%description
This is port of an original v4l2ucp to Qt4 library. It reads a
description of the controls that the V4L2 device supports from the device,
and presents the user with a graphical means for adjusting those controls.
It allows for controlling multiple devices. There is an easy way
to reset one or all the controls to their default state.
A list of device files can be given on the command line. If no files are
given, the program will check the V4L2UCP_DEV environment variable. If it
is set, that file will be opened. Finally, it will try to open /dev/video0
if nothing else was specified. If no devices can be opened, the program will
exit.
%prep
%autosetup
sed -i '\|DESTINATION share/icons| s|share/icons|share/pixmaps|' CMakeLists.txt
%build
%cmake
%cmake_build
%install
%cmake_install
%suse_update_desktop_file %{name}
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files
%doc README TODO
%license COPYING COPYING.images
%{_bindir}/v4l2ctrl
%{_bindir}/v4l2ucp
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog