mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* add: udev-joystick-blacklist, split from Steam package
* fix: Change didn't save
* fix: Obsolete
* fix: Everything
* fix: How am I managing this
(cherry picked from commit ea7638be4d)
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
+10
-25
@@ -5,7 +5,7 @@
|
||||
|
||||
Name: steam
|
||||
Version: 1.0.0.85
|
||||
Release: 1%?dist
|
||||
Release: 2%?dist
|
||||
Summary: Installer for the Steam software distribution service
|
||||
# Redistribution and repackaging for Linux is allowed, see license file. udev rules are MIT.
|
||||
License: Steam License Agreement and MIT
|
||||
@@ -24,14 +24,11 @@ Source5: https://github.com/terrapkg/pkg-steam/raw/refs/heads/main/README
|
||||
# https://github.com/denilsonsa/udev-joystick-blacklist
|
||||
# https://github.com/systemd/systemd/issues/32773
|
||||
|
||||
# Input devices seen as joysticks:
|
||||
Source6: https://raw.githubusercontent.com/denilsonsa/udev-joystick-blacklist/master/after_kernel_4_9/51-these-are-not-joysticks-rm.rules
|
||||
|
||||
# Configure limits in systemd
|
||||
Source7: https://github.com/terrapkg/pkg-steam/raw/refs/heads/main/01-steam.conf
|
||||
Source6: https://github.com/terrapkg/pkg-steam/raw/refs/heads/main/01-steam.conf
|
||||
|
||||
# Steam restart script
|
||||
Source9: steamrestart.sh
|
||||
Source7: steamrestart.sh
|
||||
|
||||
# Do not install desktop file in lib/steam, do not install apt sources
|
||||
Patch0: https://github.com/terrapkg/pkg-steam/raw/refs/heads/main/steam-makefile.patch
|
||||
@@ -130,7 +127,10 @@ Recommends: xdg-user-dirs
|
||||
Recommends: gobject-introspection
|
||||
|
||||
Requires: steam-devices
|
||||
Requires: steam-device-rules
|
||||
|
||||
# -rm is usually better for Steam
|
||||
Recommends: udev-joystick-blacklist-rm
|
||||
Requires: (udev-joystick-blacklist-rm or udev-joystick-blacklist)
|
||||
|
||||
# Workaround for GNOME issues with libei
|
||||
Recommends: (extest-%{name} if gnome-shell)
|
||||
@@ -142,14 +142,6 @@ and screenshot functionality, and many social features.
|
||||
|
||||
This package contains the installer for the Steam software distribution service.
|
||||
|
||||
%package device-rules
|
||||
Summary: Fix for keyboard/mouse/tablet being detected as joystick in Linux
|
||||
Obsoletes: steam-devices < %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description device-rules
|
||||
This package contains fixes for devices being detected incorrectly by Steam.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-launcher
|
||||
|
||||
@@ -164,10 +156,6 @@ cp %{SOURCE5} .
|
||||
rm -fr %{buildroot}%{_docdir}/%{name}/ \
|
||||
%{buildroot}%{_bindir}/%{name}deps
|
||||
|
||||
mkdir -p %{buildroot}%{_udevrulesdir}/
|
||||
install -m 644 -p %{SOURCE6} \
|
||||
%{buildroot}%{_udevrulesdir}/
|
||||
|
||||
# Environment files
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||
install -pm 644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d
|
||||
@@ -175,9 +163,9 @@ install -pm 644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d
|
||||
# Raise file descriptor limit
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system.conf.d/
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/user.conf.d/
|
||||
install -m 644 -p %{SOURCE7} %{buildroot}%{_prefix}/lib/systemd/system.conf.d/
|
||||
install -m 644 -p %{SOURCE7} %{buildroot}%{_prefix}/lib/systemd/user.conf.d/
|
||||
install -m 775 -p %{SOURCE9} %{buildroot}%{_bindir}/steamrestart
|
||||
install -m 644 -p %{SOURCE6} %{buildroot}%{_prefix}/lib/systemd/system.conf.d/
|
||||
install -m 644 -p %{SOURCE6} %{buildroot}%{_prefix}/lib/systemd/user.conf.d/
|
||||
install -m 775 -p %{SOURCE7} %{buildroot}%{_bindir}/steamrestart
|
||||
|
||||
# https://github.com/ValveSoftware/steam-for-linux/issues/9940
|
||||
desktop-file-edit --remove-key=PrefersNonDefaultGPU %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
@@ -206,9 +194,6 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{appstream_id
|
||||
%dir %{_prefix}/lib/systemd/user.conf.d/
|
||||
%{_prefix}/lib/systemd/user.conf.d/01-steam.conf
|
||||
|
||||
%files device-rules
|
||||
%{_udevrulesdir}/51-these-are-not-joysticks-rm.rules
|
||||
|
||||
%changelog
|
||||
* Sun Sep 01 2024 Simone Caronni <negativo17@gmail.com> - 1.0.0.81-1
|
||||
- Update to 1.0.0.81.
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "udev-joystick-blacklist.spec"
|
||||
}
|
||||
labels {
|
||||
nightly = 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
%global commit a1ace571823be5979c135e9cb8e9ae103c7641ac
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global commit_date 20250715
|
||||
|
||||
Name: udev-joystick-blacklist
|
||||
Version: 0^%{commit_date}git%{shortcommit}
|
||||
Release: 1%{?dist}
|
||||
Summary: Fix for keyboard/mouse/tablet being detected as joysticks in Linux
|
||||
License: Public Domain
|
||||
URL: https://github.com/denilsonsa/udev-joystick-blacklist
|
||||
Source0: %{url}/archive/%{commit}.tar.gz
|
||||
BuildRequires: systemd-rpm-macros
|
||||
Conflicts: %{name}-rm
|
||||
BuildArch: noarch
|
||||
Packager: Gilver E. <rockgrub@disroot.org>
|
||||
|
||||
%description
|
||||
There are several devices that, although recognized by kernel as joysticks, are not joysticks.
|
||||
|
||||
This package contains rules which will prevent those devices from being recognized as joysticks.
|
||||
|
||||
%package rm
|
||||
Summary: Fix for keyboard/mouse/tablet being detected as joysticks in Linux
|
||||
Conflicts: %{name}
|
||||
Obsoletes: steam-device-rules <= 1.0.0.85-1
|
||||
|
||||
%description rm
|
||||
There are several devices that, although recognized by kernel as joysticks, are not joysticks.
|
||||
|
||||
This package contains rules which will prevent those devices from being recognized as joysticks by removing the devices.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{commit}
|
||||
|
||||
%build
|
||||
# Empty.
|
||||
|
||||
%install
|
||||
install -Dpm644 after_kernel_4_9/51-these-are-not-joysticks.rules -t %{buildroot}%{_udevrulesdir}
|
||||
install -Dpm644 after_kernel_4_9/51-these-are-not-joysticks-rm.rules -t %{buildroot}%{_udevrulesdir}
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%{_udevrulesdir}/51-these-are-not-joysticks.rules
|
||||
|
||||
%files rm
|
||||
%doc README.md
|
||||
%{_udevrulesdir}/51-these-are-not-joysticks-rm.rules
|
||||
|
||||
%changelog
|
||||
* Mon Nov 03 2025 Gilver E. <rockgrub@disroot.org> - 0^20250715gita1ace57-1
|
||||
- Initial package
|
||||
@@ -0,0 +1,5 @@
|
||||
rpm.global("commit", gh_commit("denilsonsa/udev-joystick-blacklist"));
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
rpm.global("commit_date", date());
|
||||
}
|
||||
Reference in New Issue
Block a user