libusb/libusb.spec

118 lines
3.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: libusb
Version: 1.0.22
Release: 1mamba
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: https://github.com/libusb/libusb.git/v%{version}/libusb-%{version}.tar.bz2
#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: libusb1-devel
Obsoletes: libusb1-devel
Provides: libusbx-devel
Obsoletes: libusbx-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
./autogen.sh
%configure
%make -j1
%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
* Thu Apr 05 2018 Automatic Build System <autodist@mambasoft.it> 1.0.22-1mamba
- automatic version update by autodist
* Wed Aug 30 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.21-2mamba
- libusb-devel: don't obsolete libusb-devel itself
* Tue Nov 22 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.21-1mamba
- update to 1.0.21
* Tue Oct 20 2015 Automatic Build System <autodist@mambasoft.it> 1.0.20-1mamba
- automatic version update by autodist
* Tue Dec 30 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.19-4mamba
- try to only obsolete libusbx
* Thu Dec 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.19-3mamba
- libusb-devel: provide libusbx-devel
* 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