[hidapi/f20] Initial import of hidapi package.

Scott Talbert swt2c at fedoraproject.org
Fri Nov 1 00:58:17 UTC 2013


commit 218e56cb61a31d578cdc610b3f67de1bbe427646
Author: Scott Talbert <swt at techie.net>
Date:   Thu Oct 31 20:58:23 2013 -0400

    Initial import of hidapi package.

 .gitignore  |    1 +
 hidapi.spec |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8ebfaac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hidapi-0.7.0-a88c724.tar.gz
diff --git a/hidapi.spec b/hidapi.spec
new file mode 100644
index 0000000..6c3f82b
--- /dev/null
+++ b/hidapi.spec
@@ -0,0 +1,69 @@
+%global commit a88c7244d632ed238b829968be9b765605b53c34
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           hidapi
+Version:        0.7.0
+Release:        2.%{shortcommit}%{?dist}
+Summary:        Library for communicating with USB and Bluetooth HID devices
+
+Group:          Development/Libraries
+License:        GPLv3 or BSD
+URL:            http://www.signal11.us/oss/hidapi/
+
+Source0:        https://github.com/signal11/hidapi/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: libudev-devel
+BuildRequires: libusb1-devel
+BuildRequires: m4
+
+%description
+HIDAPI is 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.  On Linux, either the hidraw or the libusb back-end can be used. There are
+trade-offs and the functionality supported is slightly different.
+
+%package devel
+Summary: Development files for hidapi
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description -n hidapi-devel
+This package contains development files for hidapi which provides access to
+USB and Bluetooth HID-class devices.
+
+%prep
+%setup -qn %{name}-%{commit}
+
+%build
+autoreconf -vif
+%configure --disable-testgui --disable-static
+make %{?_smp_mflags} V=1
+
+%install
+make install DESTDIR=%{buildroot}
+
+rm -f %{buildroot}%{_libdir}/*.la
+rm -rf %{buildroot}%{_defaultdocdir}/%{name}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%doc AUTHORS.txt README.txt LICENSE*.txt
+%{_libdir}/libhidapi-*.so.*
+
+%files devel
+%{_includedir}/hidapi
+%{_libdir}/libhidapi-hidraw.so
+%{_libdir}/libhidapi-libusb.so
+%{_libdir}/pkgconfig/hidapi-hidraw.pc
+%{_libdir}/pkgconfig/hidapi-libusb.pc
+
+%changelog
+* Tue Oct 29 2013 Scott Talbert <swt at techie.net> - 0.7.0-2.a88c724
+- Incorporate review comments
+
+* Wed Oct 23 2013 Scott Talbert <swt at techie.net> - 0.7.0-1.a88c724
+- Initial packaging of hidapi library
diff --git a/sources b/sources
index e69de29..97c4a51 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+62f3b830865edc4439a75ea1cd0d75ad  hidapi-0.7.0-a88c724.tar.gz


More information about the scm-commits mailing list