2012-04-14 11:37:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package xmodmap
|
|
|
|
#
|
2022-07-11 15:00:53 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-04-14 11:37:15 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-09-05 03:30:47 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-04-14 11:37:15 +02:00
|
|
|
#
|
|
|
|
|
2013-09-13 12:32:36 +02:00
|
|
|
|
2020-09-09 18:08:06 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
%define UsrEtcMove 1
|
|
|
|
%endif
|
2012-04-14 11:37:15 +02:00
|
|
|
Name: xmodmap
|
2022-07-11 15:00:53 +02:00
|
|
|
Version: 1.0.11
|
2012-04-23 12:06:09 +02:00
|
|
|
Release: 0
|
2012-04-14 11:37:15 +02:00
|
|
|
Summary: Utility to modify keymaps and pointer button mappings in X
|
2013-09-13 12:32:36 +02:00
|
|
|
License: MIT
|
2012-04-14 11:37:15 +02:00
|
|
|
Group: System/X11/Utilities
|
2021-04-17 20:10:24 +02:00
|
|
|
URL: https://xorg.freedesktop.org/
|
2022-07-11 15:00:53 +02:00
|
|
|
Source0: https://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
|
2012-04-14 11:37:15 +02:00
|
|
|
Source1: Xmodmap.template
|
|
|
|
Source2: Xmodmap.remote.template
|
2021-04-17 20:10:24 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-04-14 11:37:15 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xorg-macros) >= 1.8
|
2012-04-15 12:51:40 +02:00
|
|
|
BuildRequires: pkgconfig(xproto) >= 7.0.17
|
2012-04-14 11:37:15 +02:00
|
|
|
# This was part of the xorg-x11 package up to version 7.6
|
|
|
|
Conflicts: xorg-x11 <= 7.6
|
|
|
|
|
|
|
|
%description
|
|
|
|
The xmodmap program is used to edit and display the keyboard modifier
|
|
|
|
map and keymap table that are used by client applications to convert
|
|
|
|
event keycodes into keysyms. It is usually run from the user's
|
|
|
|
session startup script to configure the keyboard according to personal
|
|
|
|
tastes.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2021-04-17 20:10:24 +02:00
|
|
|
%make_build
|
2012-04-14 11:37:15 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2020-09-09 18:08:06 +02:00
|
|
|
%if 0%{?UsrEtcMove}
|
2020-09-05 03:30:47 +02:00
|
|
|
install -m0644 -D %{SOURCE1} %{buildroot}%{_distconfdir}/X11/Xmodmap
|
|
|
|
install -m0644 -D %{SOURCE2} %{buildroot}%{_distconfdir}/X11/Xmodmap.remote
|
|
|
|
%else
|
2012-04-14 11:37:15 +02:00
|
|
|
install -m0644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/Xmodmap
|
|
|
|
install -m0644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/X11/Xmodmap.remote
|
2020-09-05 03:30:47 +02:00
|
|
|
%endif
|
2012-04-14 11:37:15 +02:00
|
|
|
|
|
|
|
%files
|
2021-04-17 20:10:24 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog README.md
|
2020-09-09 18:08:06 +02:00
|
|
|
%if 0%{?UsrEtcMove}
|
2020-09-05 03:30:47 +02:00
|
|
|
%dir %{_distconfdir}/X11
|
|
|
|
%{_distconfdir}/X11/Xmodmap
|
|
|
|
%{_distconfdir}/X11/Xmodmap.remote
|
|
|
|
%else
|
2012-04-14 11:37:15 +02:00
|
|
|
%config %{_sysconfdir}/X11/Xmodmap
|
|
|
|
%config %{_sysconfdir}/X11/Xmodmap.remote
|
2020-09-05 03:30:47 +02:00
|
|
|
%endif
|
2012-04-14 11:37:15 +02:00
|
|
|
%{_bindir}/xmodmap
|
|
|
|
%{_mandir}/man1/xmodmap.1%{?ext_man}
|
|
|
|
|
|
|
|
%changelog
|