libxkbcommon/libxkbcommon.spec
Stephan Kulow eb238aa032 Accepting request 171223 from X11:Wayland
- Update to new upstream release 0.3.0
* This introduces the xkb_keymap_new_from_buffer API, relaxes
  restrictions on the xkb_keymap_new_from_names API, introduces
  support for setting default keymaps from the environment, and
  includes several new bugfixes, as well as swathes of testing
  improvements.

OBS-URL: https://build.opensuse.org/request/show/171223
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libxkbcommon?expand=0&rev=6
2013-04-17 21:05:47 +00:00

111 lines
3.7 KiB
RPMSpec

#
# spec file for package libxkbcommon
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: libxkbcommon
%define lname libxkbcommon0
Version: 0.3.0
Release: 0
Summary: Library for handling xkb descriptions
License: MIT
Group: Development/Libraries/C and C++
Url: http://xkbcommon.org/
#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libxkbcommon
#Git-Web: http://cgit.freedesktop.org/xorg/lib/libxkbcommon/
Source: http://xkbcommon.org/download/%name-%version.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#git#BuildRequires: autoconf >= 2.62
#git#BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
#git#BuildRequires: libtool >= 2
BuildRequires: pkgconfig
BuildRequires: xz
BuildRequires: pkgconfig(xkeyboard-config)
BuildRequires: pkgconfig(xorg-macros) >= 1.8
BuildRequires: pkgconfig(xproto)
%description
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.
%package -n %lname
Summary: Library for handling xkb descriptions
Group: System/Libraries
%description -n %lname
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.
%package devel
Summary: Development files for the libxkbcommon library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
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.
This package contains the development headers for the library found
in %lname.
%prep
%setup -q
%build
if [ ! -e configure ]; then
NOCONFIGURE=1 ./autogen.sh;
fi;
# Ensure people will use pkgconfig to locate headers.
%configure --disable-static --includedir="%_includedir/pkg/%name"
make %{?_smp_mflags} V=1;
%install
make install DESTDIR="%buildroot";
rm -f "%buildroot/%_libdir"/*.la;
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%_libdir/libxkbcommon.so.0*
%files devel
%defattr(-,root,root)
%_includedir/pkg/
%_libdir/libxkbcommon.so
%_libdir/pkgconfig/xkbcommon.pc
%changelog