2012-02-17 12:03:57 +01:00
|
|
|
#
|
|
|
|
# spec file for package libxkbcommon
|
|
|
|
#
|
2014-03-08 19:55:50 +01:00
|
|
|
# Copyright (c) 2014 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
|
2014-05-21 16:17:48 +02:00
|
|
|
Version: 0.4.2
|
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
|
|
|
|
2014-07-24 17:47:04 +02:00
|
|
|
#Git-Clone: git://github.com/xkbcommon/libxkbcommon
|
2013-04-17 23:05:47 +02:00
|
|
|
Source: http://xkbcommon.org/download/%name-%version.tar.xz
|
2014-07-31 18:12:34 +02:00
|
|
|
Source2: baselibs.conf
|
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)
|
2014-04-08 10:41:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2014-03-08 19:55:50 +01:00
|
|
|
BuildRequires: pkgconfig(xcb-xkb) >= 1.10
|
|
|
|
%endif
|
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
|
|
|
|
2014-03-08 20:04:36 +01:00
|
|
|
%package -n libxkbcommon0
|
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
|
|
|
|
|
2014-03-08 20:04:36 +01:00
|
|
|
%description -n libxkbcommon0
|
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
|
|
|
|
2014-03-08 20:04:36 +01:00
|
|
|
%package -n libxkbcommon-x11-0
|
|
|
|
Summary: Library for handling xkb descriptions using XKB-X11
|
2014-03-08 19:55:50 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-03-08 20:04:36 +01:00
|
|
|
%description -n libxkbcommon-x11-0
|
|
|
|
An addon library that supports creating keymaps with the XKB X11
|
|
|
|
protocol by querying the X server directly.
|
2014-03-08 19:55:50 +01:00
|
|
|
|
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++
|
2014-03-08 20:04:36 +01:00
|
|
|
Requires: libxkbcommon0 = %version-%release
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%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
|
2014-03-08 20:04:36 +01:00
|
|
|
in libxkbcommon.
|
2012-02-17 12:03:57 +01:00
|
|
|
|
2014-03-08 19:55:50 +01:00
|
|
|
%package x11-devel
|
2014-03-08 20:04:36 +01:00
|
|
|
Summary: Development files for the libxkbcommon-x11 library
|
2014-03-08 19:55:50 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-03-08 20:04:36 +01:00
|
|
|
Requires: libxkbcommon-x11-0 = %version-%release
|
2014-03-08 19:55:50 +01:00
|
|
|
|
|
|
|
%description x11-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.
|
|
|
|
|
|
|
|
This package contains the development headers for the library found
|
|
|
|
in %name-x11-0.
|
|
|
|
|
2012-02-17 12:03:57 +01:00
|
|
|
%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;
|
2014-04-08 10:41:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2014-05-21 16:17:48 +02:00
|
|
|
extra_opts=--enable-x11
|
2014-03-08 19:55:50 +01:00
|
|
|
%else
|
|
|
|
extra_opts=--disable-x11
|
|
|
|
%endif
|
2013-04-17 23:05:47 +02:00
|
|
|
# Ensure people will use pkgconfig to locate headers.
|
2014-03-08 19:55:50 +01:00
|
|
|
%configure --disable-static --includedir="%_includedir/pkg/%name" $extra_opts
|
2014-07-24 17:47:04 +02:00
|
|
|
# libxkbcommon has added symbols between 0.2.0..0.4.2 without maintenance;
|
|
|
|
# force some versioning.
|
|
|
|
echo "V_%version { global: *; };" >xkb.sym
|
|
|
|
make %{?_smp_mflags} V=1 LDFLAGS="-Wl,--version-script=$PWD/xkb.sym"
|
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
|
|
|
|
2014-03-08 20:04:36 +01:00
|
|
|
%post -n libxkbcommon0 -p /sbin/ldconfig
|
|
|
|
%postun -n libxkbcommon0 -p /sbin/ldconfig
|
|
|
|
%post -n libxkbcommon-x11-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libxkbcommon-x11-0 -p /sbin/ldconfig
|
2012-02-17 12:03:57 +01:00
|
|
|
|
2014-03-08 20:04:36 +01:00
|
|
|
%files -n libxkbcommon0
|
2012-02-17 12:03:57 +01:00
|
|
|
%defattr(-,root,root)
|
2014-04-09 12:59:21 +02:00
|
|
|
%doc COPYING NEWS
|
2012-02-17 12:03:57 +01:00
|
|
|
%_libdir/libxkbcommon.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2014-04-09 12:59:21 +02:00
|
|
|
%doc COPYING NEWS
|
2013-04-17 23:05:47 +02:00
|
|
|
%_includedir/pkg/
|
2014-04-08 10:41:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2014-03-08 19:55:50 +01:00
|
|
|
%exclude %_includedir/pkg/%name/xkbcommon/xkbcommon-x11.h
|
|
|
|
%endif
|
2012-02-17 12:03:57 +01:00
|
|
|
%_libdir/libxkbcommon.so
|
|
|
|
%_libdir/pkgconfig/xkbcommon.pc
|
|
|
|
|
2014-04-08 10:41:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2014-03-08 20:04:36 +01:00
|
|
|
%files -n libxkbcommon-x11-0
|
2014-03-08 19:55:50 +01:00
|
|
|
%defattr(-,root,root)
|
2014-04-09 12:59:21 +02:00
|
|
|
%doc COPYING NEWS
|
2014-03-08 19:55:50 +01:00
|
|
|
%_libdir/libxkbcommon-x11.so.*
|
2014-03-08 20:04:36 +01:00
|
|
|
%endif
|
2014-03-08 19:55:50 +01:00
|
|
|
|
2014-04-08 10:41:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2014-03-08 19:55:50 +01:00
|
|
|
%files x11-devel
|
|
|
|
%defattr(-,root,root)
|
2014-04-09 12:59:21 +02:00
|
|
|
%doc COPYING NEWS
|
2014-03-08 20:04:36 +01:00
|
|
|
%dir %_includedir/pkg
|
|
|
|
%dir %_includedir/pkg/%name
|
|
|
|
%dir %_includedir/pkg/%name/xkbcommon
|
2014-03-08 19:55:50 +01:00
|
|
|
%_includedir/pkg/%name/xkbcommon/xkbcommon-x11.h
|
|
|
|
%_libdir/libxkbcommon-x11.so
|
|
|
|
%_libdir/pkgconfig/xkbcommon-x11.pc
|
|
|
|
%endif
|
|
|
|
|
2012-02-17 12:03:57 +01:00
|
|
|
%changelog
|