commit
bfb6976d28
@ -0,0 +1 @@
|
|||||||
|
SOURCES/libusb-compat-0.1.8.tar.bz2
|
@ -0,0 +1 @@
|
|||||||
|
b57a8e03b6eb623c8218cefcd1511d9ed1a00c1e SOURCES/libusb-compat-0.1.8.tar.bz2
|
@ -0,0 +1,25 @@
|
|||||||
|
Resolve multilib conflict in 'libusb-config' script by removing $libdir variable entirely.
|
||||||
|
|
||||||
|
http://fedoraproject.org/wiki/PackagingDrafts/MultilibTricks#Multiarch.2C_binaries_and_compilation_scripts
|
||||||
|
|
||||||
|
Author: Jan Vcelak <jvcelak@redhat.com>
|
||||||
|
Date: 2011-06-22
|
||||||
|
|
||||||
|
diff -uNPrp libusb-compat-0.1.3/libusb-config.in libusb-compat-0.1.3.multilib/libusb-config.in
|
||||||
|
--- libusb-compat-0.1.3/libusb-config.in 2009-06-23 23:45:33.000000000 +0200
|
||||||
|
+++ libusb-compat-0.1.3.multilib/libusb-config.in 2011-06-22 09:55:59.810188470 +0200
|
||||||
|
@@ -3,7 +3,6 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
includedir=@includedir@
|
||||||
|
-libdir=@libdir@
|
||||||
|
exec_prefix_set=no
|
||||||
|
|
||||||
|
usage()
|
||||||
|
@@ -77,5 +76,5 @@ if test "$echo_cflags" = "yes"; then
|
||||||
|
echo $includes
|
||||||
|
fi
|
||||||
|
if test "$echo_libs" = "yes"; then
|
||||||
|
- echo -L$libdir -lusb
|
||||||
|
+ echo -lusb
|
||||||
|
fi
|
@ -0,0 +1,140 @@
|
|||||||
|
## START: Set by rpmautospec
|
||||||
|
## (rpmautospec version 0.7.3)
|
||||||
|
## RPMAUTOSPEC: autorelease, autochangelog
|
||||||
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||||
|
release_number = 9;
|
||||||
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||||
|
print(release_number + base_release_number - 1);
|
||||||
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||||
|
## END: Set by rpmautospec
|
||||||
|
|
||||||
|
Name: libusb-compat-0.1
|
||||||
|
Version: 0.1.8
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: Compatibility shim around libusb-1.0 offering the old 0.1 API
|
||||||
|
# Automatically converted from old format: LGPLv2+ - review is highly recommended.
|
||||||
|
License: LicenseRef-Callaway-LGPLv2+
|
||||||
|
URL: https://github.com/libusb/libusb-compat-0.1
|
||||||
|
Source0: https://github.com/libusb/libusb-compat-0.1/releases/download/v%{version}/libusb-compat-%{version}.tar.bz2
|
||||||
|
Patch0: libusb-config-multilib.patch
|
||||||
|
BuildRequires: gcc libtool
|
||||||
|
BuildRequires: libusb1-devel
|
||||||
|
BuildRequires: make
|
||||||
|
Provides: deprecated()
|
||||||
|
# libusb was removed in F34
|
||||||
|
Provides: libusb = 1:%{version}-%{release}
|
||||||
|
Obsoletes: libusb < 1:%{version}-%{release}
|
||||||
|
# libusb-compat-0.1 version 0.1.6 and later dlopen'ed the library
|
||||||
|
Requires: libusb1%{?_isa}
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package provides a shim / compatibility layer on top of libusb1
|
||||||
|
offering the old 0.1 API for applications which do not have been ported
|
||||||
|
to the new 1.0 API yet. Where ever possible applications really should
|
||||||
|
use and / or be ported to the new 1.0 API instead of relying on this
|
||||||
|
compatibility library.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Obsoletes: libusb-devel < 1:%{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the header files, libraries and documentation needed to
|
||||||
|
develop applications that use libusb-0.1. However new applications should use
|
||||||
|
libusb-1.0 library instead of this one.
|
||||||
|
|
||||||
|
|
||||||
|
%package tests-examples
|
||||||
|
Summary: Tests and examples for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Provides: libusb-tests-examles = 1:%{version}-%{release}
|
||||||
|
Obsoletes: libusb-tests-examles < 1:%{version}-%{release}
|
||||||
|
|
||||||
|
%description tests-examples
|
||||||
|
This package contains tests and examples for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n libusb-compat-%{version}
|
||||||
|
autoreconf -ivf
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static --enable-examples-build
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/libusb.la
|
||||||
|
for i in lsusb testlibusb; do
|
||||||
|
install -m 755 examples/.libs/$i \
|
||||||
|
$RPM_BUILD_ROOT%{_bindir}/libusb-compat-0.1-$i
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
LD_LIBRARY_PATH=libusb/.libs ldd -r $RPM_BUILD_ROOT%{_bindir}/libusb-compat-0.1-lsusb
|
||||||
|
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-compat-0.1-lsusb
|
||||||
|
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-compat-0.1-testlibusb
|
||||||
|
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS NEWS README
|
||||||
|
%license COPYING
|
||||||
|
%{_libdir}/libusb-0.1.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/usb.h
|
||||||
|
%{_libdir}/libusb.so
|
||||||
|
%{_libdir}/pkgconfig/libusb.pc
|
||||||
|
%{_bindir}/libusb-config
|
||||||
|
|
||||||
|
%files tests-examples
|
||||||
|
%{_bindir}/libusb-compat-0.1-lsusb
|
||||||
|
%{_bindir}/libusb-compat-0.1-testlibusb
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Dec 23 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.1.8-9
|
||||||
|
- Rebuilt for MSVSphere 10
|
||||||
|
|
||||||
|
## START: Generated by rpmautospec
|
||||||
|
* Mon Sep 02 2024 Miroslav Suchý <msuchy@redhat.com> - 0.1.8-9
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 12 2022 Kate Hsuan <hpa@redhat.com> - 0.1.8-3
|
||||||
|
- Fix release ID.
|
||||||
|
|
||||||
|
* Fri Dec 09 2022 Kate Hsuan <hpa@redhat.com> - 0.1.8-1
|
||||||
|
- update to 0.1.8
|
||||||
|
|
||||||
|
* Fri Nov 11 2022 Kate Hsuan <hpa@redhat.com> - 0.1.8-1
|
||||||
|
- Update to 0.1.8-rc1
|
||||||
|
|
||||||
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Mar 07 2022 Benjamin Berg <bberg@redhat.com> - 0.1.7-8
|
||||||
|
- New libusb-compat-0.1 package replacing libusb
|
||||||
|
## END: Generated by rpmautospec
|
Loading…
Reference in new issue