[packages/v4l-utils] - added libv4l-apidocs package
qboosh
qboosh at pld-linux.org
Sat Dec 16 10:12:49 CET 2023
commit e95e49636b8dd7323456490faf568b0490502774
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 16 09:00:45 2023 +0100
- added libv4l-apidocs package
v4l-utils.spec | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/v4l-utils.spec b/v4l-utils.spec
index 28291f4..90d7e86 100644
--- a/v4l-utils.spec
+++ b/v4l-utils.spec
@@ -1,7 +1,8 @@
# TODO: package ARIB-STD-B24 EN300-468-TAB00 gconv modules
#
# Conditional build:
-%bcond_without qt # don't build Qt tools
+%bcond_without apidocs # Doxygen documentation
+%bcond_without qt # Qt (5) based tools
%bcond_without static_libs # static libraries
#
Summary: Collection of Video4Linux utilities
@@ -28,15 +29,17 @@ BuildRequires: SDL2_image-devel
BuildRequires: alsa-lib-devel
# for bpf
BuildRequires: clang
+%{?with_apidocs:BuildRequires: doxygen >= 1.8.6}
BuildRequires: elfutils-devel
BuildRequires: gettext-tools >= 0.19.8
BuildRequires: json-c-devel >= 0.15
BuildRequires: libbpf-devel >= 0.7
BuildRequires: libjpeg-devel
-BuildRequires: libstdc++-devel
+BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: meson >= 0.54
BuildRequires: ninja
BuildRequires: pkgconfig
+BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.736
BuildRequires: systemd-devel
BuildRequires: tar >= 1:1.22
@@ -148,12 +151,25 @@ Static libv4l libraries.
%description -n libv4l-static -l pl.UTF-8
Statyczne biblioteki libv4l.
+%package -n libv4l-apidocs
+Summary: API documentation for libv4l libraries
+Summary(pl.UTF-8): Dokumentacja API biblioteki libv4l
+Group: Documentation
+BuildArch: noarch
+
+%description -n libv4l-apidocs
+API documentation for libv4l libraries.
+
+%description -n libv4l-apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libv4l.
+
%prep
%setup -q
%build
%meson build \
%{!?with_static_libs:--default-library=shared} \
+ %{!?with_apidocs:-Ddoxygen-doc=false} \
-Dlibdvbv5=enabled \
%if %{without qt}
-Dqv4l2=disabled \
@@ -304,3 +320,9 @@ done
%{_libdir}/libv4l2rds.a
%{_libdir}/libv4lconvert.a
%endif
+
+%if %{with apidocs}
+%files -n libv4l-apidocs
+%defattr(644,root,root,755)
+%{_docdir}/v4l-utils
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/v4l-utils.git/commitdiff/e95e49636b8dd7323456490faf568b0490502774
More information about the pld-cvs-commit
mailing list