summaryrefslogtreecommitdiff
path: root/as2-platform-dji-osdk.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-10 10:59:00 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-10 10:59:00 +0000
commit74984d7f21959523c461fe5ba4553149ca6558e9 (patch)
treefdb3d2157efbb142a3aafe75d756ed023ce8b900 /as2-platform-dji-osdk.spec
parent1eebd24509679fd946a08dd2894ba3ffdd8520c9 (diff)
automatic import of ros-humble-as2-platform-dji-osdk
Diffstat (limited to 'as2-platform-dji-osdk.spec')
-rw-r--r--as2-platform-dji-osdk.spec15
1 files changed, 13 insertions, 2 deletions
diff --git a/as2-platform-dji-osdk.spec b/as2-platform-dji-osdk.spec
index a51bae7..aff0442 100644
--- a/as2-platform-dji-osdk.spec
+++ b/as2-platform-dji-osdk.spec
@@ -4,12 +4,13 @@
Name: ros-%{ros_distro}-%{RosPkgName}
Version: 1.1.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Package to communicate DJI OSDK with Aerostack2 framework
License: BSD-3-Clause
URL: https://github.com/aerostack2/as2_platform_dji_osdk/tree/main
Source0: %{RosPkgName}-%{src_version}.tar.gz
Source1: Onboard-SDK-master.tar.gz
+Patch0: ffmpeg5-compat.patch
%global debug_package %{nil}
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
@@ -52,8 +53,11 @@ Provides: %{name}-runtime = %{version}-%{release}
Package to communicate DJI OSDK with Aerostack2 framework
%prep
-%autosetup -n %{RosPkgName}-%{src_version}
+%autosetup -n %{RosPkgName}-%{src_version} -N
tar xzf %{SOURCE1} -C %{_builddir}
+cd %{_builddir}/Onboard-SDK-master
+patch -p1 < %{PATCH0}
+cd -
%build
[ -f /opt/ros/%{ros_distro}/setup.sh ] && source /opt/ros/%{ros_distro}/setup.sh || true
@@ -83,6 +87,13 @@ make install DESTDIR=%{buildroot}
/opt/ros/%{ros_distro}
%changelog
+* Sat Oct 10 2026 ai-importer <ai-importer@openeuler.org> - 1.1.0-3
+- Add ffmpeg5-compat.patch for FFmpeg 5.x API compatibility
+- Replace removed APIs: avcodec_register_all, avcodec_decode_video2,
+ avpicture_get_size/fill, av_free_packet, AVPicture, AVCodec const
+- Use avcodec_send_packet/avcodec_receive_frame, av_image_*,
+ av_packet_unref, avcodec_free_context, av_frame_free
+
* Sat Oct 10 2026 ai-importer <ai-importer@openeuler.org> - 1.1.0-2
- Bundle DJI Onboard-SDK as Source1 to avoid network git clone in COPR
- Add ffmpeg-devel BuildRequires for advanced-sensing component