98 lines
2.7 KiB
RPMSpec
98 lines
2.7 KiB
RPMSpec
|
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 <silvan.calarco@mambasoft.it>
|
||
|
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 <silvan.calarco@mambasoft.it> 1.0.19-2mamba
|
||
|
- rebuilt after multiple obsoletion problems causing loss of binary packages
|
||
|
|
||
|
* Fri Nov 28 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.19-1mamba
|
||
|
- update to 1.0.19
|
||
|
|
||
|
* Sat May 24 2014 Automatic Build System <autodist@mambasoft.it> 1.0.18-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Sep 14 2013 Automatic Build System <autodist@mambasoft.it> 1.0.17-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sun Jul 21 2013 Automatic Build System <autodist@mambasoft.it> 1.0.16-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Mon Jun 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.15-1mamba
|
||
|
- package created by silvan using the webbuild interface
|