commit 6f25c8bba46d9cbae7fbb129d951f0728adec918 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:58:41 2019 -0400 Package init diff --git a/libusb-1.0.22.tar.bz2 b/libusb-1.0.22.tar.bz2 new file mode 100644 index 0000000..a5f638c Binary files /dev/null and b/libusb-1.0.22.tar.bz2 differ diff --git a/libusbx.spec b/libusbx.spec new file mode 100644 index 0000000..4b3cff3 --- /dev/null +++ b/libusbx.spec @@ -0,0 +1,61 @@ +#Resolve name conflict with libusb-compat-0.1 +%global source libusb + +Name: libusbx +Version: 1.0.22 +Release: 2 +Summary: Library for accessing USB devices +License: LGPLv2+ +URL: http://libusb.info +Source0: https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.tar.bz2 + +BuildRequires: systemd-devel doxygen libtool gdb + +%description +libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD and Haiku userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING). + +libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information. + +%package devel +Summary: %{name} libs and docs files for development +Requires: %{name}%{?_isa} = %{version}-%{release} +Provides: libusb1-devel = %{version}-%{release} +Provides: libusb1-devel-doc = %{version}-%{release} +Provides: libusbx-devel-doc +Obsoletes: libusb1-devel <= 1.0.9 +Obsoletes: libusb1-devel-doc <= 1.0.22-1 +Obsoletes: libusbx-devel-doc + +%description devel +The %{name}-devel package contains libraries and header files. + +%prep +%autosetup -n %{source}-%{version} -p1 -Sgit +mkdir -p m4 +autoreconf -ivf + +%build +%configure --disable-static --enable-examples-build +%make_build +make docs -C doc + +%install +%make_install + +%ldconfig_scriptlets + +%files +%doc AUTHORS README ChangeLog +%license COPYING +%{_libdir}/*.so.* +%exclude %{_libdir}/*.la + +%files devel +%doc doc/html examples/*.c +%{_includedir}/libusb-1.0 +%{_libdir}/*.so +%{_libdir}/pkgconfig/libusb-1.0.pc + +%changelog +* Sat Aug 31 2019 suweifeng - 1.0.22-2 +- Package init