Dominique Leuenberger 2018-03-26 10:11:39 +00:00 committed by Git OBS Bridge
commit 9e1aa135b2
4 changed files with 51 additions and 28 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7dce9cce9a81194b7065ee912bcd55eeffebab694ea403ffb91b67db66b1824b
size 607417

3
libusb-1.0.22.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157
size 598833

View File

@ -1,3 +1,32 @@
-------------------------------------------------------------------
Sun Mar 25 10:05:47 UTC 2018 - mardnh@gmx.de
- Update to version 1.0.22
* Core: Refactor code related to transfer flags and timeout handling
* Linux: Support preallocating kernel memory for zerocopy USB
* Linux: Deal with receiving POLLERR before all transfers have completed
* 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
-------------------------------------------------------------------
Thu Mar 22 09:10:18 UTC 2018 - jengelh@inai.de
- Fix SRPM group.
-------------------------------------------------------------------
Tue Mar 20 12:18:32 UTC 2018 - tchvatal@suse.com
- Use dos2unix to generate the non-windows trailing on files
- Remove sle11 support as it got borged with last commit and
we don't mostly need it to build there
-------------------------------------------------------------------
Tue Mar 20 13:10:13 CET 2018 - kukuk@suse.de
- Use %license instead of %doc [bsc#1082318]
-------------------------------------------------------------------
Sun Oct 30 09:21:25 UTC 2016 - mardnh@gmx.de

View File

@ -1,7 +1,7 @@
#
# spec file for package libusb-1_0
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@ -16,22 +16,20 @@
#
%define _name libusb
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
Name: libusb-1_0
Version: 1.0.21
Version: 1.0.22
Release: 0
Summary: USB Library
License: LGPL-2.1+
Group: System/Libraries
%define _name libusb
Url: http://libusb.info/
License: LGPL-2.1-or-later
Group: System/Hardware
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: dos2unix
BuildRequires: pkgconfig
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.
@ -54,32 +52,28 @@ 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
dos2unix NEWS
%build
%configure\
%if 0%{?suse_version} < 1200
--disable-udev\
%endif
--with-pic\
--disable-static
make
%configure \
--with-pic \
--disable-silent-rules \
--disable-static
make %{?_smp_mflags}
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%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
%license COPYING
%doc AUTHORS ChangeLog NEWS README TODO
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc PORTING
%{_includedir}/libusb-1.0
%{_libdir}/*.so