104 lines
2.7 KiB
RPMSpec
104 lines
2.7 KiB
RPMSpec
%define majversion %(echo %version | cut -d. -f 1-2)
|
|
|
|
Name: libusb-compat
|
|
Version: 0.1.7
|
|
Release: 1mamba
|
|
Summary: A library to access USB devices
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://libusb.sourceforge.net/
|
|
Source: https://github.com/libusb/libusb-compat-0.1.git/v%{version}/libusb-compat-0.1-%{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-0.1-%{version}
|
|
./autogen.sh
|
|
|
|
%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
|
|
* Fri Feb 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.7-1mamba
|
|
- update to 0.1.7
|
|
|
|
* Mon Jun 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.5-1mamba
|
|
- update to 0.1.5
|
|
|
|
* Fri Sep 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.12-4mamba
|
|
- rebuilt to add pkgconfig provides
|
|
|
|
* Sat Jun 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.12-3mamba
|
|
- rebuilt as legacy package
|
|
|
|
* Thu Jun 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.12-2mamba
|
|
- specfile updated
|
|
|
|
* Thu Jun 29 2006 Davide Madrisan <davide.madrisan@qilinux.it> 0.1.12-1qilnx
|
|
- update to version 0.1.12 by autospec
|
|
|
|
* Wed Jun 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.1.10a-1qilnx
|
|
- update to version 0.1.10a by autospec
|
|
- specfile updates
|
|
- fixed license
|
|
|
|
* Thu Jan 01 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.7-1qilnx
|
|
- first build
|