[packages/v4l-utils] add qt bcond
atler
atler at pld-linux.org
Sat Dec 5 01:22:01 CET 2020
commit aaedf3268564e79d2ccceef4a7952125539051e5
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Dec 5 01:20:44 2020 +0100
add qt bcond
v4l-utils.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/v4l-utils.spec b/v4l-utils.spec
index 942183c..3097fde 100644
--- a/v4l-utils.spec
+++ b/v4l-utils.spec
@@ -1,5 +1,6 @@
#
# Conditional build:
+%bcond_without qt # don't build Qt tools
%bcond_without udev # using libudev to detect device name
#
Summary: Collection of Video4Linux utilities
@@ -16,10 +17,13 @@ Patch1: %{name}-glibc.patch
URL: https://linuxtv.org/wiki/index.php/V4l-utils
BuildRequires: OpenGL-devel
BuildRequires: OpenGL-GLU-devel
+%if %{with qt}
BuildRequires: Qt5Core-devel >= 5.0
BuildRequires: Qt5Gui-devel >= 5.0
BuildRequires: Qt5OpenGL-devel >= 5.0
BuildRequires: Qt5Widgets-devel >= 5.0
+BuildRequires: qt5-build >= 5.0
+%endif
BuildRequires: SDL2-devel
BuildRequires: SDL2_image-devel
BuildRequires: alsa-lib-devel
@@ -33,7 +37,6 @@ BuildRequires: libjpeg-devel
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: pkgconfig
-BuildRequires: qt5-build >= 5.0
%{?with_udev:BuildRequires: udev-devel}
BuildRequires: xorg-lib-libX11-devel
Requires: libv4l = %{version}-%{release}
@@ -151,6 +154,10 @@ Statyczne biblioteki libv4l.
%configure \
--disable-silent-rules \
--enable-libdvbv5 \
+%if %{without qt}
+ --disable-qv4l2 \
+ --disable-qvidcap \
+%endif
%{?with_udev:--with-libudev}
%{__make}
@@ -223,6 +230,7 @@ done
%{_mandir}/man1/v4l2-compliance.1*
%{_mandir}/man1/v4l2-ctl.1*
+%if %{with qt}
%files qt
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/qv4l2
@@ -233,6 +241,7 @@ done
%{_iconsdir}/hicolor/*/apps/qvidcap.*
%{_mandir}/man1/qv4l2.1*
%{_mandir}/man1/qvidcap.1*
+%endif
%files -n ir-keytable
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/v4l-utils.git/commitdiff/aaedf3268564e79d2ccceef4a7952125539051e5
More information about the pld-cvs-commit
mailing list