libgnomekbd/libgnomekbd.spec

123 lines
3.5 KiB
RPMSpec

#
# spec file for package libgnomekbd
#
# Copyright (c) 2011 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: libgnomekbd
Version: 3.2.0
Release: 1
License: LGPLv2.1+
Summary: GNOME Keyboard Library
Url: http://www.gnome.org/
Group: System/GUI/GNOME
Source: http://download.gnome.org/sources/libgnomekbd/3.2/%{name}-%{version}.tar.bz2
# 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
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
%if 0%{?BUILD_FROM_VCS}
BuildRequires: gnome-common
%endif
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libxklavier)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
GNOME keyboard library, utility and applet.
%package devel
License: LGPLv2.1+
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} %{?jobs:-j%jobs} V=1
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%{__rm} -f %{buildroot}%{_libdir}/*.la
%suse_update_desktop_file gkbd-indicator-plugins-capplet
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post
/sbin/ldconfig
%glib2_gsettings_schema_post
%desktop_database_post
%postun
/sbin/ldconfig
%glib2_gsettings_schema_postun
%desktop_database_postun
%files
%defattr(-, root, root)
# NEWS README are empty
%doc AUTHORS COPYING.LIB ChangeLog ChangeLog.libgswitchit ChangeLog.libkbdraw
%{_bindir}/gkbd-keyboard-display
%{_bindir}/gkbd-indicator-plugins-capplet
%{_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-indicator-plugins-capplet.desktop
%{_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
%defattr(-, root, root)
%{_includedir}/libgnomekbd/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/Gkbd-3.0.gir
%changelog