diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-04-09 07:38:16 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-04-09 07:38:16 +0000 |
| commit | be8dcfcd6c58f127960516338a6bf585ab464308 (patch) | |
| tree | 96843136c1747fa5a64b08cb750f39e2a679eb7a | |
| parent | f13065103d5889d0c43b2524439e91aaa31dc25b (diff) | |
automatic import of libcamera
| -rw-r--r-- | libcamera.spec | 48 |
1 files changed, 14 insertions, 34 deletions
diff --git a/libcamera.spec b/libcamera.spec index b561737..187fc83 100644 --- a/libcamera.spec +++ b/libcamera.spec @@ -18,9 +18,13 @@ Summary: ROS libcamera package License: GPL-2.0-or-later Source0: %{RosPkgName}-%{version}.tar.gz -Requires: ros-%{ros_distro}-ros-workspace +Requires: python3-yaml -BuildRequires: ros-%{ros_distro}-ros-workspace +BuildRequires: meson +BuildRequires: gcc-c++ +BuildRequires: pkg-config +BuildRequires: python3-yaml +BuildRequires: python3-jinja2 %if 0%{?with_tests} %endif @@ -37,40 +41,16 @@ A complex camera support library for Linux, Android, and ChromeOS. %autosetup -c -n %{name}-%{version} %build -# Needed to bootstrap since the ros_workspace package does not yet exist. -export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages - -# In case we're installing to a non-standard location, look for a setup.sh -# in the install tree and source it. It will set things like -# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. -if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi -mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} -%cmake3 \ - -UINCLUDE_INSTALL_DIR \ - -ULIB_INSTALL_DIR \ - -USYSCONF_INSTALL_DIR \ - -USHARE_INSTALL_PREFIX \ - -ULIB_SUFFIX \ - -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \ - -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \ - -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \ - -DSETUPTOOLS_DEB_LAYOUT=OFF \ -%if !0%{?with_tests} - -DBUILD_TESTING=OFF \ -%endif - ../%{RosPkgName}-%{version} - -%make_build +%meson \ + -Dprefix=/opt/ros/%{ros_distro} \ + -Dlibdir=lib \ + -Dpipelines=uvcvideo,vimc \ + -Dv4l2=true \ + -Dtest=false +%meson_build %install -# Needed to bootstrap since the ros_workspace package does not yet exist. -export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages - -# In case we're installing to a non-standard location, look for a setup.sh -# in the install tree and source it. It will set things like -# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. -if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi -%make_install -C .obj-%{_target_platform} +%meson_install %if 0%{?with_tests} %check |
