File libgnomekbd.spec of Package libgnomekbd.19696

# spec file for package libgnomekbd
# Copyright (c) 2021 SUSE LLC
# 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

%define sover 8
Name:           libgnomekbd
Version:        3.26.1
Release:        0
Summary:        GNOME Keyboard Library
License:        LGPL-2.1-or-later
Group:          System/GUI/GNOME
# PATCH-FIX-UPSTREAM libgnomekbd-avoid-coredump-on-ibus-engines.patch bnc#1160963, glgo#GNOME/libgnomekbd!6 -- To avoid crash when working with ibus.
Patch0:         libgnomekbd-avoid-coredump-on-ibus-engines.patch
# PATCH-FIX-OPENSUSE libgnomekbd-set-default-indicator.patch bnc#1034390 -- set the common keyboard layout indicator as default to avoid misleading.
Patch1:         libgnomekbd-set-default-indicator.patch
# PATCH-FIX-UPSTREAM libgnomekbd_avoid_implicit_definition.patch bnc#1160963 bnc#1034390 glgo#GNOME/libgnomekbd!7 -- To avoid inplicit definition warning in building.
Patch2:         libgnomekbd_avoid_implicit_definition.patch
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  pkgconfig
BuildRequires:  translation-update-upstream
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libxklavier) >= 5.2

GNOME keyboard library and utility.

%package -n gnomekbd-tools
Summary:        GNOME Keyboard tools
Group:          System/GUI/GNOME
Conflicts:      %{name} < 3.26.1

%description -n gnomekbd-tools
GNOME keyboard library and utility.

This package provides various binaries and conversion tools for

%package -n libgnomekbd%{sover}
Summary:        GNOME Keyboard Library
# Make -lang package installable, and ease upgrade path
Group:          System/Libraries
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

%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
Conflicts:      %{name} < 3.26.1

%description -n typelib-1_0-Gkbd-3_0
GNOME keyboard library and utility.

This package provides the GObject Introspection bindings for

%package devel
Summary:        GNOME Keyboard Library
Group:          Development/Libraries/GNOME
Requires:       %{name}%{sover} = %{version}
Requires:       gnomekbd-tools = %{version}
Requires:       typelib-1_0-Gkbd-3_0 = %{version}

%description devel
This package contains the header files for developing
applications that want to make use of libgnomekbd.


%autosetup -p1

%configure \
	--disable-static \
%make_build V=1


find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}/%{_prefix}

%post -n libgnomekbd%{sover} -p /sbin/ldconfig
%postun -n libgnomekbd%{sover} -p /sbin/ldconfig

%files -n gnomekbd-tools
%dir %{_datadir}/GConf
%dir %{_datadir}/GConf/gsettings

%files -n libgnomekbd%{sover}
%license COPYING.LIB

%files -n typelib-1_0-Gkbd-3_0

%files lang -f %{name}.lang

%files devel

openSUSE Build Service is sponsored by