diff --git a/libuvc.spec b/libuvc.spec new file mode 100644 index 0000000..f69f13a --- /dev/null +++ b/libuvc.spec @@ -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 - 0.0.7-1 +- Init for openEuler diff --git a/v0.0.7.tar.gz b/v0.0.7.tar.gz new file mode 100644 index 0000000..913481a Binary files /dev/null and b/v0.0.7.tar.gz differ