89 lines
2.5 KiB
RPMSpec
89 lines
2.5 KiB
RPMSpec
Name: linuxconsoletools
|
|
Version: 1.4.4
|
|
Release: 6%{?dist}
|
|
Summary: Tools for connecting joysticks & legacy devices to the kernel's input subsystem
|
|
Group: Applications/System
|
|
License: GPLv2+
|
|
URL: http://sourceforge.net/projects/linuxconsole/
|
|
|
|
Source: http://downloads.sourceforge.net/linuxconsole/%{name}-%{version}.tar.bz2
|
|
|
|
#Add 64-bit port and kernel 2.6.22 compatibility
|
|
#http://sourceforge.net/tracker/download.php?group_id=44724&atid=440671&file_id=292511&aid=2098907
|
|
#The following patch is a result of merging the original patch from ff-utils to linuxconsoletools
|
|
Patch0: linuxconsoletools-64bitPort-ffutils.patch
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
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 package contains utilities for testing and configuring joysticks,
|
|
connecting legacy devices to the kernel's input subsystem (providing support
|
|
for serial mice, touchscreens etc.), and test the input event layer.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
%build
|
|
make PREFIX=%{_prefix} CFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
|
# 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 DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
|
|
|
# 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/
|
|
|
|
# fixing man permissions
|
|
chmod -x %{buildroot}%{_mandir}/man1/*
|
|
|
|
%files
|
|
%doc COPYING README NEWS
|
|
|
|
%{_bindir}/ffcfstress
|
|
%{_bindir}/ffmvforce
|
|
%{_bindir}/ffset
|
|
%{_bindir}/fftest
|
|
%{_bindir}/inputattach
|
|
%{_bindir}/jscal
|
|
%{_bindir}/jscal-restore
|
|
%{_bindir}/jscal-store
|
|
%{_bindir}/jstest
|
|
|
|
%{_libexecdir}/joystick/extract
|
|
%{_libexecdir}/joystick/filter
|
|
%{_libexecdir}/joystick/ident
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
%changelog
|
|
* Wed Feb 06 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-6
|
|
- Merging the 64bit patch from ff-utils
|
|
|
|
* Mon Feb 04 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-5
|
|
- Resolving conflicts with ff-utils
|
|
|
|
* Fri Jan 04 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-4
|
|
- Adding conflict with gpm < 1.20.6-26 (inputattach)
|
|
|
|
* Thu Jan 03 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-3
|
|
- Passing optflags to make
|
|
|
|
* Wed Jan 02 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-2
|
|
- Using prefix macro
|
|
|
|
* Wed Jan 02 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-1
|
|
- Initial package
|