2024-01-06 06:00:17 +01:00
|
|
|
%define majversion %(echo %version | cut -d. -f 1-2)
|
|
|
|
|
|
|
|
Name: libusb-compat
|
2024-01-06 06:00:18 +01:00
|
|
|
Version: 0.1.8
|
2024-01-06 06:00:17 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A library to access USB devices
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 06:00:18 +01:00
|
|
|
URL: https://libusb.info/
|
2024-01-06 06:00:17 +01:00
|
|
|
Source: https://github.com/libusb/libusb-compat-0.1.git/v%{version}/libusb-compat-0.1-%{version}.tar.bz2
|
2024-01-06 06:00:17 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: doxygen
|
|
|
|
%endif
|
|
|
|
Provides: libusb0
|
2024-01-06 06:00:18 +01:00
|
|
|
Obsoletes: libusb0 < 0.1.8
|
2024-01-06 06:00:17 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A library for use by user level applications to access USB devices regardless of OS.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Devel package for libusb
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: libusb0-devel
|
|
|
|
Obsoletes: libusb0-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
A library for use by user level applications to access USB devices regardless of OS This is the devel package.
|
2024-01-06 06:00:18 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-06 06:00:17 +01:00
|
|
|
|
2024-01-06 06:00:18 +01:00
|
|
|
%debug_package
|
2024-01-06 06:00:17 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-06 06:00:17 +01:00
|
|
|
%setup -q -n libusb-compat-0.1-%{version}
|
|
|
|
./autogen.sh
|
2024-01-06 06:00:17 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# FIXME: docs build stop with errors
|
|
|
|
#--disable-build-docs
|
|
|
|
%configure
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 06:00:18 +01:00
|
|
|
%{_libdir}/libusb-0.1.so.*
|
2024-01-06 06:00:17 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/libusb-config
|
2024-01-06 06:00:18 +01:00
|
|
|
%{_includedir}/usb.h
|
|
|
|
%{_libdir}/libusb.a
|
|
|
|
%{_libdir}/libusb.so
|
2024-01-06 06:00:17 +01:00
|
|
|
%{_libdir}/pkgconfig/libusb.pc
|
|
|
|
%doc ChangeLog LICENSE README
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 06:00:18 +01:00
|
|
|
* Sun Nov 20 2022 Automatic Build System <autodist@mambasoft.it> 0.1.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:00:17 +01:00
|
|
|
* Fri Feb 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.7-1mamba
|
|
|
|
- update to 0.1.7
|
|
|
|
|
2024-01-06 06:00:17 +01:00
|
|
|
* Mon Jun 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.5-1mamba
|
|
|
|
- update to 0.1.5
|
|
|
|
|
|
|
|
* Fri Sep 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.12-4mamba
|
|
|
|
- rebuilt to add pkgconfig provides
|
|
|
|
|
|
|
|
* Sat Jun 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.12-3mamba
|
|
|
|
- rebuilt as legacy package
|
|
|
|
|
|
|
|
* Thu Jun 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.12-2mamba
|
|
|
|
- specfile updated
|
|
|
|
|
|
|
|
* Thu Jun 29 2006 Davide Madrisan <davide.madrisan@qilinux.it> 0.1.12-1qilnx
|
|
|
|
- update to version 0.1.12 by autospec
|
|
|
|
|
|
|
|
* Wed Jun 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.1.10a-1qilnx
|
|
|
|
- update to version 0.1.10a by autospec
|
|
|
|
- specfile updates
|
|
|
|
- fixed license
|
|
|
|
|
2024-01-06 06:00:18 +01:00
|
|
|
* Wed Jan 01 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.7-1qilnx
|
2024-01-06 06:00:17 +01:00
|
|
|
- first build
|