Accepting request 717440 from home:z3ntu:branches:hardware

Update hidapi to 0.9.0

Due to the absence of the original maintainer, the project was forked to the libusb organization and is being maintained there.
(v2)

OBS-URL: https://build.opensuse.org/request/show/717440
OBS-URL: https://build.opensuse.org/package/show/hardware/hidapi?expand=0&rev=6
This commit is contained in:
Matwey Kornilov 2019-07-22 08:05:36 +00:00 committed by Git OBS Bridge
parent 835c834dbd
commit d44e131ec5
6 changed files with 44 additions and 36 deletions

View File

@ -1,13 +1,12 @@
<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.0~rc1</param>
<service name="download_url">
<param name="protocol">https</param>
<param name="host">github.com</param>
<param name="path">/libusb/hidapi/archive/hidapi-0.9.0.tar.gz</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">bz2</param>
</service>
</services>
<service name="verify_file">
<param name="file">_service:download_url:hidapi-0.9.0.tar.gz</param>
<param name="verifier">sha256</param>
<param name="checksum">630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652</param>
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652
size 112963

View File

@ -1,13 +1,13 @@
Index: hidapi-0.8.0~rc1/Makefile.am
===================================================================
--- hidapi-0.8.0~rc1.orig/Makefile.am
+++ hidapi-0.8.0~rc1/Makefile.am
@@ -39,14 +39,6 @@ endif
diff --git a/Makefile.am b/Makefile.am
index a6e47e8..dd92e87 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,14 +43,6 @@ endif
EXTRA_DIST = udev doxygen
-dist_doc_DATA = \
- README.txt \
- README.md \
- AUTHORS.txt \
- LICENSE-bsd.txt \
- LICENSE-gpl3.txt \

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1c9c94b373e8ca30328dd1d7de3413479dc32e55f430c50d5e5e4b00939bb7f8
size 83586

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 22 07:02:32 UTC 2019 - luca@z3ntu.xyz
- Update to 0.9.0
- Switch upstream to libusb/hidapi because the original maintainer is not active anymore
-------------------------------------------------------------------
Mon Mar 24 15:41:58 UTC 2014 - matwey.kornilov@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package
# spec file for package hidapi
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,25 +12,29 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 0
Name: hidapi
Version: 0.8.0~rc1
Version: 0.9.0
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
License: GPL-3.0-or-later OR BSD-3-Clause
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
Url: https://github.com/libusb/hidapi
Source: %{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE do_not_install_docs.patch -- don't let make install put files into /usr/share/doc/packages
Patch0: do_not_install_docs.patch
BuildRequires: make gcc-c++
BuildRequires: libtool automake autoconf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: libudev-devel
BuildRequires: libusb-1_0-devel
BuildRequires: make
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -42,10 +46,10 @@ While it can be used to communicate with standard HID devices like keyboards, mi
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-hidraw%{sover} = %{version}
Requires: libhidapi-libusb%{sover} = %{version}
Requires: libudev-devel
Requires: libusb-1_0-devel
%description -n libhidapi-devel
This package contains the header files and libraries for building
@ -68,7 +72,7 @@ HIDAPI is a library which allows an application to interface with USB and Blueto
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.
%prep
%setup -q
%setup -q -n %{name}-%{name}-%{version}
%patch0 -p1
%build
@ -88,20 +92,19 @@ find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%files -n libhidapi-devel
%defattr(-,root,root)
%doc README.txt AUTHORS.txt HACKING.txt
%doc README.md AUTHORS.txt HACKING.txt
%{_includedir}/hidapi
%{_libdir}/pkgconfig/*
%{_libdir}/libhidapi-*.so
%files -n libhidapi-hidraw%{sover}
%defattr(-,root,root)
%doc LICENSE*
%license LICENSE*
%{_libdir}/libhidapi-hidraw.so.%{sover}*
%files -n libhidapi-libusb%{sover}
%defattr(-,root,root)
%doc LICENSE*
%license LICENSE*
%{_libdir}/libhidapi-libusb.so.%{sover}*
%changelog