%define majversion %(echo %version | cut -d. -f 1-2) Name: libusb-compat Version: 0.1.8 Release: 1mamba Summary: A library to access USB devices Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://libusb.info/ Source: https://github.com/libusb/libusb-compat-0.1.git/v%{version}/libusb-compat-0.1-%{version}.tar.bz2 License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libusb-devel ## AUTOBUILDREQ-END %if "%{stage1}" != "1" BuildRequires: pkgconfig BuildRequires: graphviz BuildRequires: doxygen %endif Provides: libusb0 Obsoletes: libusb0 < 0.1.8 %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. This package contains static libraries and header files needed for development. %debug_package %prep %setup -q -n libusb-compat-0.1-%{version} ./autogen.sh %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) %{_libdir}/libusb-0.1.so.* %doc AUTHORS COPYING %files devel %defattr(-,root,root) %{_bindir}/libusb-config %{_includedir}/usb.h %{_libdir}/libusb.a %{_libdir}/libusb.so %{_libdir}/pkgconfig/libusb.pc %doc ChangeLog LICENSE README %changelog * Sun Nov 20 2022 Automatic Build System 0.1.8-1mamba - automatic version update by autodist * Fri Feb 14 2020 Silvan Calarco 0.1.7-1mamba - update to 0.1.7 * Mon Jun 17 2013 Silvan Calarco 0.1.5-1mamba - update to 0.1.5 * Fri Sep 03 2010 Silvan Calarco 0.1.12-4mamba - rebuilt to add pkgconfig provides * Sat Jun 27 2009 Silvan Calarco 0.1.12-3mamba - rebuilt as legacy package * Thu Jun 05 2008 Silvan Calarco 0.1.12-2mamba - specfile updated * Thu Jun 29 2006 Davide Madrisan 0.1.12-1qilnx - update to version 0.1.12 by autospec * Wed Jun 08 2005 Davide Madrisan 0.1.10a-1qilnx - update to version 0.1.10a by autospec - specfile updates - fixed license * Wed Jan 01 2003 Silvan Calarco 0.1.7-1qilnx - first build