2007-03-14 12:31:36 +01:00
#
2011-04-21 10:26:33 +02:00
# spec file for package libgnomekbd
2007-03-14 12:31:36 +01:00
#
2022-08-27 12:02:56 +02:00
# Copyright (c) 2022 SUSE LLC
2007-03-14 12:31:36 +01:00
#
2008-10-11 18:16:44 +02: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-14 22:26:55 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-03-14 12:31:36 +01:00
#
2019-04-18 15:34:57 +02:00
%define sover 8
2007-03-14 12:31:36 +01:00
Name : libgnomekbd
2022-09-05 12:45:54 +02:00
Version : 3.28.1
2012-02-23 13:16:00 +01:00
Release : 0
2009-09-04 01:47:08 +02:00
Summary : GNOME Keyboard Library
2018-03-05 15:04:58 +01:00
License : LGPL-2.1-or-later
2009-09-04 01:47:08 +02:00
Group : System/GUI/GNOME
2019-04-18 15:34:57 +02:00
URL : https://gitlab.gnome.org/GNOME/libgnomekbd
2022-08-27 12:02:56 +02:00
Source0 : https://download.gnome.org/sources/libgnomekbd/3.28/%{name} -%{version} .tar.xz
2021-04-12 14:11:20 +02:00
# PATCH-FIX-UPSTREAM libgnomekbd-avoid-coredump-on-ibus-engines.patch bnc#1160963, glgo#GNOME/libgnomekbd!6 qzhao@suse.com -- To avoid crash when working with ibus.
Patch0 : libgnomekbd-avoid-coredump-on-ibus-engines.patch
2021-06-03 12:40:17 +02:00
# PATCH-FIX-OPENSUSE libgnomekbd-set-default-indicator.patch bnc#1034390 qzhao@suse.com -- set the common keyboard layout indicator as default to avoid misleading.
Patch1 : libgnomekbd-set-default-indicator.patch
2022-08-27 12:02:56 +02:00
2012-03-28 08:23:03 +02:00
BuildRequires : desktop-file-utils
2008-10-11 18:16:44 +02:00
BuildRequires : fdupes
BuildRequires : intltool
2022-09-05 12:45:54 +02:00
BuildRequires : meson
2018-03-05 15:04:58 +01:00
BuildRequires : pkgconfig
2022-08-27 12:02:56 +02:00
BuildRequires : pkgconfig(glib-2.0) >= 2.44
2012-02-23 13:16:00 +01:00
BuildRequires : pkgconfig(gobject-introspection-1.0)
2011-04-21 10:26:33 +02:00
BuildRequires : pkgconfig(gtk+-3.0)
2012-02-23 13:16:00 +01:00
BuildRequires : pkgconfig(libxklavier) >= 5.2
2007-03-14 12:31:36 +01:00
%description
2019-04-18 15:34:57 +02:00
GNOME keyboard library and utility.
%package -n gnomekbd-tools
Summary : GNOME Keyboard tools
Group : System/GUI/GNOME
2019-11-07 11:53:14 +01:00
Conflicts : %{name} < 3.26.1
2019-04-18 15:34:57 +02:00
%description -n gnomekbd-tools
GNOME keyboard library and utility.
This package provides various binaries and conversion tools for
libgnomekbd.
%package -n libgnomekbd%{sover}
Summary : GNOME Keyboard Library
2019-04-30 13:22:53 +02:00
# Make -lang package installable, and ease upgrade path
2019-11-07 11:53:14 +01:00
Group : System/Libraries
2019-04-30 13:22:53 +02:00
Provides : %{name} = %{version}
Obsoletes : %{name} < %{version}
2019-04-18 15:34:57 +02:00
%description -n libgnomekbd%{sover}
GNOME keyboard shared library.
This package provides the shared library of libgnomekbd.
%package -n typelib-1_0-Gkbd-3_0
Summary : Introspection bindings for libgnomekbd
Group : System/Libraries
2019-11-07 11:53:14 +01:00
Conflicts : %{name} < 3.26.1
2019-04-18 15:34:57 +02:00
%description -n typelib-1_0-Gkbd-3_0
GNOME keyboard library and utility.
This package provides the GObject Introspection bindings for
libgnomekbd.
2007-03-14 12:31:36 +01:00
%package devel
Summary : GNOME Keyboard Library
2019-04-18 15:34:57 +02:00
Group : Development/Libraries/GNOME
Requires : %{name} %{sover} = %{version}
Requires : gnomekbd-tools = %{version}
Requires : typelib-1_0-Gkbd-3_0 = %{version}
2007-03-14 12:31:36 +01:00
%description devel
2019-04-18 15:34:57 +02:00
This package contains the header files for developing
applications that want to make use of libgnomekbd.
2007-03-14 12:31:36 +01:00
2007-08-09 15:40:17 +02:00
%lang_package
2018-03-05 15:04:58 +01:00
2007-03-14 12:31:36 +01:00
%prep
2021-04-12 14:11:20 +02:00
%autosetup -p1
2011-04-21 10:26:33 +02:00
2007-03-14 12:31:36 +01:00
%build
2022-09-05 12:45:54 +02:00
%meson
%meson_build
2007-03-14 12:31:36 +01:00
%install
2022-09-05 12:45:54 +02:00
%meson_install
2019-04-18 15:34:57 +02:00
2011-02-13 22:13:36 +01:00
%find_lang %{name} %{?no_lang_C}
2019-04-18 15:34:57 +02:00
%fdupes %{buildroot} /%{_prefix}
2007-03-14 12:31:36 +01:00
2022-08-27 12:02:56 +02:00
%ldconfig_scriptlets -n libgnomekbd%{sover}
2009-07-31 20:03:25 +02:00
2019-04-18 15:34:57 +02:00
%files -n gnomekbd-tools
2011-04-21 10:26:33 +02:00
%{_bindir} /gkbd-keyboard-display
%dir %{_datadir} /GConf
%dir %{_datadir} /GConf/gsettings
%{_datadir} /GConf/gsettings/libgnomekbd.convert
%{_datadir} /applications/gkbd-keyboard-display.desktop
2016-09-20 20:41:41 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.libgnomekbd.desktop.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.libgnomekbd.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.libgnomekbd.keyboard.gschema.xml
2011-02-13 22:13:36 +01:00
%{_datadir} /libgnomekbd/
2007-03-14 12:31:36 +01:00
2019-04-18 15:34:57 +02:00
%files -n libgnomekbd%{sover}
%license COPYING.LIB
%{_libdir} /*so.*
%files -n typelib-1_0-Gkbd-3_0
%{_libdir} /girepository-1.0/Gkbd-3.0.typelib
2007-08-09 15:40:17 +02:00
%files lang -f %{name}.lang
2007-03-14 12:31:36 +01:00
%files devel
2011-04-21 10:26:33 +02:00
%{_includedir} /libgnomekbd/
2007-03-14 12:31:36 +01:00
%{_libdir} /*.so
%{_libdir} /pkgconfig/*.pc
2011-04-21 10:26:33 +02:00
%{_datadir} /gir-1.0/Gkbd-3.0.gir
2007-03-14 12:31:36 +01:00
%changelog