From 344e488af996d6a3fe9bdf318e4a119cdda7faab5390aa205dda50b301d8f0c0 Mon Sep 17 00:00:00 2001 From: Adam Mizerski Date: Sun, 16 Mar 2025 10:00:07 +0000 Subject: [PATCH] Accepting request 1252853 from home:jengelh:branches:hardware - Use more pkgconfig()-style BuildRequires to guard against package renames. OBS-URL: https://build.opensuse.org/request/show/1252853 OBS-URL: https://build.opensuse.org/package/show/hardware/linuxconsoletools?expand=0&rev=27 --- .gitattributes | 23 +++++++ .gitignore | 1 + 0001-fix-bashisms.patch | 21 ++++++ linuxconsoletools-1.8.1.tar.bz2 | 3 + linuxconsoletools.changes | 111 ++++++++++++++++++++++++++++++++ linuxconsoletools.spec | 100 ++++++++++++++++++++++++++++ 6 files changed, 259 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-fix-bashisms.patch create mode 100644 linuxconsoletools-1.8.1.tar.bz2 create mode 100644 linuxconsoletools.changes create mode 100644 linuxconsoletools.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-fix-bashisms.patch b/0001-fix-bashisms.patch new file mode 100644 index 0000000..71c8303 --- /dev/null +++ b/0001-fix-bashisms.patch @@ -0,0 +1,21 @@ +diff --color -ur linuxconsoletools-1.8.1.orig/utils/js-set-enum-leds linuxconsoletools-1.8.1/utils/js-set-enum-leds +--- linuxconsoletools-1.8.1.orig/utils/js-set-enum-leds 2019-10-05 22:29:50.000000000 +0200 ++++ linuxconsoletools-1.8.1/utils/js-set-enum-leds 2022-12-26 16:15:41.539691275 +0100 +@@ -53,7 +53,7 @@ + shift 1 + else + echo "set_gamepad_leds: wrong number of leds or values" 1>&2 +- exit -1 ++ exit 1 + fi + done + } +@@ -65,7 +65,7 @@ + shift 1 + else + echo "set_multicolor_led: wrong number of leds or values" 1>&2 +- exit -1 ++ exit 1 + fi + done + } diff --git a/linuxconsoletools-1.8.1.tar.bz2 b/linuxconsoletools-1.8.1.tar.bz2 new file mode 100644 index 0000000..d4e86b4 --- /dev/null +++ b/linuxconsoletools-1.8.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4da29745c782b7db18f5f37c49e77bf163121dd3761e2fc7636fa0cbf35c2456 +size 53715 diff --git a/linuxconsoletools.changes b/linuxconsoletools.changes new file mode 100644 index 0000000..319adfb --- /dev/null +++ b/linuxconsoletools.changes @@ -0,0 +1,111 @@ +------------------------------------------------------------------- +Thu Mar 13 18:30:34 UTC 2025 - Jan Engelhardt + +- Use more pkgconfig()-style BuildRequires to guard against package + renames. + +------------------------------------------------------------------- +Mon Dec 26 15:19:58 UTC 2022 - Andrea Manzini + +- update to 1.8.1 + * jscal can be given a specific button to use to confirm calibration + at each step. + +- update to 1.7.1 + * inputattach supports the Gunze protocol + +- update to 1.7.0 + * The udev rules for Stelladaptor devices include more compatible devices + * inputattach supports the FlySky FS-iA6B RC receiver, with kernel 5.4 + and later + * ffmvforce now needs SDL2 and pkg-config (thanks to Stefan Brüns). + * inputattach has a --crtscts/--no-crscts option to control CRTSCTS; + it also supports up to four probe-able devices checked in sequence + * js-set-enum-leds supports Wii controllers, XBox gamepads, and PS4 + Dualshock 4 gamepads + +- removed patch 0001-Port-ffmvforce-to-SDL2-some-bugfixes.patch - merged in upstream +- added patch 0001-fix-bashisms.patch + +------------------------------------------------------------------- +Wed Aug 19 09:43:46 UTC 2020 - Callum Farmer + +- Fixes for %_libexecdir changing to /usr/libexec (bsc#1174075) + +------------------------------------------------------------------- +Mon Feb 3 14:52:52 UTC 2020 - Dominique Leuenberger + +- BuildRequire pkgconfig(udev) instead of udev: allow OBS to + shortcut through the -mini flavors. + +------------------------------------------------------------------- +Thu Dec 19 15:30:58 UTC 2019 - Dominique Leuenberger + +- BuildRequire pkgconfig(libsystemd) instead of systemd-devel: + Allow OBS to shortcut through the -mini flavors. + +------------------------------------------------------------------- +Thu Aug 1 18:04:18 UTC 2019 - Stefan Brüns + +- update to 1.6.1 + * inputattach supports the RainShadow HDMI CEC dongle (this requires + kernel 4.12 or later; thanks to Hans Verkuil). +- Port ffmvforce away from SDL 1.2, add + 0001-Port-ffmvforce-to-SDL2-some-bugfixes.patch + +------------------------------------------------------------------- +Fri Jan 25 20:44:01 UTC 2019 - Mathias Homann + +- update to 1.6.0 + * inputattach supports the Pulse-Eight HDMI CEC dongle (this requires kernel 4.8 or later; thanks to Hans Verkuil ). + * evdev-joystick can set the minimum and maximum axis values (thanks to Jon Sangster ). + * The udev rules are installed without executable permissions. + * The evdev-joystick manpage is installed along with the other manpages. + +------------------------------------------------------------------- +Wed May 10 12:46:29 UTC 2017 - sndirsch@suse.com + +- no longer ship inputattach; we no longer support serial input + devices (fate#323262) + +------------------------------------------------------------------- +Tue Sep 27 19:17:56 UTC 2016 - adam@mizerski.pl + +- update to 1.5.1 + * Correctly install 80-stelladaptor-joystick.rules. +- update to 1.5.0 + * Add Stephen Anthony's evdev-joystick tool, with his agreement. +- set PREFIX for compilation too (bsc#1000895) + +------------------------------------------------------------------- +Thu Feb 11 19:18:59 UTC 2016 - mpluskal@suse.com + +- Update to 1.4.9 + * inputattach supports a new mouseman4 mode for 4-button Logitech + mice + * inputattach supports EETI eGalaxTouch touchscreens + * inputattach can provide a "ready" notification to systemd + * js-set-enum-leds no longer uses hotplug.functions. +- Spec file cleanups and dependency updates + +------------------------------------------------------------------- +Thu Feb 19 22:35:46 UTC 2015 - p.drouand@gmail.com + +- Update to version 1.4.8 + * Set up PS3 controller LEDs correctly + * inputattach supports Wacom IV tablets on kernels 3.17 and greater + +------------------------------------------------------------------- +Tue Feb 18 22:35:02 UTC 2014 - adam@mizerski.pl + +- update to 1.4.7 + * Correctly handle newer versions of the Spaceball firwmare (thanks to + Andrew Basterfield ). This fixes Debian + #298494. +- updated the comment in spec file about when the spit took place. + +------------------------------------------------------------------- +Mon Jun 3 19:11:35 UTC 2013 - adam@mizerski.pl + +- new package (version 1.4.6) + diff --git a/linuxconsoletools.spec b/linuxconsoletools.spec new file mode 100644 index 0000000..586e249 --- /dev/null +++ b/linuxconsoletools.spec @@ -0,0 +1,100 @@ +# +# spec file for package linuxconsoletools +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: linuxconsoletools +Version: 1.8.1 +Release: 0 +Summary: A set of utilities for joysticks +License: GPL-2.0-or-later +Group: Hardware/Joystick +URL: http://sourceforge.net/projects/linuxconsole/ +Source0: http://sourceforge.net/projects/linuxconsole/files/%{name}-%{version}.tar.bz2 +# PATCH-FIX-OPENSUSE 0001-fix-bashisms.patch +Patch0: 0001-fix-bashisms.patch +BuildRequires: linux-kernel-headers +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(udev) +# moved in 13.2 +Provides: input-utils = 2007.06.22 +Obsoletes: input-utils < 2007.06.22 + +%description +This package contains the following utilities and associated +documentation: +* joystick utilities - calibrate and test joysticks and joypads + +The following utilities are provided to calibrate and test joysticks: +* evdev-joystick - test & calibrate joysticks using evdev devices +* ffcfstress, ffmvforce, fftest - test force-feedback devices +* ffset - set force-feedback device parameters +* jscal - calibrate joystick devices, reconfigure the axes and buttons +* jscal-store, jscal-restore - store and retrieve joystick device settings as configured using jscal +* jstest - test joystick devices + +%prep +%autosetup -p1 + +%build +make %{?_smp_mflags} \ + CFLAGS="%{optflags}" \ + PREFIX=%{_prefix} \ + SYSTEMD_SUPPORT=1 + +%install +make %{?_smp_mflags} \ + DESTDIR=%{buildroot} \ + PREFIX=%{_prefix} \ + install +# fix permissions +chmod 644 %{buildroot}%{_mandir}/man1/* +# Fix udev dirs +mkdir -p %{buildroot}%{_prefix}/lib/udev +mv %{buildroot}/lib/udev/js-set-enum-leds %{buildroot}%{_prefix}/lib/udev/js-set-enum-leds +mkdir -p %{buildroot}%{_udevrulesdir} +mv %{buildroot}/lib/udev/rules.d/80-stelladaptor-joystick.rules %{buildroot}%{_udevrulesdir}/80-stelladaptor-joystick.rules +rm %{buildroot}/%{_bindir}/inputattach \ + %{buildroot}/%{_mandir}/man1/inputattach.1 + +%files +%license COPYING +%doc NEWS README +%{_bindir}/evdev-joystick +%{_bindir}/ffcfstress +%{_bindir}/ffmvforce +%{_bindir}/ffset +%{_bindir}/fftest +%{_bindir}/jscal +%{_bindir}/jscal-restore +%{_bindir}/jscal-store +%{_bindir}/jstest +%{_mandir}/man1/ffcfstress.1%{ext_man} +%{_mandir}/man1/ffmvforce.1%{ext_man} +%{_mandir}/man1/ffset.1%{ext_man} +%{_mandir}/man1/fftest.1%{ext_man} +%{_mandir}/man1/jscal-restore.1%{ext_man} +%{_mandir}/man1/jscal-store.1%{ext_man} +%{_mandir}/man1/jscal.1%{ext_man} +%{_mandir}/man1/jstest.1%{ext_man} +%{_mandir}/man1/evdev-joystick.1%{ext_man} +%{_datadir}/joystick/ +%{_prefix}/lib/udev/js-set-enum-leds +%{_udevrulesdir}/80-stelladaptor-joystick.rules + +%changelog -- 2.51.1