libusbx/libusbx.spec

89 lines
2.9 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:58:41 -04:00
#Resolve name conflict with libusb-compat-0.1
%global source libusb
Name: libusbx
2020-07-16 17:12:53 +08:00
Version: 1.0.23
2021-07-23 16:03:12 +08:00
Release: 4
2019-09-30 10:58:41 -04:00
Summary: Library for accessing USB devices
License: LGPLv2+
URL: http://libusb.info
2020-07-16 17:12:53 +08:00
Source0: https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.tar.bz2
2019-09-30 10:58:41 -04:00
Patch1: 0001-fix-constant-not-in-range-of-enumerated-type.patch
Patch2: 0002-Solaris-backend-is-not-correctly-setting-the-one-tra.patch
Patch3: 0003-Solaris-fails-to-find-USB-devices-on-SPARC-platform.patch
Patch4: 0004-Linux-backend-fix-ressource-leak.patch
Patch5: 0005-core-fix-build-warning-on-newer-versions-of-gcc.patch
Patch6: 0006-core-Fix-libusb_get_max_iso_packet_size-for-superspe.patch
Patch7: 0007-core-Do-not-attempt-to-destroy-a-default-context-tha.patch
Patch8: 0008-linux_usbfs-Wait-until-all-URBs-have-been-reaped-bef.patch
2021-07-23 16:03:12 +08:00
BuildRequires: systemd-devel doxygen libtool
2019-09-30 10:58:41 -04:00
%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
2019-09-30 10:58:41 -04:00
mkdir -p m4
autoreconf -ivf
%build
%configure --disable-static --enable-examples-build
%make_build
make docs -C doc
2020-11-04 20:59:23 +08:00
%check
make check
2019-09-30 10:58:41 -04:00
%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
2021-07-23 16:03:12 +08:00
* Fri Jul 23 2021 zhouwenpei <zhouwenpei1@hauwei.com> - 1.0.23-4
- remove unnecessary build require.
2020-11-04 20:59:23 +08:00
* Wed Nov 4 2020 lixiaokeng <lixiaokeng@hauwei.com> - 1.0.23-3
- add make check
* Mon Jul 27 2020 Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> - 1.0.23-2
- backport upstream patches.
2020-07-16 17:12:53 +08:00
* Thu Jul 16 2020 zhangyouming <zhangyouming4@huawei.com> - 1.0.23-1
- upgrade form 1.0.22 to 1.0.23
* Wed Mar 25 2020 hy-euler <eulerstoragemt@huawei.com> - 1.0.22-3
- delete -Sgit in %autosetup
2019-09-30 10:58:41 -04:00
* Sat Aug 31 2019 suweifeng <suweifeng1@huawei.com> - 1.0.22-2
- Package init