- Update to version 1.0.21 * Core: Refactor code related to transfer flags and timeout handling * Darwin: Ignore root hub simulation devices * Darwin: Improved support for OS X El Capitan * Darwin: Work around devices with buggy endpoint descriptors * Darwin: Do not use objc_registerThreadWithCollector after its deprecation * Darwin: Use C11 atomics on 10.12+ as the OS atomics are now deprecated * Linux: Support preallocating kernel memory for zerocopy USB * Linux: Deal with receiving POLLERR before all transfers have completed * Solaris: Add solaris backend * Windows: Add Visual Studio 2015 support * Windows: Add usbdk backend * Prevent attempts to recursively handle events * Fix race condition in handle_timeout() * Allow transferred argument to be optional in bulk APIs * Various other bug fixes and improvements - Fix source url OBS-URL: https://build.opensuse.org/request/show/437887 OBS-URL: https://build.opensuse.org/package/show/hardware/libusb-1_0?expand=0&rev=48
89 lines
2.3 KiB
RPMSpec
89 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package libusb-1_0
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libusb-1_0
|
|
Version: 1.0.21
|
|
Release: 0
|
|
Summary: USB Library
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
%define _name libusb
|
|
Url: http://libusb.info/
|
|
Source: https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2
|
|
Source1: baselibs.conf
|
|
BuildRequires: pkg-config
|
|
%if 0%{?suse_version} >= 1200
|
|
BuildRequires: pkgconfig(libudev)
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
|
|
|
|
%description
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
%package -n libusb-1_0-0
|
|
Summary: USB Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libusb-1_0-0
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
%package devel
|
|
Summary: USB Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libusb-1_0-0 = %{version}
|
|
|
|
%description devel
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
%prep
|
|
%setup -q -n %{_name}-%{version}
|
|
tr -d '\r' <NEWS >NEWS.unix ; touch -r NEWS NEWS.unix ; mv NEWS.unix NEWS
|
|
|
|
%build
|
|
%configure\
|
|
%if 0%{?suse_version} < 1200
|
|
--disable-udev\
|
|
%endif
|
|
--with-pic\
|
|
--disable-static
|
|
make
|
|
|
|
%install
|
|
%makeinstall
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -n libusb-1_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libusb-1_0-0 -p /sbin/ldconfig
|
|
|
|
%files -n libusb-1_0-0
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc PORTING
|
|
%{_includedir}/libusb-1.0
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|