libgnomekbd/libgnomekbd.spec
Bjørn Lie 1f54bae049 Accepting request 674691 from GNOME:Next
Should we use this versionbump as the time for splitting this package? (SLPP).

- Update to version 3.26.1:
  + Fix build with new GLib.
  + Updated translations.

OBS-URL: https://build.opensuse.org/request/show/674691
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libgnomekbd?expand=0&rev=73
2019-02-14 21:26:55 +00:00

117 lines
3.3 KiB
RPMSpec

#
# spec file for package libgnomekbd
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
Name: libgnomekbd
Version: 3.26.1
Release: 0
Summary: GNOME Keyboard Library
License: LGPL-2.1-or-later
Group: System/GUI/GNOME
URL: http://www.gnome.org/
Source: http://download.gnome.org/sources/libgnomekbd/3.26/%{name}-%{version}.tar.xz
# PATCH-FEATURE-OPENSUSE libgnomekbd-default-group-switch.patch vuntz@opensuse.org -- We use shifts_toggle to switch between groups in openSUSE
Patch0: libgnomekbd-default-group-switch.patch
# For %%desktop_database_* macros
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
Recommends: %{name}-lang
%glib2_gsettings_schema_requires
%if 0%{?BUILD_FROM_VCS}
BuildRequires: gnome-common
%endif
%description
GNOME keyboard library, utility and applet.
%package devel
Summary: GNOME Keyboard Library
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%description devel
GNOME keyboard library, utility and applet.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%endif
%build
%configure --disable-static --with-pic
make %{?_smp_mflags} V=1
%install
%make_install
%if 0%{?suse_version} <= 1120
rm %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%post
/sbin/ldconfig
%glib2_gsettings_schema_post
%desktop_database_post
%postun
/sbin/ldconfig
%glib2_gsettings_schema_postun
%desktop_database_postun
%files
# NEWS README are empty
%license COPYING.LIB
%doc AUTHORS ChangeLog ChangeLog.libgswitchit ChangeLog.libkbdraw
%{_bindir}/gkbd-keyboard-display
%{_libdir}/*so.*
%{_libdir}/girepository-1.0/Gkbd-3.0.typelib
# Own the directory since we can't depend on gconf providing them
%dir %{_datadir}/GConf
%dir %{_datadir}/GConf/gsettings
%{_datadir}/GConf/gsettings/libgnomekbd.convert
%{_datadir}/applications/gkbd-keyboard-display.desktop
%{_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
%{_datadir}/libgnomekbd/
%files lang -f %{name}.lang
%files devel
%{_includedir}/libgnomekbd/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/Gkbd-3.0.gir
%changelog