commit 04b7d89d00b0b1dd3924f460a99847a1ee47af2e Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:56:28 2019 -0400 Package init diff --git a/libgusb-0.3.0.tar.xz b/libgusb-0.3.0.tar.xz new file mode 100644 index 0000000..66d4547 Binary files /dev/null and b/libgusb-0.3.0.tar.xz differ diff --git a/libgusb.spec b/libgusb.spec new file mode 100644 index 0000000..bd69c42 --- /dev/null +++ b/libgusb.spec @@ -0,0 +1,60 @@ +Name: libgusb +Version: 0.3.0 +Release: 4 +Summary: GObject-based library for libusb1 +License: LGPL-2.1+ +URL: https://github.com/hughsie/libgusb +Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz +BuildRequires: vala-devel vala-tools meson libusb1-devel gtk-doc gobject-introspection-devel glib2-devel + +%description +GUsb is a GObject wrapper for libusb1 that makes it easy to do +asynchronous control, bulk and interrupt transfers with proper +cancellation and integration into a mainloop.This makes it easy +to integrate low level USB transfers with your high-level +application or system daemon. + +%package devel +Summary: Development files and Header files for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for %{name}. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%meson -Dvapi=true -Dtests=true +%meson_build + +%install +%meson_install +%ldconfig_scriptlets + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING +%{_libdir}/girepository-1.0/GUsb-1.0.typelib +%{_libdir}/libgusb.so.* + +%files devel +%defattr(-,root,root) +%{_bindir}/gusbcmd +%{_libdir}/libgusb.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/gusb-1/gusb/*.h +%{_includedir}/gusb-1/gusb.h +%{_datadir}/gir-1.0/GUsb-1.0.gir +%{_datadir}/vala/vapi/* + +%files help +%defattr(-,root,root) +%doc NEWS README.md +%{_datadir}/gtk-doc/html/gusb/* + +%changelog +* Wed Sep 4 2019 openEuler Buildteam - 0.3.0-4 +- Package init