xmodmap/xmodmap.spec
Stefan Dirsch 8bb181da53 - Update to version 1.0.11
* gitlab CI: add a basic build test
  * Build xz tarballs instead of bzip2
  * handle.c: avoid leaks when realloc() fails
  * PrintModifierMapping: stop leaking the map returned by 
    XGetKeyboardMapping Fix warning about number of mouse buttons

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xmodmap?expand=0&rev=18
2022-07-11 13:00:53 +00:00

78 lines
2.4 KiB
RPMSpec

#
# spec file for package xmodmap
#
# Copyright (c) 2022 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/
#
%if 0%{?suse_version} >= 1550
%define UsrEtcMove 1
%endif
Name: xmodmap
Version: 1.0.11
Release: 0
Summary: Utility to modify keymaps and pointer button mappings in X
License: MIT
Group: System/X11/Utilities
URL: https://xorg.freedesktop.org/
Source0: https://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
Source1: Xmodmap.template
Source2: Xmodmap.remote.template
BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xorg-macros) >= 1.8
BuildRequires: pkgconfig(xproto) >= 7.0.17
# 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
%make_build
%install
%make_install
%if 0%{?UsrEtcMove}
install -m0644 -D %{SOURCE1} %{buildroot}%{_distconfdir}/X11/Xmodmap
install -m0644 -D %{SOURCE2} %{buildroot}%{_distconfdir}/X11/Xmodmap.remote
%else
install -m0644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/Xmodmap
install -m0644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/X11/Xmodmap.remote
%endif
%files
%license COPYING
%doc AUTHORS ChangeLog README.md
%if 0%{?UsrEtcMove}
%dir %{_distconfdir}/X11
%{_distconfdir}/X11/Xmodmap
%{_distconfdir}/X11/Xmodmap.remote
%else
%config %{_sysconfdir}/X11/Xmodmap
%config %{_sysconfdir}/X11/Xmodmap.remote
%endif
%{_bindir}/xmodmap
%{_mandir}/man1/xmodmap.1%{?ext_man}
%changelog