summaryrefslogtreecommitdiff
path: root/libuvc.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-09 04:36:27 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-09 04:36:27 +0000
commitc00affda1228c0bed97fd144cc84b127b19a77e7 (patch)
tree259ac48ea64dd529827cc58313b7d2ca1c136cc7 /libuvc.spec
parentd499ae4032814bd00037c724e720002e2dfb0363 (diff)
automatic import of libuvcopeneuler25.09
Diffstat (limited to 'libuvc.spec')
-rw-r--r--libuvc.spec62
1 files changed, 62 insertions, 0 deletions
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 <kuyan@kubuds.cn> - 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 <fundawang@yeah.net> - 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 <niutao2@huawei.com> - 0.0.7-1
+- Init for openEuler