From 48cf6b862195765a5bfa2ac08aeb11246ee7421a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:40:52 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.8.0_rc1-1mamba;Wed Feb 01 2017] --- README.md | 2 ++ hidapi.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 hidapi.spec diff --git a/README.md b/README.md index 5df126e..c1bda62 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # hidapi +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. + diff --git a/hidapi.spec b/hidapi.spec new file mode 100644 index 0000000..0aa616b --- /dev/null +++ b/hidapi.spec @@ -0,0 +1,91 @@ +%define pkgver %(echo %version | tr _ -) +Name: hidapi +Version: 0.8.0_rc1 +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 +URL: http://www.signal11.us/oss/hidapi/ +Source: https://github.com/signal11/hidapi/archive/hidapi-%{pkgver}.tar.gz +License: BSD, GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcap-devel +BuildRequires: libpcre-devel +BuildRequires: libselinux-devel +BuildRequires: libsepol-devel +BuildRequires: libudev-devel +BuildRequires: libusb-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 +%setup -q -n %{name}-hidapi-0.8.0-rc1 + +%build +./bootstrap +%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.* +%dir %{_datadir}/doc/hidapi/AUTHORS.txt +%{_datadir}/doc/hidapi/LICENSE-bsd.txt +%{_datadir}/doc/hidapi/LICENSE-gpl3.txt +%{_datadir}/doc/hidapi/LICENSE-orig.txt +%{_datadir}/doc/hidapi/LICENSE.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/hidapi +%{_includedir}/hidapi/hidapi.h +%{_libdir}/libhidapi-hidraw.a +%{_libdir}/libhidapi-hidraw.la +%{_libdir}/libhidapi-hidraw.so +%{_libdir}/libhidapi-libusb.a +%{_libdir}/libhidapi-libusb.la +%{_libdir}/libhidapi-libusb.so +%{_libdir}/pkgconfig/hidapi-hidraw.pc +%{_libdir}/pkgconfig/hidapi-libusb.pc +%{_datadir}/doc/hidapi/README.txt + +%changelog +* Wed Feb 01 2017 Silvan Calarco 0.8.0_rc1-1mamba +- package created using the webbuild interface