You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libusb-compat-0.1/SPECS/libusb-compat-0.1.spec

141 lines
4.6 KiB

## 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