Add: libuvc
This commit is contained in:
parent
32f0cc7a15
commit
b0e40afed9
51
libuvc.spec
Normal file
51
libuvc.spec
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
Name: libuvc
|
||||||
|
Version: 0.0.7
|
||||||
|
Release: 1
|
||||||
|
Summary: A cross-platform library for USB video devices
|
||||||
|
License: BSD
|
||||||
|
URL: https://github.com/libuvc/lubuvc
|
||||||
|
Source0: v%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: libusb-devel
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
A cross-platform library for USB video devices.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libuvc
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%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
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
||||||
|
-DCMAKE_INSTALL_DATADIR="%{_libdir}" \
|
||||||
|
..
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install -C build
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_libdir}/%{name}*.so*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
%{_libdir}/cmake/*
|
||||||
|
%{_libdir}/%{name}.a
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed May 3 2023 will_niutao <niutao2@huawei.com> - 0.0.7-1
|
||||||
|
- Init for openEuler
|
||||||
BIN
v0.0.7.tar.gz
Normal file
BIN
v0.0.7.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user