2012-02-17 12:03:57 +01:00
|
|
|
#
|
|
|
|
# spec file for package libxkbcommon
|
|
|
|
#
|
2024-01-09 15:11:49 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2019-02-08 12:17:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-17 12:03:57 +01:00
|
|
|
#
|
2012-09-25 13:45:12 +02:00
|
|
|
|
2017-10-19 08:51:16 +02:00
|
|
|
|
2017-10-19 08:48:02 +02:00
|
|
|
%if ! 0%{?suse_version} || 0%{?suse_version} >= 1315
|
|
|
|
%bcond_without x11
|
|
|
|
%else
|
|
|
|
%bcond_with x11
|
|
|
|
%endif
|
|
|
|
|
2012-02-17 12:03:57 +01:00
|
|
|
Name: libxkbcommon
|
2023-10-09 04:58:21 +02:00
|
|
|
Version: 1.6.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++
|
2020-01-19 10:33:05 +01:00
|
|
|
URL: http://xkbcommon.org/
|
2012-02-17 12:03:57 +01:00
|
|
|
|
2021-04-03 15:08:20 +02:00
|
|
|
#Git-Clone: https://github.com/xkbcommon/libxkbcommon
|
|
|
|
Source: https://xkbcommon.org/download/libxkbcommon-%version.tar.xz
|
2014-07-31 18:12:34 +02:00
|
|
|
Source2: baselibs.conf
|
2012-09-25 13:45:12 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2023-01-03 00:40:25 +01:00
|
|
|
BuildRequires: meson >= 0.51
|
2019-10-20 18:14:44 +02:00
|
|
|
BuildRequires: pkg-config
|
2013-04-17 23:05:47 +02:00
|
|
|
BuildRequires: xz
|
2020-09-06 21:43:46 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2019-10-20 18:14:44 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.2.0
|
|
|
|
BuildRequires: pkgconfig(wayland-protocols) >= 1.7
|
|
|
|
BuildRequires: pkgconfig(wayland-scanner)
|
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)
|
2017-10-19 08:48:02 +02:00
|
|
|
%if %{with x11}
|
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-11-03 18:22:05 +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
|
2015-11-02 14:03:44 +01:00
|
|
|
Requires: xkeyboard-config
|
2012-02-17 12:03:57 +01:00
|
|
|
|
2014-11-03 18:22:05 +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-11-03 18:22:05 +01:00
|
|
|
%package -n libxkbcommon-x11-0
|
2014-03-08 20:04:36 +01:00
|
|
|
Summary: Library for handling xkb descriptions using XKB-X11
|
2014-03-08 19:55:50 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-11-03 18:22:05 +01:00
|
|
|
%description -n libxkbcommon-x11-0
|
2014-03-08 20:04:36 +01:00
|
|
|
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-11-03 18:22:05 +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
|
|
|
|
2020-09-06 21:43:46 +02:00
|
|
|
%package tools
|
|
|
|
Summary: Utilities from xkbcommon
|
|
|
|
Group: System/X11/Utilities
|
|
|
|
|
|
|
|
%description tools
|
2022-05-22 02:09:33 +02:00
|
|
|
xkbcommon tools for introspection and debugging.
|
2020-09-06 21:43:46 +02: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-11-03 18:22:05 +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.
|
|
|
|
|
2020-09-06 21:43:46 +02:00
|
|
|
%package -n libxkbregistry0
|
|
|
|
Summary: Library for handling xkb descriptions
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libxkbregistry0
|
|
|
|
libxkbregistry is a C library that lists available XKB models,
|
|
|
|
layouts and variants for a given ruleset.
|
|
|
|
|
|
|
|
%package -n libxkbregistry-devel
|
|
|
|
Summary: Header files for xkbregistry
|
|
|
|
Group: Development/Libraries/C and C++
|
2021-01-20 14:35:37 +01:00
|
|
|
Requires: libxkbregistry0 = %version-%release
|
2020-09-06 21:43:46 +02:00
|
|
|
|
|
|
|
%description -n libxkbregistry-devel
|
|
|
|
libxkbregistry is a C library that lists available XKB models,
|
|
|
|
layouts and variants for a given ruleset.
|
|
|
|
|
|
|
|
This is aimed at tools that provide a listing of available keyboard
|
|
|
|
layouts to the user.
|
|
|
|
|
2012-02-17 12:03:57 +01:00
|
|
|
%prep
|
2020-09-06 21:43:46 +02:00
|
|
|
%autosetup -p1
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%build
|
2017-10-19 08:48:02 +02:00
|
|
|
%if %{with x11}
|
2019-10-20 18:14:44 +02:00
|
|
|
ef=-Denable-x11=true
|
2014-03-08 19:55:50 +01:00
|
|
|
%else
|
2019-10-20 18:14:44 +02:00
|
|
|
ef=-Denable-x11=false
|
2014-03-08 19:55:50 +01:00
|
|
|
%endif
|
2021-04-03 15:08:20 +02:00
|
|
|
# includedir intentional, cf. bugzilla.opensuse.org/795968
|
2019-10-20 18:14:44 +02:00
|
|
|
%meson -Denable-docs=false --includedir="%_includedir/%name" $ef
|
|
|
|
%meson_build
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%install
|
2019-10-20 18:14:44 +02:00
|
|
|
%meson_install
|
2023-10-09 04:58:21 +02:00
|
|
|
rm -rf %buildroot/%_datadir/bash-completion
|
Accepting request 632991 from home:msmeissn:branches:X11:Wayland
* CVEs fixed: CVE-2018-15853, CVE-2018-15854, CVE-2018-15855,
CVE-2018-15856, CVE-2018-15857, CVE-2018-15858, CVE-2018-15859,
CVE-2018-15861, CVE-2018-15862, CVE-2018-15863, CVE-2018-15864
- run make check
OBS-URL: https://build.opensuse.org/request/show/632991
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libxkbcommon?expand=0&rev=46
2018-09-06 13:46:29 +02:00
|
|
|
|
2014-11-03 18:22:05 +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
|
2020-09-06 21:43:46 +02:00
|
|
|
%post -n libxkbregistry0 -p /sbin/ldconfig
|
|
|
|
%postun -n libxkbregistry0 -p /sbin/ldconfig
|
2012-02-17 12:03:57 +01:00
|
|
|
|
2014-11-03 18:22:05 +01:00
|
|
|
%files -n libxkbcommon0
|
2019-10-20 18:14:44 +02:00
|
|
|
%license LICENSE
|
2014-11-03 18:22:05 +01:00
|
|
|
%_libdir/libxkbcommon.so.*
|
2012-02-17 12:03:57 +01:00
|
|
|
|
|
|
|
%files devel
|
2019-10-20 18:14:44 +02:00
|
|
|
%doc NEWS
|
2017-10-19 08:51:16 +02:00
|
|
|
%_includedir/%name/
|
2017-10-19 08:48:02 +02:00
|
|
|
%if %{with x11}
|
2017-10-19 08:51:16 +02:00
|
|
|
%exclude %_includedir/%name/xkbcommon/xkbcommon-x11.h
|
2014-03-08 19:55:50 +01:00
|
|
|
%endif
|
2012-02-17 12:03:57 +01:00
|
|
|
%_libdir/libxkbcommon.so
|
|
|
|
%_libdir/pkgconfig/xkbcommon.pc
|
|
|
|
|
2020-09-06 21:43:46 +02:00
|
|
|
%files tools
|
|
|
|
%_bindir/xkbcli
|
|
|
|
%_libexecdir/xkbcommon/
|
|
|
|
%_mandir/man1/xkbcli*
|
|
|
|
|
2017-10-19 08:48:02 +02:00
|
|
|
%if %{with x11}
|
2014-11-03 18:22:05 +01:00
|
|
|
%files -n libxkbcommon-x11-0
|
2019-10-20 18:14:44 +02:00
|
|
|
%license LICENSE
|
2014-11-03 18:22:05 +01:00
|
|
|
%_libdir/libxkbcommon-x11.so.*
|
2014-03-08 19:55:50 +01:00
|
|
|
|
|
|
|
%files x11-devel
|
2019-10-20 18:14:44 +02:00
|
|
|
%license LICENSE
|
2017-10-19 08:51:16 +02:00
|
|
|
%dir %_includedir/%name
|
|
|
|
%dir %_includedir/%name/xkbcommon
|
|
|
|
%_includedir/%name/xkbcommon/xkbcommon-x11.h
|
2014-03-08 19:55:50 +01:00
|
|
|
%_libdir/libxkbcommon-x11.so
|
|
|
|
%_libdir/pkgconfig/xkbcommon-x11.pc
|
|
|
|
%endif
|
|
|
|
|
2020-09-06 21:43:46 +02:00
|
|
|
%files -n libxkbregistry0
|
|
|
|
%_libdir/libxkbregistry.so.0*
|
|
|
|
|
|
|
|
%files -n libxkbregistry-devel
|
|
|
|
%_libdir/libxkbregistry.so
|
|
|
|
%_libdir/pkgconfig/xkbregistry.pc
|
|
|
|
|
2012-02-17 12:03:57 +01:00
|
|
|
%changelog
|