diff --git a/_service b/_service index d765866..7a9f8fa 100644 --- a/_service +++ b/_service @@ -1,13 +1,12 @@ - - https://github.com/signal11/hidapi.git - git - hidapi - hidapi-0.8.0-rc1 - 0.8.0~rc1 + + https + github.com + /libusb/hidapi/archive/hidapi-0.9.0.tar.gz - - *.tar - bz2 - - + + _service:download_url:hidapi-0.9.0.tar.gz + sha256 + 630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652 + + \ No newline at end of file diff --git a/_service:download_url:hidapi-0.9.0.tar.gz b/_service:download_url:hidapi-0.9.0.tar.gz new file mode 100644 index 0000000..bf68a72 --- /dev/null +++ b/_service:download_url:hidapi-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652 +size 112963 diff --git a/do_not_install_docs.patch b/do_not_install_docs.patch index 7689cc5..2aa2571 100644 --- a/do_not_install_docs.patch +++ b/do_not_install_docs.patch @@ -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 \ diff --git a/hidapi-0.8.0~rc1.tar.bz2 b/hidapi-0.8.0~rc1.tar.bz2 deleted file mode 100644 index d4329fa..0000000 --- a/hidapi-0.8.0~rc1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c9c94b373e8ca30328dd1d7de3413479dc32e55f430c50d5e5e4b00939bb7f8 -size 83586 diff --git a/hidapi.changes b/hidapi.changes index 9613f69..8e61ab6 100644 --- a/hidapi.changes +++ b/hidapi.changes @@ -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 diff --git a/hidapi.spec b/hidapi.spec index eca7920..ec06576 100644 --- a/hidapi.spec +++ b/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 # 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 -