52 lines
1.0 KiB
RPMSpec
52 lines
1.0 KiB
RPMSpec
%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
|