Mageia Bugzilla – Attachment 14567 Details for
Bug 33294
import libuvc - for USB Video Class devices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
libuvc spec file
libuvc.spec (text/x-rpm-spec), 3.07 KB, created by
Aurelian R
on 2024-06-12 11:30:28 CEST
(
hide
)
Description:
libuvc spec file
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-06-12 11:30:28 CEST
Size:
3.07 KB
patch
obsolete
>%define major 0 >%define libname %mklibname uvc %{major} >%define devname %mklibname uvc -d > ># The examples fail to build with OpenCV 4.x and aren't terribly useful, so ># disable them by default (https://github.com/libuvc/libuvc/issues/233) >%bcond_with examples > >Name: libuvc >Version: 0.0.7 >Release: %mkrel 0.1 >Summary: Cross-platform library for USB video devices >Group: System/Libraries > ># include/utlist.h is BSD-1-Clause, the rest is BSD-3-Clause >License: BSD-3-Clause AND BSD-1-Clause >URL: https://libuvc.github.io >Source: https://github.com/libuvc/libuvc/archive/v%{version}/%{name}-%{version}.tar.gz > >BuildRequires: cmake >BuildRequires: doxygen > >BuildRequires: libjpeg-devel >BuildRequires: libusb1-devel >%{?with_examples: >BuildRequires: opencv-devel } > >%description >libuvc is a cross-platform library for USB video devices, built atop libusb. It >enables fine-grained control over USB video devices exporting the standard USB >Video Class (UVC) interface, enabling developers to write drivers for >previously unsupported devices, or just access UVC devices in a generic >fashion. > >%package -n %{libname} >Summary: Cross-platform library for USB video devices >Group: System/Libraries > >%description -n %{libname} >libuvc is a cross-platform library for USB video devices, built atop libusb. It >enables fine-grained control over USB video devices exporting the standard USB >Video Class (UVC) interface, enabling developers to write drivers for >previously unsupported devices, or just access UVC devices in a generic >fashion. > >%package -n %{devname} >Summary: Development files for %{name} >Group: System/Libraries >Requires: %{libname} = %{version}-%{release} >Provides: %{name}-devel = %{version}-%{release} > >%description -n %{devname} >The %{name}-devel package contains libraries and header files for >developing applications that use %{name}. > >%package doc >Summary: Developer documentation for %{name} >Group: System/Libraries >BuildArch: noarch > >%description doc >This package contains developer documentation for %{name}. > >%{?with_examples: >%package -n %{libname}-examples >Summary: Examples for %{name} >Group: Documentation > >%description -n %{libname}-examples >This package contains examples making use of %{name}. >} > > >%prep >%autosetup -p1 > >%build >%cmake \ > -DCMAKE_BUILD_TARGET=Shared \ > -DBUILD_TEST=%{?with_examples:ON}%{!?with_examples:OFF} \ > -DBUILD_EXAMPLE=%{?with_examples:ON}%{!?with_examples:OFF} >%cmake_build > ># Build documentation >doxygen doxygen.conf > >%install >%cmake_install > >%{?with_examples: >install -Dpm0755 %{_vpath_builddir}/example %{buildroot}%{_bindir}/uvc_example >install -Dpm0755 -t %{buildroot}%{_bindir} %{_vpath_builddir}/uvc_test } > >%check >%ctest > >%files -n %{libname} >%license LICENSE.txt >%doc README.md changelog.txt >%{_libdir}/%{name}.so.0* > >%files -n %{devname} >%{_includedir}/%{name}/ >%{_libdir}/%{name}.so >%{_libdir}/cmake/%{name}/ >%{_libdir}/pkgconfig/%{name}.pc > >%files doc >%license LICENSE.txt >%doc cameras standard-units.yaml >%doc doc > >%{?with_examples: >%files -n %{libname}-examples >%{_bindir}/uvc_example >%{_bindir}/uvc_test }
%define major 0 %define libname %mklibname uvc %{major} %define devname %mklibname uvc -d # The examples fail to build with OpenCV 4.x and aren't terribly useful, so # disable them by default (https://github.com/libuvc/libuvc/issues/233) %bcond_with examples Name: libuvc Version: 0.0.7 Release: %mkrel 0.1 Summary: Cross-platform library for USB video devices Group: System/Libraries # include/utlist.h is BSD-1-Clause, the rest is BSD-3-Clause License: BSD-3-Clause AND BSD-1-Clause URL: https://libuvc.github.io Source: https://github.com/libuvc/libuvc/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: doxygen BuildRequires: libjpeg-devel BuildRequires: libusb1-devel %{?with_examples: BuildRequires: opencv-devel } %description libuvc is a cross-platform library for USB video devices, built atop libusb. It enables fine-grained control over USB video devices exporting the standard USB Video Class (UVC) interface, enabling developers to write drivers for previously unsupported devices, or just access UVC devices in a generic fashion. %package -n %{libname} Summary: Cross-platform library for USB video devices Group: System/Libraries %description -n %{libname} libuvc is a cross-platform library for USB video devices, built atop libusb. It enables fine-grained control over USB video devices exporting the standard USB Video Class (UVC) interface, enabling developers to write drivers for previously unsupported devices, or just access UVC devices in a generic fashion. %package -n %{devname} Summary: Development files for %{name} Group: System/Libraries Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{devname} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Developer documentation for %{name} Group: System/Libraries BuildArch: noarch %description doc This package contains developer documentation for %{name}. %{?with_examples: %package -n %{libname}-examples Summary: Examples for %{name} Group: Documentation %description -n %{libname}-examples This package contains examples making use of %{name}. } %prep %autosetup -p1 %build %cmake \ -DCMAKE_BUILD_TARGET=Shared \ -DBUILD_TEST=%{?with_examples:ON}%{!?with_examples:OFF} \ -DBUILD_EXAMPLE=%{?with_examples:ON}%{!?with_examples:OFF} %cmake_build # Build documentation doxygen doxygen.conf %install %cmake_install %{?with_examples: install -Dpm0755 %{_vpath_builddir}/example %{buildroot}%{_bindir}/uvc_example install -Dpm0755 -t %{buildroot}%{_bindir} %{_vpath_builddir}/uvc_test } %check %ctest %files -n %{libname} %license LICENSE.txt %doc README.md changelog.txt %{_libdir}/%{name}.so.0* %files -n %{devname} %{_includedir}/%{name}/ %{_libdir}/%{name}.so %{_libdir}/cmake/%{name}/ %{_libdir}/pkgconfig/%{name}.pc %files doc %license LICENSE.txt %doc cameras standard-units.yaml %doc doc %{?with_examples: %files -n %{libname}-examples %{_bindir}/uvc_example %{_bindir}/uvc_test }
View Attachment As Raw
Actions:
View
Attachments on
bug 33294
: 14567