From 2736b930f89b602f202b04cce462bef42dd65cdd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:00:17 +0100 Subject: [PATCH] update to 0.1.5 [release 0.1.5-1mamba;Mon Jun 17 2013] --- README.md | 2 + libusb-compat.spec | 99 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 libusb-compat.spec diff --git a/README.md b/README.md index 137e4ba..a066aeb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libusb-compat +A library for use by user level applications to access USB devices regardless of OS. + diff --git a/libusb-compat.spec b/libusb-compat.spec new file mode 100644 index 0000000..4d50677 --- /dev/null +++ b/libusb-compat.spec @@ -0,0 +1,99 @@ +%define majversion %(echo %version | cut -d. -f 1-2) + +Name: libusb-compat +Version: 0.1.5 +Release: 1mamba +Summary: A library to access USB devices +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://libusb.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/libusb/libusb-compat-%{majversion}/libusb-compat-%{version}/libusb-compat-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libusb-devel +BuildRequires: udev-devel +## AUTOBUILDREQ-END +%if "%{stage1}" != "1" +BuildRequires: pkgconfig +BuildRequires: graphviz +BuildRequires: doxygen +%endif +Provides: libusb0 +Obsoletes: libusb0 +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} +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 need for development. + +%prep +%setup -q -n libusb-compat-%{version} + +%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}/*.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_bindir}/libusb-config +%{_includedir}/*.h +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so +%{_libdir}/pkgconfig/libusb.pc +%doc ChangeLog LICENSE README + +%changelog +* 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 + +* Thu Jan 01 2003 Silvan Calarco 0.1.7-1qilnx +- first build