libgnomekbd/libgnomekbd.spec

177 lines
5.0 KiB
RPMSpec
Raw Normal View History

2006-11-02 19:58:02 +00:00
Name: libgnomekbd
2007-12-13 17:46:40 +00:00
Version: 2.21.4
2007-11-13 13:52:35 +00:00
Release: 1%{?dist}
2006-11-02 19:58:02 +00:00
Summary: A keyboard configuration library
Group: System Environment/Libraries
2007-08-08 03:59:39 +00:00
License: LGPLv2+
2007-04-04 12:27:47 +00:00
URL: http://gswitchit.sourceforge.net
2007-11-13 13:52:35 +00:00
Source0: http://download.gnome.org/sources/libgnomekbd/2.21/libgnomekbd-%{version}.tar.bz2
2007-01-24 20:52:40 +00:00
# http://bugzilla.gnome.org/show_bug.cgi?id=353163
2007-12-16 01:30:18 +00:00
Patch0: libgnomekbd-2.21.4-redraw.patch
2006-11-02 19:58:02 +00:00
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
2007-12-13 17:46:40 +00:00
BuildRequires: cairo-devel
2006-11-02 20:05:46 +00:00
BuildRequires: libglade2-devel >= 2.6.0
2006-11-02 19:58:02 +00:00
BuildRequires: libgnome-devel >= 2.16.0
BuildRequires: libgnomeui-devel >= 2.16.0
BuildRequires: libxklavier-devel >= 2.91
BuildRequires: desktop-file-utils
2007-03-13 23:09:09 +00:00
BuildRequires: perl(XML::Parser)
2006-11-03 04:28:20 +00:00
BuildRequires: gettext
2006-11-02 19:58:02 +00:00
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}
2006-11-07 18:10:36 +00:00
Requires: libxklavier-devel >= 2.91
Requires: libgnome-devel >= 2.16.0
2006-11-02 19:58:02 +00:00
Requires: pkgconfig
%description devel
The libgnomekbd-devel package contains libraries and header files for
developing applications that use libgnomekbd.
%prep
%setup -q
2007-12-16 01:30:18 +00:00
%patch0 -p1 -b .redraw
2006-11-02 19:58:02 +00:00
%build
2006-11-03 01:41:04 +00:00
%configure --disable-static --enable-compile-warnings=no
2006-11-02 19:58:02 +00:00
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
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`
2006-12-08 04:45:49 +00:00
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
2007-03-13 23:09:09 +00:00
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
2006-11-02 19:58:02 +00:00
%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
2006-12-08 04:45:49 +00:00
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
2006-11-02 19:58:02 +00:00
fi
%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
2006-12-08 04:45:49 +00:00
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || :
2006-11-02 19:58:02 +00:00
fi
%postun
/sbin/ldconfig
2007-03-13 23:09:09 +00:00
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
2006-11-02 19:58:02 +00:00
%files -f %{name}.lang
%defattr(-,root,root,-)
2006-12-08 04:45:49 +00:00
%doc AUTHORS COPYING.LIB
2006-11-02 19:58:02 +00:00
%{_libdir}/*.so.*
%{_sysconfdir}/gconf/schemas/*
%{_bindir}/gkbd-indicator-plugins-capplet
%{_datadir}/applications/gnome-gkbd-indicator-plugins-capplet.desktop
%{_datadir}/libgnomekbd
2007-03-13 23:09:09 +00:00
%{_datadir}/icons/hicolor/48x48/apps/gkbd-indicator-plugins-capplet.png
2006-11-02 19:58:02 +00:00
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%changelog
2007-12-13 17:46:40 +00:00
* Thu Dec 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.4-1
- Update to 2.21.4
2007-11-13 13:52:35 +00:00
* Tue Nov 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.1-1
- Update to 2.21.1
2007-10-23 05:30:51 +00:00
* Tue Oct 23 2007 Matthias Clasen <mclasen@redhat.com> - 2.20.0-2
- Rebuild against new dbus-glib
2007-09-17 15:50:04 +00:00
* Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 2.20.0-1
- Update to 2.20.0
2007-09-04 03:21:08 +00:00
* Mon Sep 3 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.91-1
- Update to 2.19.91
2007-08-13 17:03:16 +00:00
* Mon Aug 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.90-2
- Fix a bad free
2007-08-13 00:45:33 +00:00
* Sun Aug 12 2007 Matthias Clasen <mclasen@redhat.com> - 2.19.90-1
- Update to 2.19.90
2007-08-08 03:59:39 +00:00
* Tue Aug 7 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.2-2
- Update the license field
2007-05-21 01:58:34 +00:00
* Sun May 20 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.2-1
- Update to 2.18.2
2007-05-20 04:49:36 +00:00
* Sun May 20 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.1-1
- Update to 2.18.1
2007-04-04 12:27:47 +00:00
* Wed Apr 4 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.0-2
- Fix a typo in URL
2007-03-13 23:09:09 +00:00
* 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
2006-11-08 03:19:51 +00:00
* Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1
- Update to 2.17.2
2006-11-07 18:10:36 +00:00
* Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-4
- Fix up Requires
2006-11-03 02:30:30 +00:00
* Thu Nov 2 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-3
- Don't use --Werror
2006-11-02 19:58:02 +00:00
* 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