2007-01-15 23:42:43 +00:00
|
|
|
#
|
2011-02-07 21:12:18 +00:00
|
|
|
# spec file for package xkeyboard-config
|
2007-01-15 23:42:43 +00:00
|
|
|
#
|
2013-02-01 12:54:06 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:42:43 +00:00
|
|
|
#
|
2008-09-15 13:56:49 +00: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.
|
|
|
|
|
2007-01-15 23:42:43 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-03-06 01:29:04 +00:00
|
|
|
|
2007-01-15 23:42:43 +00:00
|
|
|
Name: xkeyboard-config
|
2012-04-13 10:34:59 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: translation-update-upstream
|
2012-06-26 10:01:25 +00:00
|
|
|
BuildRequires: xkbcomp
|
2012-04-13 10:34:59 +00:00
|
|
|
BuildRequires: pkgconfig(xorg-macros) >= 1.12
|
2007-10-02 23:17:15 +00:00
|
|
|
Url: http://www.freedesktop.org/Software/XKeyboardConfig
|
2012-04-13 10:34:59 +00:00
|
|
|
Provides: XFree86:/etc/X11/xkb/symbols/us
|
|
|
|
Provides: xorg-x11:/etc/X11/xkb/symbols/us
|
2007-01-15 23:42:43 +00:00
|
|
|
PreReq: /bin/ln /bin/rm
|
2013-05-31 10:25:09 +00:00
|
|
|
Version: 2.9
|
2012-04-13 10:34:59 +00:00
|
|
|
Release: 0
|
2007-01-15 23:42:43 +00:00
|
|
|
Summary: The X Keyboard Extension
|
2012-09-27 20:00:26 +00:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+ and MIT and CDDL-1.0
|
2012-04-13 10:34:59 +00:00
|
|
|
Group: System/X11/Utilities
|
|
|
|
Source: http://xorg.freedesktop.org/releases/individual/data/%{name}-%{version}.tar.bz2
|
2013-03-26 16:28:22 +00:00
|
|
|
Patch0: u_zhe-dze.patch
|
2007-01-15 23:42:43 +00:00
|
|
|
Patch100: p_suse.diff
|
2012-04-13 10:34:59 +00:00
|
|
|
# PATCH-FIX-OPENSUSE disable-2xalt_2xctrl-toggle.diff fdo#4927 -- This is just a workaround until fdo#4927 is fixed
|
2008-05-16 13:05:57 +00:00
|
|
|
Patch109: disable-2xalt_2xctrl-toggle.diff
|
2007-01-15 23:42:43 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-04-09 09:44:32 +00:00
|
|
|
BuildArch: noarch
|
2012-07-22 14:10:39 +00:00
|
|
|
Recommends: %{name}-lang
|
2007-01-15 23:42:43 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The X Keyboard Extension essentially replaces the core protocol
|
|
|
|
definition of keyboard. The extension makes possible to clearly and
|
|
|
|
explicitly specify most aspects of keyboard behaviour on per-key basis
|
|
|
|
and to more closely track the logical and physical state of the
|
|
|
|
keyboard. It also includes a number of keyboard controls designed to
|
|
|
|
make keyboards more accessible to people with physical impairments.
|
|
|
|
|
2012-07-22 14:10:39 +00:00
|
|
|
%lang_package
|
2007-01-15 23:42:43 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-02-16 16:04:56 +00:00
|
|
|
translation-update-upstream
|
2013-03-26 16:28:22 +00:00
|
|
|
%patch0 -p5
|
2007-01-15 23:42:43 +00:00
|
|
|
%patch100
|
2008-05-16 13:05:57 +00:00
|
|
|
%patch109 -p1
|
2007-01-15 23:42:43 +00:00
|
|
|
|
|
|
|
%build
|
2008-01-30 19:49:53 +00:00
|
|
|
%configure --with-xkb-rules-symlink=xfree86,xorg \
|
2007-01-15 23:42:43 +00:00
|
|
|
--with-xkb-base=/usr/share/X11/xkb \
|
|
|
|
--enable-compat_rules \
|
2011-04-04 15:20:49 +00:00
|
|
|
--disable-runtime-deps \
|
2007-01-15 23:42:43 +00:00
|
|
|
--disable-xkbcomp-symlink
|
2007-04-09 09:44:32 +00:00
|
|
|
rm -f */*.dir
|
2007-01-15 23:42:43 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xkb
|
|
|
|
ln -snf /usr/bin/xkbcomp $RPM_BUILD_ROOT/usr/share/X11/xkb/xkbcomp
|
2008-04-06 07:17:29 +00:00
|
|
|
# Bug 335553
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xkb/compiled/
|
|
|
|
ln -snf /var/lib/xkb/compiled/ $RPM_BUILD_ROOT/usr/share/X11/xkb/compiled
|
2012-07-22 14:10:39 +00:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2010-09-04 17:32:56 +00:00
|
|
|
%fdupes -s $RPM_BUILD_ROOT/usr/share/X11/xkb
|
2007-01-15 23:42:43 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2013-08-27 12:25:30 +00:00
|
|
|
%post
|
|
|
|
rm -rf /var/lib/xkb/compiled/server*.xkm
|
|
|
|
|
2012-07-22 14:10:39 +00:00
|
|
|
%files
|
2007-01-15 23:42:43 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING README docs/HOWTO.* docs/README.*
|
|
|
|
%dir /var/lib/xkb
|
2008-04-06 07:17:29 +00:00
|
|
|
%dir /var/lib/xkb/compiled
|
2007-01-15 23:42:43 +00:00
|
|
|
/usr/share/X11/xkb/
|
2010-09-04 17:32:56 +00:00
|
|
|
%{_datadir}/pkgconfig/*.pc
|
2008-01-30 19:49:53 +00:00
|
|
|
|
2012-07-22 14:10:39 +00:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-04-09 09:44:32 +00:00
|
|
|
%changelog
|