diff --git a/fix-ftbfs-autoconf-2.70.patch b/fix-ftbfs-autoconf-2.70.patch new file mode 100644 index 0000000..b2de4e3 --- /dev/null +++ b/fix-ftbfs-autoconf-2.70.patch @@ -0,0 +1,22 @@ +From 363461494702dfd8f37943f670dd7315c4f4e364 Mon Sep 17 00:00:00 2001 +From: Jan Palus +Date: Fri, 25 Dec 2020 13:51:30 +0100 +Subject: [PATCH] configure.ac: remove duplicate AC_CONFIG_MACRO_DIR + +fixes build with autoconf 2.70 +--- + configure.ac | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 220909a..77da67a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -13,7 +13,6 @@ LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}" + + AC_CONFIG_MACRO_DIR([m4]) + AM_INIT_AUTOMAKE([foreign -Wall -Werror]) +-AC_CONFIG_MACRO_DIR([m4]) + + m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + LT_INIT diff --git a/hidapi.spec b/hidapi.spec index 7d852d8..877abd1 100644 --- a/hidapi.spec +++ b/hidapi.spec @@ -1,12 +1,13 @@ Name: hidapi Version: 0.10.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library for communicating with USB and Bluetooth HID devices License: GPLv3 or BSD URL: https://github.com/libusb/hidapi Source0: https://github.com/libusb/hidapi/archive/%{name}-%{version}.tar.gz +Patch0: fix-ftbfs-autoconf-2.70.patch BuildRequires: autoconf BuildRequires: automake @@ -32,7 +33,7 @@ This package contains development files for hidapi which provides access to USB and Bluetooth HID-class devices. %prep -%setup -qn %{name}-%{name}-%{version} +%autosetup -n %{name}-%{name}-%{version} %build autoreconf -vif @@ -59,6 +60,9 @@ rm -rf %{buildroot}%{_defaultdocdir}/%{name} %{_libdir}/pkgconfig/hidapi-libusb.pc %changelog +* Thu Dec 31 19:56:21 EST 2020 Scott Talbert - 0.10.1-2 +- Fix FTBFS with autoconf 2.70 + * Tue Nov 24 21:26:02 EST 2020 Scott Talbert - 0.10.1-1 - Update to new upstream release 0.10.1 (#1901388) - Remove BR on gcc-c++ (no longer needed)