Dominique Leuenberger
7d232bc972
Update to 3.6.0 OBS-URL: https://build.opensuse.org/request/show/135908 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libgnomekbd?expand=0&rev=64
119 lines
3.4 KiB
RPMSpec
119 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package libgnomekbd
|
|
#
|
|
# Copyright (c) 2012 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.6.0
|
|
Release: 0
|
|
Summary: GNOME Keyboard Library
|
|
License: LGPL-2.1+
|
|
Group: System/GUI/GNOME
|
|
Url: http://www.gnome.org/
|
|
Source: http://download.gnome.org/sources/libgnomekbd/3.6/%{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: translation-update-upstream
|
|
%if 0%{?BUILD_FROM_VCS}
|
|
BuildRequires: gnome-common
|
|
%endif
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(libxklavier) >= 5.2
|
|
Recommends: %{name}-lang
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%glib2_gsettings_schema_requires
|
|
|
|
%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} %{?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
|
|
%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
|
|
%{_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
|
|
%defattr(-, root, root)
|
|
%{_includedir}/libgnomekbd/
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/gir-1.0/Gkbd-3.0.gir
|
|
|
|
%changelog
|