2024-01-05 23:40:52 +01:00
|
|
|
%define pkgver %(echo %version | tr _ -)
|
|
|
|
Name: hidapi
|
2024-01-05 23:40:53 +01:00
|
|
|
Version: 0.13.0
|
2024-01-05 23:40:52 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A library which allows an application to interface with USB and Bluetooth HID-Class devices
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 23:40:53 +01:00
|
|
|
URL: https://github.com/libusb/hidapi
|
2024-01-05 23:40:52 +01:00
|
|
|
Source: https://github.com/libusb/hidapi.git/hidapi-%{version}/hidapi-%{version}.tar.bz2
|
2024-01-05 23:40:52 +01:00
|
|
|
License: BSD, GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
A multi-platform library which allows an application to interface with USB and Bluetooth HID-Class devices on Windows, Linux, FreeBSD, and Mac OS X.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: A library which allows an application to interface with USB and Bluetooth HID-Class devices
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
A multi-platform library which allows an application to interface with USB and Bluetooth HID-Class devices on Windows, Linux, FreeBSD, and Mac OS X.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 23:40:52 +01:00
|
|
|
%setup -q
|
2024-01-05 23:40:53 +01:00
|
|
|
./bootstrap
|
2024-01-05 23:40:52 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libhidapi-hidraw.so.*
|
|
|
|
%{_libdir}/libhidapi-libusb.so.*
|
2024-01-05 23:40:52 +01:00
|
|
|
%dir %{_datadir}/doc/hidapi
|
|
|
|
%{_datadir}/doc/hidapi/AUTHORS*.txt
|
|
|
|
%{_datadir}/doc/hidapi/LICENSE*.txt
|
2024-01-05 23:40:52 +01:00
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/hidapi
|
2024-01-05 23:40:53 +01:00
|
|
|
%{_includedir}/hidapi/*.h
|
2024-01-05 23:40:52 +01:00
|
|
|
%{_libdir}/libhidapi-hidraw.a
|
|
|
|
%{_libdir}/libhidapi-hidraw.so
|
|
|
|
%{_libdir}/libhidapi-libusb.a
|
|
|
|
%{_libdir}/libhidapi-libusb.so
|
|
|
|
%{_libdir}/pkgconfig/hidapi-hidraw.pc
|
|
|
|
%{_libdir}/pkgconfig/hidapi-libusb.pc
|
2024-01-05 23:40:52 +01:00
|
|
|
%{_datadir}/doc/hidapi/README.md
|
2024-01-05 23:40:52 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:40:53 +01:00
|
|
|
* Mon Jan 09 2023 Automatic Build System <autodist@mambasoft.it> 0.13.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:40:53 +01:00
|
|
|
* Thu May 26 2022 Automatic Build System <autodist@mambasoft.it> 0.12.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:40:53 +01:00
|
|
|
* Tue Jan 04 2022 Automatic Build System <autodist@mambasoft.it> 0.11.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:40:53 +01:00
|
|
|
* Mon Oct 04 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11.0-1mamba
|
|
|
|
- update to 0.11.0
|
|
|
|
|
2024-01-05 23:40:52 +01:00
|
|
|
* Mon Nov 30 2020 Automatic Build System <autodist@mambasoft.it> 0.10.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:40:52 +01:00
|
|
|
* Thu Nov 12 2020 Automatic Build System <autodist@mambasoft.it> 0.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:40:52 +01:00
|
|
|
* Thu Aug 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-1mamba
|
|
|
|
- update to 0.9.0
|
|
|
|
|
2024-01-05 23:40:52 +01:00
|
|
|
* Wed Feb 01 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0_rc1-1mamba
|
|
|
|
- package created using the webbuild interface
|