c36b301
Name:           libgnomekbd
b08810b
Version:       	2.27.91
b08810b
Release:        1%{?dist}
c36b301
Summary:        A keyboard configuration library
c36b301
c36b301
Group:          System Environment/Libraries
0a0c4c2
License:        LGPLv2+
65c997e
URL:            http://gswitchit.sourceforge.net
f857f56
Source0:        http://download.gnome.org/sources/libgnomekbd/2.27/libgnomekbd-%{version}.tar.bz2
4d3aee1
c36b301
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c36b301
c36b301
BuildRequires:  dbus-devel >= 0.92
c36b301
BuildRequires:  dbus-glib >= 0.34
c36b301
BuildRequires:  GConf2-devel >= 2.14.0
c36b301
BuildRequires:  gtk2-devel >= 2.10.3
ad77166
BuildRequires:  cairo-devel
4830dc8
BuildRequires:  libglade2-devel >= 2.6.0
c36b301
BuildRequires:  libgnome-devel >= 2.16.0
c36b301
BuildRequires:  libgnomeui-devel >= 2.16.0
af5765e
BuildRequires:  libxklavier-devel >= 3.4
c36b301
BuildRequires:  desktop-file-utils
47a81d8
BuildRequires:  gettext
335f31c
BuildRequires:  intltool
c36b301
c36b301
Requires(pre): GConf2
c36b301
Requires(post): GConf2
c36b301
Requires(preun): GConf2
c36b301
c36b301
%description
c36b301
The libgnomekbd package contains a GNOME library which manages
78d102d
keyboard configuration and offers various widgets related to
c36b301
keyboard configuration.
c36b301
c36b301
c36b301
%package        devel
c36b301
Summary:        Development files for %{name}
c36b301
Group:          Development/Libraries
c36b301
Requires:       %{name} = %{version}-%{release}
0d5d6bf
Requires:       libxklavier-devel >= 2.91
0d5d6bf
Requires:       libgnome-devel >= 2.16.0
c36b301
Requires:       pkgconfig
c36b301
c36b301
c36b301
%description    devel
c36b301
The libgnomekbd-devel package contains libraries and header files for
c36b301
developing applications that use libgnomekbd.
c36b301
c36b301
ff8b0df
%package	capplet
ff8b0df
Summary:	A configuration applet to select libgnomekbd plugins
ff8b0df
Group:		User Interface/Desktops
ff8b0df
Requires:	%{name} = %{version}-%{release}
ff8b0df
ff8b0df
%description	capplet
ff8b0df
The libgnomekbd-capplet package contains a configuration applet to
ff8b0df
select libgnomekbd plugins. These plugins can modify the appearance
ff8b0df
of the keyboard indicator applet.
ff8b0df
c36b301
%prep
c36b301
%setup -q
c36b301
c36b301
%build
a5157d2
%configure --disable-static --enable-compile-warnings=no
c36b301
make %{?_smp_mflags}
c36b301
c36b301
c36b301
%install
c36b301
rm -rf $RPM_BUILD_ROOT
c36b301
make install DESTDIR=$RPM_BUILD_ROOT
c36b301
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
c36b301
c36b301
desktop-file-install --vendor gnome --delete-original       \
c36b301
  --dir $RPM_BUILD_ROOT%{_datadir}/applications             \
c36b301
  $RPM_BUILD_ROOT%{_datadir}/applications/gkbd-indicator-plugins-capplet.desktop
c36b301
c36b301
%find_lang %{name}
c36b301
c36b301
c36b301
%clean
c36b301
rm -rf $RPM_BUILD_ROOT
c36b301
c36b301
49a4817
%post
c36b301
/sbin/ldconfig
c36b301
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
8c01247
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
accc59f
touch --no-create %{_datadir}/icons/hicolor || :
accc59f
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
c36b301
c36b301
c36b301
%pre
c36b301
if [ "$1" -gt 1 ]; then
c36b301
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
8c01247
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
c36b301
fi
c36b301
c36b301
c36b301
%preun
c36b301
if [ "$1" -eq 0 ]; then
c36b301
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
8c01247
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
c36b301
fi
c36b301
c36b301
49a4817
%postun
c36b301
/sbin/ldconfig
accc59f
touch --no-create %{_datadir}/icons/hicolor || :
accc59f
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
c36b301
c36b301
c36b301
%files -f %{name}.lang
c36b301
%defattr(-,root,root,-)
8c01247
%doc AUTHORS COPYING.LIB
c36b301
%{_libdir}/*.so.*
c36b301
%{_sysconfdir}/gconf/schemas/*
c36b301
%{_datadir}/libgnomekbd
c36b301
c36b301
%files devel
c36b301
%defattr(-,root,root,-)
c36b301
%{_includedir}/*
c36b301
%{_libdir}/*.so
c36b301
%{_libdir}/pkgconfig/*
c36b301
ff8b0df
%files capplet
ff8b0df
%{_bindir}/gkbd-indicator-plugins-capplet
ff8b0df
%{_datadir}/applications/gnome-gkbd-indicator-plugins-capplet.desktop
ff8b0df
c36b301
c36b301
%changelog
b08810b
* Tue Aug 25 2009 Matthias Clasen <mclasen@redhat.com> - 2.27.91-1
b08810b
- Update to 2.27.91
b08810b
0e30607
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27.4-2
0e30607
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0e30607
fda1117
* Wed Jul 15 2009 Matthias Clasen <mclasen@redhat.com> - 2.27.4-1
fda1117
- Update to 2.27.4
fda1117
fb12d29
* Tue Jun 30 2009 Matthias Clasen <mclasen@redhat.com> - 2.27.2-3
07d8c2f
- Rebuild against new libxklavier
fb12d29
- Adapt to api changes
07d8c2f
f857f56
* Sun May 31 2009 Matthias Clasen <mclasen@redhat.com> - 2.27.2-1
f857f56
- Update to 2.27.2
f857f56
49a4817
* Mon Mar 16 2009 Matthias Clasen <mclasen@redhat.com> - 2.26.0-1
49a4817
- Update to 2.26.0
49a4817
b4f213f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25.91-2
b4f213f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b4f213f
78d102d
* Mon Feb 23 2009 Matthias Clasen <mclasen@redhat.com> - 2.25.91-1
78d102d
- Update to 2.25.91
78d102d
d722036
* Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-1
d722036
- Update to 2.24.0
d722036
090e676
* Thu Sep  4 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.91-1
090e676
- Update to 2.23.91
090e676
9210ea3
* Fri Aug 29 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.2-2
9210ea3
- Plug a small memory leak
9210ea3
39ea91a
* Sun May 11 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.2-1
39ea91a
- Update to 2.23.2
39ea91a
ff8b0df
* Sun Apr  6 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.0-2
ff8b0df
- Split the plugins capplet off into a subpackage, since we don't
ff8b0df
  have any plugins and don't want the capplet by default
ff8b0df
33f86bc
* Thu Mar 20 2008 Matthias Clasen <mclasen@redhat.com> - 2.22.0-1
33f86bc
- Update to 2.22.0
33f86bc
af5765e
* Thu Jan 31 2008 Matthias Clasen <mclasen@redhat.com> - 2.21.4.1-2
af5765e
- Rebuild against new libxklavier
af5765e
990daf7
* Tue Dec 18 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.4.1-1
990daf7
- Update to 2.21.4.1
990daf7
ad77166
* Thu Dec 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.4-1
ad77166
- Update to 2.21.4
ad77166
68954a0
* Tue Nov 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.1-1
68954a0
- Update to 2.21.1
68954a0
32e03bb
* Tue Oct 23 2007 Matthias Clasen <mclasen@redhat.com> - 2.20.0-2
32e03bb
- Rebuild against new dbus-glib
32e03bb
376f5d9
* Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 2.20.0-1
376f5d9
- Update to 2.20.0
376f5d9
27e7f1c
* Mon Sep  3 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.91-1
27e7f1c
- Update to 2.19.91
27e7f1c
c6d4174
* Mon Aug 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.90-2
c6d4174
- Fix a bad free
c6d4174
528f566
* Sun Aug 12 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.90-1
528f566
- Update to 2.19.90 
528f566
0a0c4c2
* Tue Aug  7 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.2-2
0a0c4c2
- Update the license field
0a0c4c2
d87c327
* Sun May 20 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.2-1
d87c327
- Update to 2.18.2
d87c327
c947714
* Sun May 20 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.1-1
c947714
- Update to 2.18.1
c947714
65c997e
* Wed Apr  4 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.0-2
65c997e
- Fix a typo in URL
65c997e
accc59f
* Tue Mar 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.0-1
accc59f
- Update to 2.18.0
accc59f
4d3aee1
* Wed Jan 24 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.2-2
4d3aee1
- Port former control-center patches to improve keyboard drawing
4d3aee1
7fc8928
* Tue Nov  7 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1
7fc8928
- Update to 2.17.2
7fc8928
0d5d6bf
* Tue Nov  7 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-4
0d5d6bf
- Fix up Requires
0d5d6bf
1a24cab
* Thu Nov  2 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-3
1a24cab
- Don't use --Werror
1a24cab
c36b301
* Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-2
c36b301
- Fix a memory allocation error
c36b301
c36b301
* Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-1
c36b301
- Initial release