%global desc %{expand: \ The Linux Wacom Project manages the drivers, libraries, and documentation for configuring and running Wacom tablets under the Linux operating system. The project consist of the Wacom Kernel driver (input-wacom), this X driver (xf86-input-wacom) and libwacom. Our drivers are included in most major Linux distributions and provide out-of-the box support for a wide variety of Wacom tablets and component devices. } Name: xf86-input-wacom Version: 0.39.0 Release: 1%{?dist} Summary: X.Org driver for Wacom devices License: GPLv3 URL: https://github.com/linuxwacom/%{name} Source0: https://github.com/linuxwacom/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2 BuildRequires: xorg-x11-drv-wacom Requires: gcc Requires: xorg-x11-util-macros Requires: xorg-x11-server-devel Requires: libXext-devel Requires: libXi-devel Requires: libXrandr-devel Requires: libXinerama-devel Requires: libudev-devel %description %{desc} %prep %autosetup %build %configure %make_build %install set -- --prefix="/usr" --libdir="$(readlink -e $(ls -d /usr/lib*/xorg/modules/input/../../../ | head -n1))" if test -x ./autogen.sh; then ./autogen.sh "$@"; else ./configure "$@"; fi && make && make install || echo "Build Failed" %clean rm -rf $RPM_BUILD_ROOT %make_install %files %license %doc doc/ %changelog * Mon May 4 2020 Victor Tejada Yau -