From b1205616ee2a8a3a10f9bd78bc6ec1ec459282275484eef04b146a92c15a5ef7 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 10 Feb 2014 21:05:19 +0000 Subject: [PATCH] Accepting request 215237 from home:matwey:atsamd20_xpro A Simple library for communicating with USB and Bluetooth HID devices. Required by recent version of OpenOCD. OBS-URL: https://build.opensuse.org/request/show/215237 OBS-URL: https://build.opensuse.org/package/show/hardware/hidapi?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + _service | 13 +++++ hidapi-0.8.0rc1.tar.bz2 | 3 ++ hidapi.changes | 5 ++ hidapi.spec | 104 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 149 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 hidapi-0.8.0rc1.tar.bz2 create mode 100644 hidapi.changes create mode 100644 hidapi.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..0579b14 --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + https://github.com/signal11/hidapi.git + git + hidapi + hidapi-0.8.0-rc1 + 0.8.0rc1 + + + *.tar + bz2 + + diff --git a/hidapi-0.8.0rc1.tar.bz2 b/hidapi-0.8.0rc1.tar.bz2 new file mode 100644 index 0000000..65f7b08 --- /dev/null +++ b/hidapi-0.8.0rc1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a688591272b412e2ae1ad9c3590653e3a5231dc4ba195a86931fd8b72b48b640 +size 83684 diff --git a/hidapi.changes b/hidapi.changes new file mode 100644 index 0000000..4af5f11 --- /dev/null +++ b/hidapi.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Jan 27 08:28:30 UTC 2014 - matwey.kornilov@gmail.com + +- Initial version + diff --git a/hidapi.spec b/hidapi.spec new file mode 100644 index 0000000..75b5d46 --- /dev/null +++ b/hidapi.spec @@ -0,0 +1,104 @@ +# +# spec file for package +# +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define sover 0 + +Name: hidapi +Version: 0.8.0rc1 +Release: 0 +License: GPL-3.0+ or BSD-3-Clause +Summary: Simple library for communicating with USB and Bluetooth HID devices +Url: https://github.com/signal11/hidapi +Group: System/Libraries +Source: %{name}-%{version}.tar.bz2 +BuildRequires: make gcc-c++ +BuildRequires: libtool automake autoconf +BuildRequires: libudev-devel +BuildRequires: libusb-1_0-devel +BuildRequires: pkg-config +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +HIDAPI is a library which allows an application to interface with USB and Bluetooth HID-Class devices. +While it can be used to communicate with standard HID devices like keyboards, mice, and Joysticks, it is most useful when used with custom (Vendor-Defined) HID devices. + +%package -n libhidapi-devel +Summary: Development libraries and header files for hidapi +Group: Development/Libraries/C and C++ +Requires: glibc-devel +Requires: libudev-devel +Requires: libusb-1_0-devel +Requires: libhidapi-devel = %{version} +Requires: libhidapi-hidraw%{sover} = %{version} +Requires: libhidapi-libusb%{sover} = %{version} + +%description -n libhidapi-devel +This package contains the header files and libraries for building +programs using the hidapi library. + +%package -n libhidapi-hidraw%{sover} +Summary: Simple library for communicating with USB and Bluetooth HID devices +Group: System/Libraries + +%description -n libhidapi-hidraw%{sover} +HIDAPI is a library which allows an application to interface with USB and Bluetooth HID-Class devices. + +%package -n libhidapi-libusb%{sover} +Summary: Simple library for communicating with USB and Bluetooth HID devices +Group: System/Libraries + +%description -n libhidapi-libusb%{sover} +HIDAPI is a library which allows an application to interface with USB and Bluetooth HID-Class devices. + +%prep +%setup -q + +%build +./bootstrap +%configure --disable-static --docdir=%{_defaultdocdir}/%{name} +make %{?_smp_mflags} + +%install +%make_install + +%post -n libhidapi-libusb%{sover} -p /sbin/ldconfig +%post -n libhidapi-hidraw%{sover} -p /sbin/ldconfig + +%postun -n libhidapi-libusb%{sover} -p /sbin/ldconfig +%postun -n libhidapi-hidraw%{sover} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc README.txt LICENSE*.txt AUTHORS.txt HACKING.txt + +%files -n libhidapi-devel +%defattr(-,root,root) +%{_includedir}/hidapi +%{_libdir}/pkgconfig/* +%{_libdir}/libhidapi-*.so +%{_libdir}/libhidapi-*.la + +%files -n libhidapi-hidraw%{sover} +%defattr(-,root,root) +%{_libdir}/libhidapi-hidraw.so.%{sover}* + +%files -n libhidapi-libusb%{sover} +%defattr(-,root,root) +%{_libdir}/libhidapi-libusb.so.%{sover}* + +%changelog +