%define majversion %(echo %version | cut -d. -f 1-2) Name: libusb0 Version: 0.1.12 Release: 4mamba Summary: A library to access USB devices Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://libusb.sourceforge.net/ Source: http://ovh.dl.sourceforge.net/sourceforge/libusb/libusb-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END %if "%{stage1}" != "1" BuildRequires: pkgconfig BuildRequires: graphviz BuildRequires: doxygen %endif BuildRoot: %{_tmppath}/%{name}-%{version}-root %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} %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 need for development. %prep %setup -q -n libusb-%{version} %build # FIXME: docs build stop with errors %configure --disable-build-docs %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}/*.so.* %doc AUTHORS ChangeLog COPYING LICENSE README %files devel %defattr(-,root,root) %{_bindir}/libusb-config %{_includedir}/*.h %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/libusb.pc %changelog * 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 * Thu Jan 01 2003 Silvan Calarco 0.1.7-1qilnx - first build