%global udevdir %(pkg-config --variable=udevdir udev) Name: linuxconsoletools Version: 1.6.0 Release: 3 Summary: Tools for connecting/testing joysticks & legacy devices to the kernel's input subsystem License: GPLv2+ URL: http://sourceforge.net/projects/linuxconsole/ Source: http://downloads.sourceforge.net/linuxconsole/%{name}-%{version}.tar.bz2 BuildRequires: SDL-devel git Provides: joystick = %{version}-%{release} Provides: ff-utils = 1:%{version}-%{release} Obsoletes: joystick < 1.2.16-1 Obsoletes: ff-utils < 2.4.22-1 Conflicts: gpm < 1.20.6-26 %description This project maintains the Linux Console tools, which include utilities to\ test and configure joysticks, connect legacy devices to the kernel's input subsystem\ (providing support for serial mice, touchscreens etc.), and test the input event layer. %package help Summary: Help manual for %{name} %description help The %{name}-help package conatins man manual etc %prep %autosetup -n %{name}-%{version} -p1 -Sgit %build %make_build PREFIX=%{_prefix} CFLAGS="%{optflags}" # moving helper scripts from /usr/share/joystick to /usr/libexec/joystick sed -i "s|%{_prefix}/share/joystick|%{_libexecdir}/joystick|g" utils/jscal-restore utils/jscal-store %install %make_install PREFIX=%{_prefix} # moving helper scripts from /usr/share/joystick to /usr/libexec/joystick install -d -m 0755 %{buildroot}%{_libexecdir}/joystick mv -f %{buildroot}%{_prefix}/share/joystick/* %{buildroot}%{_libexecdir}/joystick/ mv -f %{buildroot}/lib %{buildroot}/usr/ chmod -x %{buildroot}%{_mandir}/man1/* %files %license COPYING %doc README NEWS %{_bindir}/* %{_libexecdir}/joystick/* %{udevdir}/* %files help %{_mandir}/man1/* %changelog * Mon Dec 9 2019 openEuler Buildteam - 1.6.0-3 - Package init