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
|
|
|
#
|
2012-02-23 13:16:00 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-03-14 12:31:36 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libgnomekbd
|
2012-09-07 17:34:48 +02:00
|
|
|
Version: 3.5.90
|
2012-02-23 13:16:00 +01:00
|
|
|
Release: 0
|
2009-09-04 01:47:08 +02:00
|
|
|
Summary: GNOME Keyboard Library
|
2012-02-23 13:16:00 +01:00
|
|
|
License: LGPL-2.1+
|
2009-09-04 01:47:08 +02:00
|
|
|
Group: System/GUI/GNOME
|
2012-02-23 13:16:00 +01:00
|
|
|
Url: http://www.gnome.org/
|
2012-09-07 17:34:48 +02:00
|
|
|
Source: http://download.gnome.org/sources/libgnomekbd/3.5/%{name}-%{version}.tar.xz
|
2010-08-09 22:43:27 +02:00
|
|
|
# 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
|
2012-03-28 08:23:03 +02:00
|
|
|
# For %%desktop_database_* macros
|
|
|
|
BuildRequires: desktop-file-utils
|
2008-10-11 18:16:44 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: intltool
|
2009-03-25 18:14:23 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2011-04-21 10:26:33 +02:00
|
|
|
%if 0%{?BUILD_FROM_VCS}
|
|
|
|
BuildRequires: gnome-common
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
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
|
2011-02-13 22:13:36 +01:00
|
|
|
Recommends: %{name}-lang
|
2009-09-04 01:47:08 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-04-21 10:26:33 +02:00
|
|
|
%glib2_gsettings_schema_requires
|
2007-03-14 12:31:36 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
GNOME keyboard library, utility and applet.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: GNOME Keyboard Library
|
|
|
|
Group: System/GUI/GNOME
|
2009-09-04 01:47:08 +02:00
|
|
|
Requires: %{name} = %{version}
|
2007-03-14 12:31:36 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
GNOME keyboard library, utility and applet.
|
|
|
|
|
2007-08-09 15:40:17 +02:00
|
|
|
%lang_package
|
2007-03-14 12:31:36 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-03-25 18:14:23 +01:00
|
|
|
translation-update-upstream
|
2010-08-06 03:38:08 +02:00
|
|
|
%patch0 -p1
|
2007-03-14 12:31:36 +01:00
|
|
|
|
2011-04-21 10:26:33 +02:00
|
|
|
%if 0%{?BUILD_FROM_VCS}
|
|
|
|
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
|
|
|
|
%endif
|
|
|
|
|
2007-03-14 12:31:36 +01:00
|
|
|
%build
|
2009-01-27 02:18:09 +01:00
|
|
|
%configure --disable-static --with-pic
|
2011-04-21 10:26:33 +02:00
|
|
|
%{__make} %{?jobs:-j%jobs} V=1
|
2007-03-14 12:31:36 +01:00
|
|
|
|
|
|
|
%install
|
2008-10-11 18:16:44 +02:00
|
|
|
%makeinstall
|
2010-01-15 02:30:36 +01:00
|
|
|
%if 0%{?suse_version} <= 1120
|
|
|
|
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
|
|
|
%endif
|
2009-01-27 02:18:09 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2011-02-13 22:13:36 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2009-09-04 01:47:08 +02:00
|
|
|
%fdupes %{buildroot}
|
2007-03-14 12:31:36 +01:00
|
|
|
|
|
|
|
%clean
|
2009-09-04 01:47:08 +02:00
|
|
|
rm -rf %{buildroot}
|
2007-03-14 12:31:36 +01:00
|
|
|
|
2011-02-13 22:13:36 +01:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2011-04-21 10:26:33 +02:00
|
|
|
%glib2_gsettings_schema_post
|
2011-02-13 22:13:36 +01:00
|
|
|
%desktop_database_post
|
2009-07-31 20:03:25 +02:00
|
|
|
|
2011-02-13 22:13:36 +01:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2011-04-21 10:26:33 +02:00
|
|
|
%glib2_gsettings_schema_postun
|
2011-02-13 22:13:36 +01:00
|
|
|
%desktop_database_postun
|
2007-03-14 12:31:36 +01:00
|
|
|
|
2011-04-21 10:26:33 +02:00
|
|
|
%files
|
2007-03-14 12:31:36 +01:00
|
|
|
%defattr(-, root, root)
|
|
|
|
# NEWS README are empty
|
|
|
|
%doc AUTHORS COPYING.LIB ChangeLog ChangeLog.libgswitchit ChangeLog.libkbdraw
|
2011-04-21 10:26:33 +02:00
|
|
|
%{_bindir}/gkbd-keyboard-display
|
2007-03-14 12:31:36 +01:00
|
|
|
%{_libdir}/*so.*
|
2011-04-21 10:26:33 +02:00
|
|
|
%{_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
|
2011-02-13 22:13:36 +01:00
|
|
|
%{_datadir}/libgnomekbd/
|
2007-03-14 12:31:36 +01:00
|
|
|
|
2007-08-09 15:40:17 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-03-14 12:31:36 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
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
|