From adc6085abc0b7097bdea8233552e3c769a1e07c8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:00:06 +0100 Subject: [PATCH] rebuilt after multiple obsoletion problems causing loss of binary packages [release 1.0.19-2mamba;Tue Dec 09 2014] --- README.md | 2 ++ libusb.spec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 libusb.spec diff --git a/README.md b/README.md index 7a1c320..6c8ce75 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libusb +libusbx is a library that provides generic access to USB devices. As a library, it is meant to be used by developers, to facilitate the development of applications that communicate with USB hardware. + diff --git a/libusb.spec b/libusb.spec new file mode 100644 index 0000000..f946748 --- /dev/null +++ b/libusb.spec @@ -0,0 +1,97 @@ +Name: libusb +Version: 1.0.19 +Release: 2mamba +Summary: A library that provides generic access to USB devices +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://libusbx.sourceforge.net/ +Source: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libdw-devel +BuildRequires: libudev-devel +## AUTOBUILDREQ-END +%ifarch x86_64 +Provides: libusb-1.0.so.2()(64bit) +%else +Provides: libusb-1.0.so.2 +%endif +Provides: libusbx +Obsoletes: libusbx +Provides: libusb1 +Obsoletes: libusb1 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libusbx is a library that provides generic access to USB devices. As a library, it is meant to be used by developers, to facilitate the development of applications that communicate with USB hardware. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: libusb-devel +Obsoletes: libusb-devel +Provides: libusb1-devel +Obsoletes: libusb1-devel +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +ln -sf libusb-1.0.so.0 %{buildroot}%{_libdir}/libusb-1.0.so.2 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libusb-1.0.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libusb-1.0 +%{_includedir}/libusb-1.0/libusb.h +%{_libdir}/libusb-1.0.a +%{_libdir}/libusb-1.0.la +%{_libdir}/libusb-1.0.so +%{_libdir}/pkgconfig/libusb-1.0.pc +%doc ChangeLog NEWS README TODO + +%changelog +* Tue Dec 09 2014 Silvan Calarco 1.0.19-2mamba +- rebuilt after multiple obsoletion problems causing loss of binary packages + +* Fri Nov 28 2014 Silvan Calarco 1.0.19-1mamba +- update to 1.0.19 + +* Sat May 24 2014 Automatic Build System 1.0.18-1mamba +- automatic update by autodist + +* Sat Sep 14 2013 Automatic Build System 1.0.17-1mamba +- automatic update by autodist + +* Sun Jul 21 2013 Automatic Build System 1.0.16-1mamba +- automatic update by autodist + +* Mon Jun 17 2013 Silvan Calarco 1.0.15-1mamba +- package created by silvan using the webbuild interface