Compare commits

..

1 Commits

Author SHA1 Message Date
2da5bd26e1 import CS libcamera-0.3.2-3.el10 2025-03-31 12:59:54 +00:00
5 changed files with 16 additions and 55 deletions

3
.gitignore vendored
View File

@ -1,2 +1 @@
/libcamera-0.3.2.tar.xz
/libcamera-v0.6.0.tar.bz2
libcamera-0.3.2.tar.xz

View File

@ -1,13 +0,0 @@
diff --git a/meson.build b/meson.build
index 9ba5e2ca..cbfbf479 100644
--- a/meson.build
+++ b/meson.build
@@ -215,7 +215,7 @@ pipelines_support = {
'ipu3': arch_x86,
'mali-c55': arch_arm,
'rkisp1': arch_arm,
- 'rpi/pisp': arch_arm,
+ #'rpi/pisp': arch_arm,
'rpi/vc4': arch_arm,
'simple': ['any'],
'uvcvideo': ['any'],

View File

@ -1,6 +0,0 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}

View File

@ -1,25 +1,26 @@
# RHEL does not include all documentation dependencies (e.g. sphinxcontrib-doxylink)
%bcond docs %{undefined rhel}
Name: libcamera
Version: 0.6.0
Release: 1%{?dist}
Version: 0.3.2
Release: 3%{?dist}
Summary: A library to support complex camera ISPs
# see .reuse/dep5 and COPYING for details
License: LGPL-2.1-or-later
URL: http://libcamera.org/
Source0: https://gitlab.freedesktop.org/camera/libcamera/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
# Upstream is still under development and does not release tarballs,
# but they do tag releases (https://git.libcamera.org/libcamera/libcamera.git/)
#
# For use the following to do generate a tarball from a git tag:
#
# git archive --format=tar --prefix=%%{name}-%%{version}/ %%{version} | xz > %%{name}-%%{version}.tar.xz
Source0: %{name}-%{version}.tar.xz
Source1: qcam.desktop
Source2: qcam.metainfo.xml
Source3: 70-libcamera.rules
# disable rpi/pisp
Patch01: 0001-disable-rpi-pisp.patch
# libcamera does not currently build on these architectures
ExcludeArch: s390x ppc64le
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: desktop-file-utils
BuildRequires: meson
@ -46,14 +47,6 @@ BuildRequires: python3-pyyaml
BuildRequires: python3-sphinx
BuildRequires: SDL2-devel
BuildRequires: systemd-devel
%if %{with docs}
BuildRequires: doxygen
BuildRequires: python3-sphinx
BuildRequires: python3-sphinxcontrib-doxylink
%endif
# Installing the firmware to ensure the Intel MIPI camera works
Recommends: intel-vsc-firmware
# libcamera is not really usable without its IPA plugins
Recommends: %{name}-ipa%{?_isa}
@ -73,14 +66,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Files for development with %{name}.
%if %{with docs}
%package doc
Summary: Documentation for %{name}
License: LGPL-2.1-or-later AND CC-BY-4.0
%description doc
HTML based documentation for %{name} including getting started and API.
%endif
%package ipa
Summary: ISP Image Processing Algorithm Plugins for %{name}
@ -129,7 +120,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Python bindings for %{name}
%prep
%autosetup -p1 -n %{name}-v%{version}
%autosetup -p1
%build
# cam/qcam crash with LTO
@ -137,9 +128,7 @@ Python bindings for %{name}
export CFLAGS="%{optflags} -Wno-deprecated-declarations"
export CXXFLAGS="%{optflags} -Wno-deprecated-declarations"
%meson -Dv4l2=true -Dlc-compliance=disabled \
-Dlibunwind=disabled -Dtracing=disabled %{!?with_docs:-Ddocumentation=disabled}
%meson -Dv4l2=true -Dlc-compliance=disabled -Dtracing=disabled
%meson_build
# Stripping requires the re-signing of IPA libraries, manually
@ -148,7 +137,7 @@ export CXXFLAGS="%{optflags} -Wno-deprecated-declarations"
%{?__debug_package:%{__debug_install_post}} \
%{__arch_install_post} \
%{__os_install_post} \
%{_builddir}/%{name}-v%{version}/src/ipa/ipa-sign-install.sh %{_builddir}/%{name}-%{version}/%{_vpath_builddir}/src/ipa-priv-key.pem %{buildroot}/%{_libdir}/libcamera/ipa_*.so \
%{_builddir}/%{name}-%{version}/src/ipa/ipa-sign-install.sh %{_builddir}/%{name}-%{version}/%{_vpath_builddir}/src/ipa-priv-key.pem %{buildroot}/%{_libdir}/libcamera/ipa_*.so \
%{nil}
%install
@ -173,7 +162,7 @@ rm -rf ${RPM_BUILD_ROOT}/%{_docdir}/%{name}-*/html/.doctrees
%files
%license COPYING.rst LICENSES/LGPL-2.1-or-later.txt
# We leave the version here explicitly to know when it bumps
%{_libdir}/libcamera*.so.0.6
%{_libdir}/libcamera*.so.0.3
%{_libdir}/libcamera*.so.%{version}
%{_udevrulesdir}/70-libcamera.rules
@ -183,10 +172,8 @@ rm -rf ${RPM_BUILD_ROOT}/%{_docdir}/%{name}-*/html/.doctrees
%{_libdir}/pkgconfig/libcamera-base.pc
%{_libdir}/pkgconfig/libcamera.pc
%if %{with docs}
%files doc
%doc %{_docdir}/%{name}-*/
%endif
%files ipa
%{_datadir}/libcamera/
@ -214,12 +201,6 @@ rm -rf ${RPM_BUILD_ROOT}/%{_docdir}/%{name}-*/html/.doctrees
%{python3_sitearch}/*
%changelog
* Wed Dec 03 2025 Kate Hsuan <hpa@redhat.com> - 0.6.0-1
- Update to the latest upstream version (RHEL-132576)
* Mon Sep 08 2025 Kate Hsuan <hpa@redhat.com> - 0.3.2-4
- Add a weak dependency to intel-vsc-firmware
* Mon Mar 03 2025 Kate Hsuan <hpa@redhat.com> - 0.3.2-3
- Drop the lttng-ust dependency
- Disable tracing

View File

@ -1 +1 @@
SHA512 (libcamera-v0.6.0.tar.bz2) = afb39c77f36ecd51fb39b9bdaec313b222a0710bb922fca56f199e10f67517277a7a806f076030e7f7dae8076cfcc1628574d553d83974bfd049b9a9da252fc6
SHA512 (libcamera-0.3.2.tar.xz) = 793b9a2864d61dbb4b1ef3c81b3e61b17da318cabce08d204533b9f64cd55033f70f1b7093bf3095f95428b5254b295ba4f01226e476662a9085b90587af41c2