Sync from SUSE:SLFO:Main libusb-compat revision 38aad5e3d73e1a35eb7f5858b1873003
This commit is contained in:
commit
d480aed1a5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
4
baselibs.conf
Normal file
4
baselibs.conf
Normal file
@ -0,0 +1,4 @@
|
||||
libusb-0_1-4
|
||||
obsoletes "libusb-<targettype> < 0.1.13"
|
||||
provides "libusb-<targettype> = 0.1.13"
|
||||
provides "libusb-1_0-features-in-0_1-api"
|
BIN
libusb-compat-0.1.8.tar.bz2
(Stored with Git LFS)
Normal file
BIN
libusb-compat-0.1.8.tar.bz2
(Stored with Git LFS)
Normal file
Binary file not shown.
224
libusb-compat.changes
Normal file
224
libusb-compat.changes
Normal file
@ -0,0 +1,224 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 29 09:37:23 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.1.8:
|
||||
* Merge PR https://github.com/libusb/libusb-compat-0.1/pull/10,
|
||||
https://github.com/libusb/libusb-compat-0.1/pull/13 and
|
||||
https://github.com/libusb/libusb-compat-0.1/pull/16
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 30 15:44:27 UTC 2021 - Stanislav Brabec <sbrabec@suse.com>
|
||||
|
||||
- Update to version 0.1.7:
|
||||
* Add library destructor to handle cleanup of libusb
|
||||
(obsoletes libusb-compat-add-destructor.patch)
|
||||
* Prevent libusb-1.0 symbol clash by dlopening libusb-1.0
|
||||
(obsoletes libusb-compat-hide-libusb-1_0.patch)
|
||||
* Other fixes
|
||||
(obsoletes libusb-compat-update-news.patch and
|
||||
libusb-compat-revert-atexit.patch)
|
||||
- New download URL.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 9 18:26:32 CEST 2015 - sbrabec@suse.com
|
||||
|
||||
- Fix libusb-compat-hide-libusb-1_0.patch: Ensure that inline
|
||||
functions inside libusb-1.0/libusb.h use wrapped calls.
|
||||
It should fix all triggered build failures.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 20 12:10:01 UTC 2015 - dimstar@opensuse.org
|
||||
|
||||
- Currently disable libusb-compat-hide-libusb-1_0.patch: it causes
|
||||
many more problems when linking to libusb-compat.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 10 19:21:28 CEST 2015 - sbrabec@suse.com
|
||||
|
||||
- Fix libusb-compat-hide-libusb-1_0.patch autoconf checks,
|
||||
especially with -Wl,--as-needed.
|
||||
- Use architecture-independent way to get libusb-1.0.so.0 rpm
|
||||
symbol.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 29 13:21:55 UTC 2015 - schwab@suse.de
|
||||
|
||||
- Fix dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 10:35:59 UTC 2015 - dgutu@suse.com
|
||||
|
||||
- Added PowerPC architectures to spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 22 13:09:26 UTC 2015 - jengelh@inai.de
|
||||
|
||||
- remove --with-pic, it is implicit for shared libraries anyway
|
||||
(and we do not build static libraries). Use %_smp_mflags for
|
||||
parallel build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 20 19:14:56 CEST 2015 - sbrabec@suse.cz
|
||||
|
||||
- Add upstream fixes:
|
||||
* Update NEWS (libusb-compat-update-news.patch).
|
||||
* Replace atexit() by library destructor
|
||||
(libusb-compat-revert-atexit.patch,
|
||||
libusb-compat-add-destructor.patch).
|
||||
- Hide libusb-1.0 symbols to prevent symbol clash
|
||||
(libusb-compat-hide-libusb-1_0.patch, boo#596411).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 28 20:26:04 CET 2014 - sbrabec@suse.cz
|
||||
|
||||
- New upstream, new home page.
|
||||
- Update to version 0.1.5:
|
||||
* devel package fixes
|
||||
* memory leak at exit fix
|
||||
* for more see ChangeLog
|
||||
- Add libusb-compat.rpmlintrc.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 15 14:37:55 UTC 2013 - mmeister@suse.com
|
||||
|
||||
- Added url as source.
|
||||
Please see http://en.opensuse.org/SourceUrls
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 2 18:52:15 UTC 2013 - coolo@suse.com
|
||||
|
||||
- update license to new format
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 26 20:30:02 CEST 2012 - sbrabec@suse.cz
|
||||
|
||||
- Update to version 0.1.4:
|
||||
* Fix usb_*_write() prototypes.
|
||||
* Fix usb_detach_kernel_driver_np() error mapping
|
||||
(libusb#42, bnc#683307).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 4 17:33:15 CEST 2012 - sbrabec@suse.cz
|
||||
|
||||
- Properly emulate error codes of usb_detach_kernel_driver_np()
|
||||
(bnc#683307).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 12 15:15:17 UTC 2012 - crrodriguez@opensuse.org
|
||||
|
||||
- Libraries back to %{_libdir}, /usr merge project
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 20 06:25:24 UTC 2011 - coolo@suse.com
|
||||
|
||||
- add libtool as buildrequire to avoid implicit dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 1 10:54:34 UTC 2011 - seife+obs@b1-systems.com
|
||||
|
||||
- move libusb-compat from /usr to / to make it usable for other
|
||||
packages and work around rpmlint stupidity
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 15 01:55:35 CET 2009 - jengelh@medozas.de
|
||||
|
||||
- add baselibs.conf as a source
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 6 18:58:58 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Updated to version 0.1.3:
|
||||
* improve libusb-config for cross-compiling
|
||||
- Removed support for parallel installation with libusb-0.1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 8 17:35:28 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Set shared library package version to 0.1.13 to be higher than
|
||||
the last libusb0 (bnc#519311#c8).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 29 15:45:25 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Fixed build with the latest autotools.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 22 12:08:05 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Updated to version 0.1.2:
|
||||
* handle libusb initialization failure
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 17 15:54:32 CEST 2009 - meissner@suse.de
|
||||
|
||||
- Fixed crashes of libgphoto2 (and other usb_find_busses() and
|
||||
usb_find_devices() users) when no USB device is in the system
|
||||
(like in a chroot without /sys, or on s390 or similar).
|
||||
bnc#432129 (again)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 5 12:16:57 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Updated to version 0.1.1:
|
||||
* improvements to match libusb-0.1 endpoint addressing behaviour
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 17 11:17:22 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Ensure use of read EP in usb_interrupt_read() (bnc#443861).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 15 18:19:35 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Fixed devel dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 15 13:31:55 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Worked around 'Duplicate License entries' breakage in Autobuild.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 17:42:31 CEST 2009 - sbrabec@suse.cz
|
||||
|
||||
- Updated to version 0.1.0:
|
||||
* Bug fixes.
|
||||
* Documentation of incompatibilities with libusb-0.1.
|
||||
- Implemented rpm build option FULLY_REPLACE_LIBUSB_0_1.
|
||||
- Another attempt to replace libusb-0.1 completely.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 12 15:40:48 CET 2008 - sbrabec@suse.cz
|
||||
|
||||
- Changed library soname to libusb-0.1 incompatible libusb-0.1.so.5
|
||||
allowing to install both in paralel. (bnc#443861, works around
|
||||
also bnc#432129 and bnc#439574)
|
||||
- Confllict with libusb-devel instead of obsoleting it.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 22 17:05:31 CEST 2008 - sbrabec@suse.cz
|
||||
|
||||
- Properly obsolete old implementation of the library (bnc#437768).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 8 15:16:57 CEST 2008 - meissner@suse.de
|
||||
|
||||
- handle case where usb_init() failed (ctx NULL), so
|
||||
we do not crash. bnc#432129
|
||||
- added more NULL ptr checks, where older libusb were
|
||||
more graceful and did not crash. bnc#432129
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 6 12:06:49 CEST 2008 - sbrabec@suse.cz
|
||||
|
||||
- Added baselibs.conf (bnc#432304).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 25 13:00:57 CEST 2008 - ro@suse.de
|
||||
|
||||
- fix debug package requires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 10 14:32:59 CEST 2008 - sbrabec@suse.cz
|
||||
|
||||
- New package providing compatibility layer for libusb.
|
||||
|
6
libusb-compat.rpmlintrc
Normal file
6
libusb-compat.rpmlintrc
Normal file
@ -0,0 +1,6 @@
|
||||
# We really don't want to capitalize "libusb".
|
||||
addFilter("summary-not-capitalized")
|
||||
# The library name does not match for a good reason.
|
||||
addFilter("no-dependency-on")
|
||||
# It is OK because versioning does not match.
|
||||
addFilter("conflicts-with-provides")
|
103
libusb-compat.spec
Normal file
103
libusb-compat.spec
Normal file
@ -0,0 +1,103 @@
|
||||
#
|
||||
# spec file for package libusb-compat
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define debug_package_requires libusb-0_1-5 = %{version}-%{release}
|
||||
Name: libusb-compat
|
||||
Version: 0.1.8
|
||||
Release: 0
|
||||
Summary: libusb-1.0 Compatibility Layer for libusb-0.1
|
||||
License: BSD-3-Clause AND LGPL-2.1-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://libusb.info/
|
||||
Source: https://github.com/libusb/libusb-compat-0.1/releases/download/v%{version}/%{name}-%{version}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
Source2: %{name}.rpmlintrc
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(libusb-1.0)
|
||||
|
||||
%description
|
||||
A compatibility layer allowing applications written for libusb-0.1 to
|
||||
work with libusb-1.0. libusb-compat-0.1 attempts to look, feel, smell
|
||||
and walk like libusb-0.1.
|
||||
|
||||
%package -n libusb-0_1-4
|
||||
# A better version than 0.1.12 provided by libusb-0_1:
|
||||
Version: 0.1.13
|
||||
Release: 0
|
||||
Summary: libusb-1.0 Compatibility Library for libusb-0.1
|
||||
Group: System/Libraries
|
||||
# libusb-compat-hide-libusb-1_0.patch hides this requirement
|
||||
Requires: %(rpm -q --provides libusb-1_0-0 | grep libusb-1.0.so.0)
|
||||
# Special symbol for packages, that use libusb-0.1 API, but use libusb-1.0 features:
|
||||
Provides: libusb-1_0-features-in-0_1-api
|
||||
# Update of libusb from openSUSE < 11.1 SLE < 11:
|
||||
# This symbol is also required by several third party packages!
|
||||
Provides: libusb = 0.1.13
|
||||
Obsoletes: libusb < 0.1.13
|
||||
|
||||
%description -n libusb-0_1-4
|
||||
A compatibility layer allowing applications written for libusb-0.1 to
|
||||
work with libusb-1.0. libusb-compat-0.1 attempts to look, feel, smell
|
||||
and walk like libusb-0.1.
|
||||
|
||||
%package devel
|
||||
Summary: libusb-1.0 Compatibility Layer for libusb-0.1
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: glibc-devel
|
||||
Requires: libusb-0_1-4 = 0.1.13
|
||||
Requires: libusb-1_0-devel
|
||||
Requires: libusb-1_0-features-in-0_1-api
|
||||
Conflicts: libusb-devel < 0.1.13
|
||||
# Update of libusb from openSUSE < 11.1 SLE < 11:
|
||||
Provides: libusb-devel = 0.1.13
|
||||
Obsoletes: libusb-devel < 0.1.13
|
||||
|
||||
%description devel
|
||||
A compatibility layer allowing applications written for libusb-0.1 to
|
||||
work with libusb-1.0. libusb-compat-0.1 attempts to look, feel, smell
|
||||
and walk like libusb-0.1.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
./bootstrap.sh
|
||||
%configure --disable-static
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%post -n libusb-0_1-4 -p /sbin/ldconfig
|
||||
%postun -n libusb-0_1-4 -p /sbin/ldconfig
|
||||
|
||||
%files -n libusb-0_1-4
|
||||
%license COPYING LICENSE
|
||||
%doc AUTHORS ChangeLog NEWS README
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%{_bindir}/*-config
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user