2012-04-14 11:37:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package xmodmap
|
|
|
|
#
|
2020-09-05 03:30:47 +02:00
|
|
|
# Copyright (c) 2020 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
|
2020-09-08 11:57:50 +02:00
|
|
|
|
2012-04-14 11:37:15 +02:00
|
|
|
Name: xmodmap
|
2019-02-21 12:15:32 +01:00
|
|
|
Version: 1.0.10
|
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
|
2020-09-05 03:30:47 +02:00
|
|
|
URL: http://xorg.freedesktop.org/
|
2012-04-14 11:37:15 +02:00
|
|
|
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: Xmodmap.template
|
|
|
|
Source2: Xmodmap.remote.template
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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 %{?_smp_mflags}
|
|
|
|
|
|
|
|
%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
|
|
|
|
%defattr(-,root,root)
|
2019-02-21 12:15:32 +01:00
|
|
|
%doc AUTHORS ChangeLog COPYING 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
|