Commit b1b06fc8 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add xkeyboard-config

parent 4b3708a5
......@@ -35,7 +35,7 @@ PACKAGES = \
libXau xcb-proto libxcb libXdmcp xorg-x11-xtrans-devel libX11 libXrender \
libXfixes libXext libXft libXi libXinerama libICE libSM libXpm libXrandr libXtst libXt \
libXv libXvMC libXxf86vm libXdamage libXcursor libXcomposite libxkbfile libxshmfence \
libxkbcommon \
xkeyboard-config libxkbcommon \
dbus cairo dbus-glib \
libpciaccess libdrm mesa libepoxy wayland \
pulseaudio \
......
......@@ -37,6 +37,7 @@ BuildRequires: pulseaudio-libs-devel
BuildRequires: dconf-devel
BuildRequires: libsecret-devel
BuildRequires: webkitgtk4-devel
BuildRequires: xkeyboard-config-devel
Requires: gtk2-devel gtk2-immodules
Requires: gtk3-devel gtk3-immodules
......@@ -109,7 +110,8 @@ Requires: pulseaudio-libs-devel
Requires: libsecret-devel
Requires: webkitgtk4-devel
Requires: libxkbcommon-devel libxkbcommon-x11-devel
Requires: libwayland-client-devel libwayland-cursor-devel libwayland-egl-devel
Requires: libwayland-client-devel libwayland-cursor-devel mesa-libwayland-egl-devel
Requires: xkeyboard-config-devel
%description
Meta package for Gnome SDK dependencies
......
......@@ -10,9 +10,9 @@ Source0: http://xkbcommon.org/download/%{name}-%{version}.tar.xz
BuildRequires: gnome-sdk-base
BuildRequires: xorg-x11-util-macros
BuildRequires: xorg-x11-proto-devel libX11-devel libxcb-devel
#BuildRequires: xkeyboard-config-devel
BuildRequires: xkeyboard-config-devel
#Requires: xkeyboard-config
Requires: xkeyboard-config
%description
%{name} is the X.Org library for compiling XKB maps into formats usable by
......
# INFO: Package contains data-only, no binaries, so no debuginfo is needed
%define debug_package %{nil}
Summary: X Keyboard Extension configuration data
Name: xkeyboard-config
Version: 2.13
Release: 1%{?dist}
License: MIT
URL: http://www.freedesktop.org/wiki/Software/XKeyboardConfig
Source0: http://xorg.freedesktop.org/archive/individual/data/%{name}/%{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: gnome-sdk-base
BuildRequires: glib2-devel
BuildRequires: libX11-devel
BuildRequires: xorg-x11-util-macros
BuildRequires: xorg-x11-proto-devel
#BuildRequires: xkbcomp
%description
This package contains configuration data used by the X Keyboard Extension (XKB),
which allows selection of keyboard layouts when using a graphical interface.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
Development files for %{name}.
%prep
%setup -q -n %{name}-%{version}
%build
AUTOPOINT="intltoolize --automake --copy" autoreconf -v --force --install || exit 1
%configure \
--enable-compat-rules \
--with-xkb-base=%{_datadir}/X11/xkb \
--with-xkb-rules-symlink=xorg
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
# Remove unnecessary symlink
rm -f $RPM_BUILD_ROOT%{_datadir}/X11/xkb/compiled
%find_lang %{name}
# Create filelist
{
FILESLIST=${PWD}/files.list
pushd $RPM_BUILD_ROOT
find .%{_datadir}/X11/xkb -type d | sed -e "s/^\./%dir /g" > $FILESLIST
find .%{_datadir}/X11/xkb -type f | sed -e "s/^\.//g" >> $FILESLIST
popd
}
%files -f files.list -f %{name}.lang
%doc AUTHORS README NEWS TODO COPYING docs/README.* docs/HOWTO.*
%{_datadir}/X11/xkb/rules/xorg
%{_datadir}/X11/xkb/rules/xorg.lst
%{_datadir}/X11/xkb/rules/xorg.xml
%{_mandir}/man7/xkeyboard-config.*
%files devel
%{_datadir}/pkgconfig/xkeyboard-config.pc
%changelog
* Mon Jan 19 2015 Alexander Larsson <alexl@redhat.com> - 2.13-1
- Initial version
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment