From c00affda1228c0bed97fd144cc84b127b19a77e7 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 9 Oct 2026 04:36:27 +0000 Subject: automatic import of libuvc --- libuvc.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 libuvc.spec (limited to 'libuvc.spec') diff --git a/libuvc.spec b/libuvc.spec new file mode 100644 index 0000000..1d3f2c6 --- /dev/null +++ b/libuvc.spec @@ -0,0 +1,62 @@ +Name: libuvc +Version: 0.0.7 +Release: 4 +Summary: A cross-platform library for USB video devices +License: BSD-3-Clause +URL: https://github.com/libuvc/libuvc +Source0: https://github.com/libuvc/libuvc/archive/refs/tags/v%{version}.tar.gz +Patch0: libuvc-cmake4.patch +Patch1: libuvc-cve-2026-1991.patch + +BuildRequires: gcc +BuildRequires: cmake +BuildRequires: libusb-devel +BuildRequires: libjpeg-devel + +%description +A cross-platform library for USB video devices. + +%package devel +Summary: Development files for libuvc +Requires: %{name}%{?_isa} = %{version}-%{release} +Conflicts: %{name} < 0.0.7-3 + +%description devel +The devel package contains development files for libuvc. +It provides header files and libraries for libuvc. + +%prep +%autosetup -p1 -n %{name}-%{version} + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%files +%{_libdir}/*.so.* + +%files devel +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_libdir}/cmake/* +%{_libdir}/%{name}.a + +%changelog +* Fri Oct 09 2026 kuyan_kubuds - 0.0.7-4 +- Fix CVE-2026-1991: validate info->config and the interface index in + uvc_scan_streaming() before dereferencing them. A malformed UVC descriptor + caused a NULL pointer dereference (SEGV at address 0x10); see upstream + issue libuvc/libuvc#300. + +* Sat Jul 18 2026 Funda Wang - 0.0.7-3 +- fix build with cmake 4 + +* Fri Dec 15 2023 davidhan008 <619409713@qq.com> - 0.0.7-2 +- Add cmake depence + +* Wed May 3 2023 will_niutao - 0.0.7-1 +- Init for openEuler -- cgit v1.2.3