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
This commit is contained in:
commit
b1205616ee
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
13
_service
Normal file
13
_service
Normal file
@ -0,0 +1,13 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/signal11/hidapi.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">hidapi</param>
|
||||
<param name="revision">hidapi-0.8.0-rc1</param>
|
||||
<param name="versionformat">0.8.0rc1</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">bz2</param>
|
||||
</service>
|
||||
</services>
|
3
hidapi-0.8.0rc1.tar.bz2
Normal file
3
hidapi-0.8.0rc1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a688591272b412e2ae1ad9c3590653e3a5231dc4ba195a86931fd8b72b48b640
|
||||
size 83684
|
5
hidapi.changes
Normal file
5
hidapi.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 27 08:28:30 UTC 2014 - matwey.kornilov@gmail.com
|
||||
|
||||
- Initial version
|
||||
|
104
hidapi.spec
Normal file
104
hidapi.spec
Normal file
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user