2018-12-06 14:54:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package libcamera
|
|
|
|
#
|
2022-01-05 18:42:59 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-12-06 14:54:35 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-12-21 11:38:46 +01:00
|
|
|
%define lname libcamera0_0_3
|
|
|
|
%define lname_base libcamera-base0_0_3
|
2022-01-05 18:42:59 +01:00
|
|
|
Name: libcamera
|
2022-12-21 11:38:46 +01:00
|
|
|
Version: 0.0.3
|
2018-12-06 14:54:35 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A complex camera support library in C++
|
2021-05-05 09:11:54 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2018-12-06 14:54:35 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-03-09 20:10:31 +01:00
|
|
|
URL: http://libcamera.org/
|
2020-03-09 17:44:37 +01:00
|
|
|
|
2018-12-06 14:54:35 +01:00
|
|
|
Source: %name-%version.tar.xz
|
2021-07-26 15:26:31 +02:00
|
|
|
Source1: baselibs.conf
|
2022-10-18 20:50:25 +02:00
|
|
|
|
2020-11-02 12:25:14 +01:00
|
|
|
BuildRequires: boost-devel
|
2018-12-06 14:54:35 +01:00
|
|
|
BuildRequires: c++_compiler
|
2022-09-02 16:22:15 +02:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
BuildRequires: gcc9
|
|
|
|
BuildRequires: gcc9-c++
|
|
|
|
%endif
|
2020-11-02 12:25:14 +01:00
|
|
|
BuildRequires: libQt5Core-devel
|
|
|
|
BuildRequires: libQt5Gui-devel
|
|
|
|
BuildRequires: libQt5Widgets-devel
|
2022-10-18 20:50:25 +02:00
|
|
|
BuildRequires: meson >= 0.56
|
2022-01-05 18:42:59 +01:00
|
|
|
BuildRequires: pkgconfig
|
2021-05-05 09:11:54 +02:00
|
|
|
BuildRequires: python3-Jinja2
|
2020-03-09 17:44:37 +01:00
|
|
|
BuildRequires: python3-PyYAML
|
2021-05-05 09:11:54 +02:00
|
|
|
BuildRequires: python3-ply
|
2018-12-06 14:54:35 +01:00
|
|
|
BuildRequires: xz
|
2020-03-09 17:44:37 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2020-11-02 12:25:14 +01:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
2020-03-09 17:44:37 +01:00
|
|
|
BuildRequires: pkgconfig(gstreamer-video-1.0)
|
2021-05-05 09:11:54 +02:00
|
|
|
BuildRequires: pkgconfig(libevent_pthreads)
|
2021-12-29 22:58:40 +01:00
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
2019-08-23 20:54:48 +02:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2020-11-02 12:25:14 +01:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2022-09-02 16:22:15 +02:00
|
|
|
BuildRequires: pkgconfig(yaml-0.1)
|
2018-12-06 14:54:35 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libcamera is an experimental camera user-space API.
|
|
|
|
|
|
|
|
A camera may consist of multiple sensors or function blocks, and can
|
|
|
|
expose multiple kernel device nodes in /dev for different stages of
|
|
|
|
the pipeline. The libcamera API groups and exposes these pieces as
|
|
|
|
what users consider one "camera".
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: A complex camera support library in C++
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
libcamera is an experimental camera user-space API.
|
|
|
|
|
|
|
|
A camera may consist of multiple sensors or function blocks, and can
|
|
|
|
expose multiple kernel device nodes in /dev for different stages of
|
|
|
|
the pipeline. The libcamera API groups and exposes these pieces as
|
|
|
|
what users consider one "camera".
|
|
|
|
|
2022-10-18 20:50:25 +02:00
|
|
|
%package -n %lname_base
|
|
|
|
Summary: A complex camera support library in C++
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname_base
|
|
|
|
libcamera is an experimental camera user-space API.
|
|
|
|
|
|
|
|
A camera may consist of multiple sensors or function blocks, and can
|
|
|
|
expose multiple kernel device nodes in /dev for different stages of
|
|
|
|
the pipeline. The libcamera API groups and exposes these pieces as
|
|
|
|
what users consider one "camera".
|
|
|
|
|
2018-12-06 14:54:35 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development for libcamera, a camera support library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2022-10-18 20:50:25 +02:00
|
|
|
Requires: %lname_base = %version
|
2018-12-06 14:54:35 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libcamera is an experimental camera user-space API.
|
|
|
|
|
|
|
|
This subpackage contains the header files.
|
|
|
|
|
2019-08-23 20:54:48 +02:00
|
|
|
%package tools
|
|
|
|
Summary: Command-line utilities from libcamera
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
libcamera is an experimental camera user-space API.
|
|
|
|
|
|
|
|
"cam" is a command-line utility to interact with cameras. The initial state is
|
|
|
|
limited and only supports listing cameras in the system and selecting a camera
|
|
|
|
to interact with.
|
|
|
|
|
2020-03-09 17:44:37 +01:00
|
|
|
%package -n gstreamer-plugins-libcamera
|
|
|
|
Summary: GStreamer plugins from libcamera
|
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
|
|
|
|
%description -n gstreamer-plugins-libcamera
|
|
|
|
libcamera is an experimental camera user-space API.
|
|
|
|
This is its integration plugin for gstreamer.
|
|
|
|
|
2018-12-06 14:54:35 +01:00
|
|
|
%prep
|
2022-10-18 20:50:25 +02:00
|
|
|
%autosetup -p1
|
2018-12-06 14:54:35 +01:00
|
|
|
|
|
|
|
%build
|
2022-09-02 16:22:15 +02:00
|
|
|
%if %{pkg_vcmp gcc < 8}
|
|
|
|
export CC=gcc-9
|
|
|
|
export CXX=g++-9
|
|
|
|
%endif
|
2020-11-02 12:25:14 +01:00
|
|
|
%meson \
|
|
|
|
-Ddocumentation=disabled \
|
2021-07-23 18:50:05 +02:00
|
|
|
-Dqcam=enabled \
|
2021-05-05 09:11:54 +02:00
|
|
|
-Dv4l2=false -Dtracing=disabled \
|
2021-09-09 11:22:13 +02:00
|
|
|
-Dpipelines=ipu3,rkisp1,simple,uvcvideo,vimc \
|
2021-07-23 15:46:25 +02:00
|
|
|
-Dlc-compliance=disabled
|
2018-12-06 14:54:35 +01:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
2018-12-11 17:05:57 +01:00
|
|
|
%meson_install
|
2018-12-06 14:54:35 +01:00
|
|
|
|
2022-10-18 20:50:25 +02:00
|
|
|
%ldconfig_scriptlets -n %lname
|
|
|
|
%ldconfig_scriptlets -n %lname_base
|
2018-12-06 14:54:35 +01:00
|
|
|
|
|
|
|
%files -n %lname
|
2022-10-18 20:50:25 +02:00
|
|
|
%_libdir/libcamera.so.*
|
|
|
|
|
|
|
|
%files -n %lname_base
|
|
|
|
%_libdir/libcamera-base.so.*
|
2018-12-06 14:54:35 +01:00
|
|
|
|
|
|
|
%files devel
|
2020-11-02 12:25:14 +01:00
|
|
|
%license LICENSES/*GPL*
|
2018-12-06 14:54:35 +01:00
|
|
|
%_includedir/libcamera/
|
2021-07-23 15:46:25 +02:00
|
|
|
%_libdir/libcamera-base.so
|
2018-12-06 14:54:35 +01:00
|
|
|
%_libdir/libcamera.so
|
2018-12-11 17:05:57 +01:00
|
|
|
%_libdir/pkgconfig/*.pc
|
2018-12-06 14:54:35 +01:00
|
|
|
|
2019-08-23 20:54:48 +02:00
|
|
|
%files tools
|
|
|
|
%_bindir/cam
|
2020-11-02 12:25:14 +01:00
|
|
|
%_bindir/qcam
|
2019-08-23 20:54:48 +02:00
|
|
|
%_libexecdir/libcamera/
|
|
|
|
%_libdir/libcamera/
|
2020-11-02 12:31:19 +01:00
|
|
|
%_datadir/libcamera/
|
2019-08-23 20:54:48 +02:00
|
|
|
|
2020-03-09 17:44:37 +01:00
|
|
|
%files -n gstreamer-plugins-libcamera
|
|
|
|
%_libdir/gstreamer-1.0/
|
|
|
|
|
2018-12-06 14:54:35 +01:00
|
|
|
%changelog
|