fc3e03
%global udevdir %(pkg-config --variable=udevdir udev)
fc3e03
fc3e03
Name:           linuxconsoletools
fc3e03
Version:        1.6.0
fc3e03
Release:        4%{?dist}
fc3e03
Summary:        Tools for connecting joysticks & legacy devices to the kernel's input subsystem
fc3e03
Group:          Applications/System
fc3e03
License:        GPLv2+
fc3e03
URL:            http://sourceforge.net/projects/linuxconsole/
fc3e03
Source:         http://downloads.sourceforge.net/linuxconsole/%{name}-%{version}.tar.bz2
fc3e03
fc3e03
BuildRequires:  SDL-devel
fc3e03
BuildRequires:  systemd
fc3e03
fc3e03
Provides:       joystick = %{version}-%{release}
fc3e03
Provides:       ff-utils = 1:%{version}-%{release}
fc3e03
Obsoletes:      joystick < 1.2.16-1
fc3e03
Obsoletes:      ff-utils < 2.4.22-1
fc3e03
Conflicts:      gpm < 1.20.6-26
fc3e03
fc3e03
fc3e03
%description
fc3e03
This package contains utilities for testing and configuring joysticks,
fc3e03
connecting legacy devices to the kernel's input subsystem (providing support
fc3e03
for serial mice, touchscreens etc.), and test the input event layer.
fc3e03
fc3e03
fc3e03
%prep
fc3e03
%setup -q
fc3e03
fc3e03
fc3e03
%build
fc3e03
export LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now -fPIE -pie"
fc3e03
make PREFIX=%{_prefix} CFLAGS="$CFLAGS %{optflags}" %{?_smp_mflags}
fc3e03
fc3e03
# moving helper scripts from /usr/share/joystick to /usr/libexec/joystick
fc3e03
sed -i "s|%{_prefix}/share/joystick|%{_libexecdir}/joystick|g" utils/jscal-restore utils/jscal-store
fc3e03
fc3e03
fc3e03
%install
fc3e03
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
fc3e03
fc3e03
# moving helper scripts from /usr/share/joystick to /usr/libexec/joystick
fc3e03
install -d -m 0755 %{buildroot}%{_libexecdir}/joystick
fc3e03
mv -f %{buildroot}%{_prefix}/share/joystick/* %{buildroot}%{_libexecdir}/joystick/
fc3e03
fc3e03
# fixing udev dir
fc3e03
mv -f %{buildroot}/lib %{buildroot}/usr/
fc3e03
fc3e03
# fixing man permissions
fc3e03
chmod -x %{buildroot}%{_mandir}/man1/*
fc3e03
fc3e03
fc3e03
%files
fc3e03
%doc COPYING README NEWS
fc3e03
fc3e03
%{_bindir}/ffcfstress
fc3e03
%{_bindir}/ffmvforce
fc3e03
%{_bindir}/ffset
fc3e03
%{_bindir}/fftest
fc3e03
%{_bindir}/inputattach
fc3e03
%{_bindir}/jscal
fc3e03
%{_bindir}/jscal-restore
fc3e03
%{_bindir}/jscal-store
fc3e03
%{_bindir}/jstest
fc3e03
%{_bindir}/evdev-joystick
fc3e03
fc3e03
%{_libexecdir}/joystick/extract
fc3e03
%{_libexecdir}/joystick/filter
fc3e03
%{_libexecdir}/joystick/ident
fc3e03
fc3e03
%{udevdir}/js-set-enum-leds
fc3e03
%{udevdir}/rules.d/80-stelladaptor-joystick.rules    
fc3e03
fc3e03
%{_mandir}/man1/*
fc3e03
fc3e03
fc3e03
%changelog
fc3e03
* Tue Dec 04 2018 Ondrej Vasik <ovasik@redhat.com> - 1.6.0-4
fc3e03
- -pie option was still missing in LD_FLAGS (#1630589)
fc3e03
fc3e03
* Fri Sep 21 2018 Ondrej Vasik < ovasik@redhat.com> - 1.6.0-3
fc3e03
- Fix hardening flags (#1630589)
fc3e03
fc3e03
* Wed Aug 08 2018 Lukas Nykryn <lnykryn@redhat.com> - 1.6.0-2
fc3e03
- Add missing BuildRequires
fc3e03
fc3e03
* Wed Nov 15 2017 Michal Ambroz <rebus _at seznam.cz> - 1.6.0-1
fc3e03
- Updating to 1.6.0 (#1328645)
fc3e03
fc3e03
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-5
fc3e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
fc3e03
fc3e03
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-4
fc3e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fc3e03
fc3e03
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-3
fc3e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fc3e03
fc3e03
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-2
fc3e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fc3e03
fc3e03
* Tue Jan 19 2016 Jaromir Capik <jcapik@redhat.com> - 1.4.9-1
fc3e03
- Updating to 1.4.9 (#1297157)
fc3e03
fc3e03
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2
fc3e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fc3e03
fc3e03
* Thu Jan 22 2015 Jaromir Capik <jcapik@redhat.com> - 1.4.8-1
fc3e03
- Updating to 1.4.8 (#1183543)
fc3e03
fc3e03
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-3
fc3e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
fc3e03
fc3e03
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-2
fc3e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fc3e03
fc3e03
* Wed Jan 08 2014 Jaromir Capik <jcapik@redhat.com> - 1.4.7-1
fc3e03
- Update to 1.4.7
fc3e03
fc3e03
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-2
fc3e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fc3e03
fc3e03
* Tue May 07 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.6-1
fc3e03
- Update to 1.4.6
fc3e03
fc3e03
* Tue Apr 09 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.5-1
fc3e03
- Update to 1.4.5
fc3e03
fc3e03
* Wed Feb 06 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-7
fc3e03
- Adding new switches to the ffcfstress man page
fc3e03
fc3e03
* Wed Feb 06 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-6
fc3e03
- Merging the 64bit patch from ff-utils
fc3e03
fc3e03
* Mon Feb 04 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-5
fc3e03
- Resolving conflicts with ff-utils
fc3e03
fc3e03
* Fri Jan 04 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-4
fc3e03
- Adding conflict with gpm < 1.20.6-26 (inputattach)
fc3e03
fc3e03
* Thu Jan 03 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-3
fc3e03
- Passing optflags to make
fc3e03
fc3e03
* Wed Jan 02 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-2
fc3e03
- Using prefix macro
fc3e03
fc3e03
* Wed Jan 02 2013 Jaromir Capik <jcapik@redhat.com> - 1.4.4-1
fc3e03
- Initial package