libgnomekbd/libgnomekbd.spec
Matthias Clasen accc59f77b 2.18.0
2007-03-13 23:09:09 +00:00

157 lines
4.6 KiB
RPMSpec

Name: libgnomekbd
Version: 2.18.0
Release: 1%{?dist}
Summary: A keyboard configuration library
Group: System Environment/Libraries
License: LGPL
URL: http://gswitchit.sourceforce.net
Source0: http://ftp.gnome.org/pub/gnome/sources/libgnomekbd/2.18/libgnomekbd-%{version}.tar.bz2
# http://bugzilla.gnome.org/show_bug.cgi?id=365590
Patch1: libgnomekbd-0.1-werror.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=352777
Patch2: libgnomekbd-2.18.0-rotated-text.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=352778
Patch3: libgnomekbd-2.17.2-label-color.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=352779
Patch4: libgnomekbd-2.17.2-corner.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=353163
Patch5: libgnomekbd-2.17.2-redraw.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: dbus-devel >= 0.92
BuildRequires: dbus-glib >= 0.34
BuildRequires: GConf2-devel >= 2.14.0
BuildRequires: gtk2-devel >= 2.10.3
BuildRequires: libglade2-devel >= 2.6.0
BuildRequires: libgnome-devel >= 2.16.0
BuildRequires: libgnomeui-devel >= 2.16.0
BuildRequires: libxklavier-devel >= 2.91
BuildRequires: desktop-file-utils
BuildRequires: perl(XML::Parser)
BuildRequires: gettext
Requires(pre): GConf2
Requires(post): GConf2
Requires(preun): GConf2
%description
The libgnomekbd package contains a GNOME library which manages
keyboard configuration and offers various widgets related to
keyboard configuration.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libxklavier-devel >= 2.91
Requires: libgnome-devel >= 2.16.0
Requires: pkgconfig
%description devel
The libgnomekbd-devel package contains libraries and header files for
developing applications that use libgnomekbd.
%prep
%setup -q
%patch1 -p1 -b .werror
%patch2 -p1 -b .rotated-text
%patch3 -p1 -b .label-color
%patch4 -p1 -b .corner
%patch5 -p1 -b .redraw
%build
%configure --disable-static --enable-compile-warnings=no
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/gkbd-indicator-plugins-capplet.desktop
desktop-file-install --vendor gnome --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/gkbd-indicator-plugins-capplet.desktop
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
fi
%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
fi
%postun
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING.LIB
%{_libdir}/*.so.*
%{_sysconfdir}/gconf/schemas/*
%{_bindir}/gkbd-indicator-plugins-capplet
%{_datadir}/applications/gnome-gkbd-indicator-plugins-capplet.desktop
%{_datadir}/libgnomekbd
%{_datadir}/icons/hicolor/48x48/apps/gkbd-indicator-plugins-capplet.png
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%changelog
* Tue Mar 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.0-1
- Update to 2.18.0
* Wed Jan 24 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.2-2
- Port former control-center patches to improve keyboard drawing
* Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1
- Update to 2.17.2
* Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-4
- Fix up Requires
* Thu Nov 2 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-3
- Don't use --Werror
* Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-2
- Fix a memory allocation error
* Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-1
- Initial release