2012-02-17 12:03:57 +01:00
|
|
|
#
|
|
|
|
# spec file for package libxkbcommon
|
|
|
|
#
|
2013-04-17 23:05:47 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-02-17 12:03:57 +01: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-09-25 13:45:12 +02:00
|
|
|
|
|
|
|
|
2012-02-17 12:03:57 +01:00
|
|
|
Name: libxkbcommon
|
|
|
|
%define lname libxkbcommon0
|
2013-04-17 23:05:47 +02:00
|
|
|
Version: 0.3.0
|
2012-02-17 12:03:57 +01:00
|
|
|
Release: 0
|
2012-10-26 17:14:10 +02:00
|
|
|
Summary: Library for handling xkb descriptions
|
2012-02-17 12:03:57 +01:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-10-26 17:14:10 +02:00
|
|
|
Url: http://xkbcommon.org/
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libxkbcommon
|
|
|
|
#Git-Web: http://cgit.freedesktop.org/xorg/lib/libxkbcommon/
|
2013-04-17 23:05:47 +02:00
|
|
|
Source: http://xkbcommon.org/download/%name-%version.tar.xz
|
2012-09-25 13:45:12 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-10-26 17:14:10 +02:00
|
|
|
#git#BuildRequires: autoconf >= 2.62
|
|
|
|
#git#BuildRequires: automake
|
2012-09-25 13:45:12 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2012-10-26 17:14:10 +02:00
|
|
|
#git#BuildRequires: libtool >= 2
|
2012-09-25 13:45:12 +02:00
|
|
|
BuildRequires: pkgconfig
|
2013-04-17 23:05:47 +02:00
|
|
|
BuildRequires: xz
|
2012-10-26 17:14:10 +02:00
|
|
|
BuildRequires: pkgconfig(xkeyboard-config)
|
2012-09-25 13:45:12 +02:00
|
|
|
BuildRequires: pkgconfig(xorg-macros) >= 1.8
|
|
|
|
BuildRequires: pkgconfig(xproto)
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%description
|
2012-10-26 17:14:10 +02:00
|
|
|
xkbcommon is a keymap handling library, which can parse XKB
|
|
|
|
descriptions (e.g. from xkeyboard-config), and use this to help its
|
|
|
|
users make sense of their keyboard input. Unfortunately, X11's
|
|
|
|
requirements mean this is not actually usable for the X server, but it
|
|
|
|
should be perfectly usable for client toolkits, as well as alternative
|
|
|
|
windowing systems, compositors and system-level clients such as
|
|
|
|
Wayland and kmscon.
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%package -n %lname
|
2012-10-26 17:14:10 +02:00
|
|
|
Summary: Library for handling xkb descriptions
|
2012-02-17 12:03:57 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
2012-10-26 17:14:10 +02:00
|
|
|
xkbcommon is a keymap handling library, which can parse XKB
|
|
|
|
descriptions (e.g. from xkeyboard-config), and use this to help its
|
|
|
|
users make sense of their keyboard input. Unfortunately, X11's
|
|
|
|
requirements mean this is not actually usable for the X server, but it
|
|
|
|
should be perfectly usable for client toolkits, as well as alternative
|
|
|
|
windowing systems, compositors and system-level clients such as
|
|
|
|
Wayland and kmscon.
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%package devel
|
2012-10-26 17:14:10 +02:00
|
|
|
Summary: Development files for the libxkbcommon library
|
2012-02-17 12:03:57 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
2012-10-26 17:14:10 +02:00
|
|
|
xkbcommon is a keymap handling library, which can parse XKB
|
|
|
|
descriptions (e.g. from xkeyboard-config), and use this to help its
|
|
|
|
users make sense of their keyboard input. Unfortunately, X11's
|
|
|
|
requirements mean this is not actually usable for the X server, but it
|
|
|
|
should be perfectly usable for client toolkits, as well as alternative
|
|
|
|
windowing systems, compositors and system-level clients such as
|
|
|
|
Wayland and kmscon.
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
This package contains the development headers for the library found
|
|
|
|
in %lname.
|
|
|
|
|
|
|
|
%prep
|
2012-10-26 17:14:10 +02:00
|
|
|
%setup -q
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%build
|
2012-10-26 17:14:10 +02:00
|
|
|
if [ ! -e configure ]; then
|
|
|
|
NOCONFIGURE=1 ./autogen.sh;
|
|
|
|
fi;
|
2013-04-17 23:05:47 +02:00
|
|
|
# Ensure people will use pkgconfig to locate headers.
|
|
|
|
%configure --disable-static --includedir="%_includedir/pkg/%name"
|
2012-10-26 17:14:10 +02:00
|
|
|
make %{?_smp_mflags} V=1;
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%install
|
2012-10-26 17:14:10 +02:00
|
|
|
make install DESTDIR="%buildroot";
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la;
|
2012-02-17 12:03:57 +01:00
|
|
|
|
2013-04-17 23:05:47 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2012-02-17 12:03:57 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libxkbcommon.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2013-04-17 23:05:47 +02:00
|
|
|
%_includedir/pkg/
|
2012-02-17 12:03:57 +01:00
|
|
|
%_libdir/libxkbcommon.so
|
|
|
|
%_libdir/pkgconfig/xkbcommon.pc
|
|
|
|
|
|
|
|
%changelog
|