Skip to content

Commit

Permalink
Update package release version in xremap.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeGardner committed Sep 27, 2024
1 parent 069b24a commit f3d7ba6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions xremap.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: xremap
Version: 0.10.1
Release: 4%{?dist}
Release: 5%{?dist}
%define _debugsource_template %{nil}
Summary: A key remapper for Linux supporting app-specific remapping and Wayland.

Expand Down Expand Up @@ -99,39 +99,39 @@ getent group input >/dev/null || groupadd -r input

%post
# Vanilla variant
alternatives --install /usr/bin/xremap xremap %{_bindir}/xremap-vanilla 10
alternatives --install %{_bindir}/xremap xremap %{_bindir}/xremap-vanilla 10

%preun
if [ $1 -eq 0 ]; then
alternatives --remove xremap %{_bindir}/xremap-vanilla
fi

%post gnome
alternatives --install /usr/bin/xremap xremap %{_bindir}/xremap-gnome 20
alternatives --install %{_bindir}/xremap xremap %{_bindir}/xremap-gnome 20

%preun gnome
if [ $1 -eq 0 ]; then
alternatives --remove xremap %{_bindir}/xremap-gnome
fi

%post x11
alternatives --install /usr/bin/xremap xremap %{_bindir}/xremap-x11 20
alternatives --install %{_bindir}/xremap xremap %{_bindir}/xremap-x11 20

%preun x11
if [ $1 -eq 0 ]; then
alternatives --remove xremap %{_bindir}/xremap-x11
fi

%post kde
alternatives --install /usr/bin/xremap xremap %{_bindir}/xremap-kde 20
alternatives --install %{_bindir}/xremap xremap %{_bindir}/xremap-kde 20

%preun kde
if [ $1 -eq 0 ]; then
alternatives --remove xremap %{_bindir}/xremap-kde
fi

%post wlroots
alternatives --install /usr/bin/xremap xremap %{_bindir}/xremap-wlroots 20
alternatives --install %{_bindir}/xremap xremap %{_bindir}/xremap-wlroots 20

%preun wlroots
if [ $1 -eq 0 ]; then
Expand Down Expand Up @@ -169,7 +169,10 @@ fi
/usr/lib/udev/rules.d/00-xremap-input.rules

%changelog
* Tue Sep 27 2024 Blake Gardner <[email protected]> - 0.10.1-3
* Tue Sep 27 2024 Blake Gardner <[email protected]> - 0.10.1-5
- Fix RPM macros

* Tue Sep 27 2024 Blake Gardner <[email protected]> - 0.10.1-4
- Use alternatives system to manage multiple xremap binaries

* Tue Sep 27 2024 Blake Gardner <[email protected]> - 0.10.1-3
Expand Down

0 comments on commit f3d7ba6

Please sign in to comment.