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:
parent
835c834dbd
commit
d44e131ec5
21
_service
21
_service
@ -1,13 +1,12 @@
|
|||||||
<services>
|
<services>
|
||||||
<service name="tar_scm" mode="disabled">
|
<service name="download_url">
|
||||||
<param name="url">https://github.com/signal11/hidapi.git</param>
|
<param name="protocol">https</param>
|
||||||
<param name="scm">git</param>
|
<param name="host">github.com</param>
|
||||||
<param name="filename">hidapi</param>
|
<param name="path">/libusb/hidapi/archive/hidapi-0.9.0.tar.gz</param>
|
||||||
<param name="revision">hidapi-0.8.0-rc1</param>
|
|
||||||
<param name="versionformat">0.8.0~rc1</param>
|
|
||||||
</service>
|
</service>
|
||||||
<service name="recompress" mode="disabled">
|
<service name="verify_file">
|
||||||
<param name="file">*.tar</param>
|
<param name="file">_service:download_url:hidapi-0.9.0.tar.gz</param>
|
||||||
<param name="compression">bz2</param>
|
<param name="verifier">sha256</param>
|
||||||
</service>
|
<param name="checksum">630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652</param>
|
||||||
</services>
|
</service>
|
||||||
|
</services>
|
3
_service:download_url:hidapi-0.9.0.tar.gz
Normal file
3
_service:download_url:hidapi-0.9.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652
|
||||||
|
size 112963
|
@ -1,13 +1,13 @@
|
|||||||
Index: hidapi-0.8.0~rc1/Makefile.am
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
===================================================================
|
index a6e47e8..dd92e87 100644
|
||||||
--- hidapi-0.8.0~rc1.orig/Makefile.am
|
--- a/Makefile.am
|
||||||
+++ hidapi-0.8.0~rc1/Makefile.am
|
+++ b/Makefile.am
|
||||||
@@ -39,14 +39,6 @@ endif
|
@@ -43,14 +43,6 @@ endif
|
||||||
|
|
||||||
EXTRA_DIST = udev doxygen
|
EXTRA_DIST = udev doxygen
|
||||||
|
|
||||||
-dist_doc_DATA = \
|
-dist_doc_DATA = \
|
||||||
- README.txt \
|
- README.md \
|
||||||
- AUTHORS.txt \
|
- AUTHORS.txt \
|
||||||
- LICENSE-bsd.txt \
|
- LICENSE-bsd.txt \
|
||||||
- LICENSE-gpl3.txt \
|
- LICENSE-gpl3.txt \
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1c9c94b373e8ca30328dd1d7de3413479dc32e55f430c50d5e5e4b00939bb7f8
|
|
||||||
size 83586
|
|
@ -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
|
Mon Mar 24 15:41:58 UTC 2014 - matwey.kornilov@gmail.com
|
||||||
|
|
||||||
|
35
hidapi.spec
35
hidapi.spec
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
%define sover 0
|
||||||
|
|
||||||
Name: hidapi
|
Name: hidapi
|
||||||
Version: 0.8.0~rc1
|
Version: 0.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
License: GPL-3.0+ or BSD-3-Clause
|
|
||||||
Summary: Simple library for communicating with USB and Bluetooth HID devices
|
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
|
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
|
# 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
|
Patch0: do_not_install_docs.patch
|
||||||
BuildRequires: make gcc-c++
|
BuildRequires: autoconf
|
||||||
BuildRequires: libtool automake autoconf
|
BuildRequires: automake
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libtool
|
||||||
BuildRequires: libudev-devel
|
BuildRequires: libudev-devel
|
||||||
BuildRequires: libusb-1_0-devel
|
BuildRequires: libusb-1_0-devel
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
Summary: Development libraries and header files for hidapi
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: glibc-devel
|
Requires: glibc-devel
|
||||||
Requires: libudev-devel
|
|
||||||
Requires: libusb-1_0-devel
|
|
||||||
Requires: libhidapi-hidraw%{sover} = %{version}
|
Requires: libhidapi-hidraw%{sover} = %{version}
|
||||||
Requires: libhidapi-libusb%{sover} = %{version}
|
Requires: libhidapi-libusb%{sover} = %{version}
|
||||||
|
Requires: libudev-devel
|
||||||
|
Requires: libusb-1_0-devel
|
||||||
|
|
||||||
%description -n libhidapi-devel
|
%description -n libhidapi-devel
|
||||||
This package contains the header files and libraries for building
|
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.
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q -n %{name}-%{name}-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -88,20 +92,19 @@ find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
|
|||||||
|
|
||||||
%files -n libhidapi-devel
|
%files -n libhidapi-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.txt AUTHORS.txt HACKING.txt
|
%doc README.md AUTHORS.txt HACKING.txt
|
||||||
%{_includedir}/hidapi
|
%{_includedir}/hidapi
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_libdir}/libhidapi-*.so
|
%{_libdir}/libhidapi-*.so
|
||||||
|
|
||||||
%files -n libhidapi-hidraw%{sover}
|
%files -n libhidapi-hidraw%{sover}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE*
|
%license LICENSE*
|
||||||
%{_libdir}/libhidapi-hidraw.so.%{sover}*
|
%{_libdir}/libhidapi-hidraw.so.%{sover}*
|
||||||
|
|
||||||
%files -n libhidapi-libusb%{sover}
|
%files -n libhidapi-libusb%{sover}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE*
|
%license LICENSE*
|
||||||
%{_libdir}/libhidapi-libusb.so.%{sover}*
|
%{_libdir}/libhidapi-libusb.so.%{sover}*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user