[521] | 1 | Summary: A keyboard configuration library |
---|
| 2 | Summary(ja): キーボード設定ライブラリ |
---|
| 3 | Name: libgnomekbd |
---|
[1251] | 4 | Version: 2.30.2 |
---|
[926] | 5 | Release: 1%{?_dist_release} |
---|
[521] | 6 | Group: System Environment/Libraries |
---|
| 7 | License: LGPL |
---|
| 8 | URL: http://gswitchit.sourceforce.net |
---|
[844] | 9 | Source0: http://ftp.gnome.org/pub/gnome/sources/libgnomekbd/2.30/libgnomekbd-%{version}.tar.bz2 |
---|
| 10 | # https://bugzilla.gnome.org/show_bug.cgi?id=615077 |
---|
| 11 | Patch1: libgnomekbd-2.30.0-fix-invalid-value-in-schema.patch |
---|
[521] | 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | |
---|
| 15 | BuildRequires: dbus-devel >= 1.0 |
---|
| 16 | BuildRequires: dbus-glib >= 0.73 |
---|
| 17 | BuildRequires: GConf2-devel >= 2.26.0 |
---|
| 18 | BuildRequires: gtk2-devel >= 2.16.0 |
---|
| 19 | BuildRequires: libgnome-devel >= 2.26.0 |
---|
| 20 | BuildRequires: libgnomeui-devel >= 2.24.0 |
---|
[805] | 21 | BuildRequires: libxklavier-devel >= 5.0 |
---|
[521] | 22 | BuildRequires: desktop-file-utils |
---|
| 23 | BuildRequires: perl(XML::Parser) |
---|
| 24 | BuildRequires: gettext |
---|
| 25 | |
---|
| 26 | Requires(pre): GConf2 |
---|
| 27 | Requires(post): GConf2 gtk2 |
---|
| 28 | Requires(preun): GConf2 |
---|
| 29 | Requires(postun): gtk2 |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | The libgnomekbd package contains a GNOME library which manages |
---|
| 33 | keyboard configuration and offers various widgets related to |
---|
| 34 | keyboard configuration. |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %package devel |
---|
| 38 | Summary: Development files for %{name} |
---|
| 39 | Group: Development/Libraries |
---|
| 40 | Requires: %{name} = %{version}-%{release} |
---|
[805] | 41 | Requires: libxklavier-devel >= 5.0 |
---|
[521] | 42 | Requires: libgnome-devel >= 2.24.0 |
---|
| 43 | Requires: pkgconfig |
---|
| 44 | |
---|
| 45 | %description devel |
---|
| 46 | The libgnomekbd-devel package contains libraries and header files for |
---|
| 47 | developing applications that use libgnomekbd. |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %prep |
---|
| 51 | %setup -q |
---|
[926] | 52 | ## %patch1 -p1 |
---|
[521] | 53 | |
---|
| 54 | %build |
---|
| 55 | %configure --disable-static --disable-schemas-install --enable-compile-warnings=no |
---|
| 56 | %__make %{?_smp_mflags} |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %install |
---|
| 60 | rm -rf $RPM_BUILD_ROOT |
---|
| 61 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 62 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 63 | |
---|
| 64 | desktop-file-install --vendor gnome --delete-original \ |
---|
| 65 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 66 | $RPM_BUILD_ROOT%{_datadir}/applications/gkbd-indicator-plugins-capplet.desktop |
---|
| 67 | |
---|
| 68 | %find_lang %{name} |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %clean |
---|
| 72 | rm -rf $RPM_BUILD_ROOT |
---|
| 73 | |
---|
| 74 | %post |
---|
| 75 | /sbin/ldconfig |
---|
| 76 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 77 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || : |
---|
| 78 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
| 79 | |
---|
| 80 | %posttrans |
---|
| 81 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
| 82 | |
---|
| 83 | %pre |
---|
| 84 | if [ "$1" -gt 1 ]; then |
---|
| 85 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 86 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || : |
---|
| 87 | fi |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | %preun |
---|
| 91 | if [ "$1" -eq 0 ]; then |
---|
| 92 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 93 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas >& /dev/null || : |
---|
| 94 | fi |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | %postun |
---|
| 98 | /sbin/ldconfig |
---|
| 99 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
| 100 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %files -f %{name}.lang |
---|
| 104 | %defattr(-,root,root,-) |
---|
| 105 | %doc AUTHORS COPYING.LIB |
---|
| 106 | %{_libdir}/*.so.* |
---|
| 107 | %{_sysconfdir}/gconf/schemas/* |
---|
| 108 | %{_bindir}/gkbd-indicator-plugins-capplet |
---|
| 109 | %{_datadir}/applications/gnome-gkbd-indicator-plugins-capplet.desktop |
---|
| 110 | %{_datadir}/libgnomekbd |
---|
| 111 | #{_datadir}/icons/hicolor/48x48/apps/gkbd-indicator-plugins-capplet.png |
---|
| 112 | |
---|
| 113 | %files devel |
---|
| 114 | %defattr(-,root,root,-) |
---|
| 115 | %{_includedir}/* |
---|
| 116 | %{_libdir}/*.so |
---|
| 117 | %{_libdir}/pkgconfig/* |
---|
| 118 | |
---|
| 119 | |
---|
| 120 | %changelog |
---|
[1251] | 121 | * Sat Jun 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1 |
---|
| 122 | - new upstream release |
---|
| 123 | |
---|
[926] | 124 | * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1 |
---|
| 125 | - new upstream release |
---|
| 126 | - drop Patch1 |
---|
| 127 | |
---|
[844] | 128 | * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.30.0-2 |
---|
| 129 | - remove old Patches |
---|
| 130 | - add Patch1 to fix invalid default value in schema |
---|
| 131 | https://bugzilla.gnome.org/show_bug.cgi?id=615077 |
---|
| 132 | |
---|
[805] | 133 | * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1 |
---|
| 134 | - new upstream release |
---|
| 135 | - fix BuildRequires: libxklavier-devel >= 5.0 |
---|
| 136 | |
---|
[623] | 137 | * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1 |
---|
| 138 | - new upstream release |
---|
| 139 | |
---|
[521] | 140 | * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.0-1 |
---|
| 141 | - new upstream release |
---|
| 142 | - remove BR: libglade2-devel |
---|
| 143 | |
---|
| 144 | * Sat Mar 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1 |
---|
| 145 | - new upstream release |
---|
| 146 | |
---|
| 147 | * Wed Sep 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1 |
---|
| 148 | - new upstream release |
---|
| 149 | |
---|
| 150 | * Sun Mar 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5 |
---|
| 151 | - new upstream release |
---|
| 152 | |
---|
| 153 | * Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-0vl1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
| 156 | * Fri Apr 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.0-0vl1 |
---|
| 157 | - initial build for Vine Linux |
---|
| 158 | |
---|
| 159 | * Tue Mar 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.0-1 |
---|
| 160 | - Update to 2.18.0 |
---|
| 161 | |
---|
| 162 | * Wed Jan 24 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.2-2 |
---|
| 163 | - Port former control-center patches to improve keyboard drawing |
---|
| 164 | |
---|
| 165 | * Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1 |
---|
| 166 | - Update to 2.17.2 |
---|
| 167 | |
---|
| 168 | * Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-4 |
---|
| 169 | - Fix up Requires |
---|
| 170 | |
---|
| 171 | * Thu Nov 2 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-3 |
---|
| 172 | - Don't use --Werror |
---|
| 173 | |
---|
| 174 | * Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-2 |
---|
| 175 | - Fix a memory allocation error |
---|
| 176 | |
---|
| 177 | * Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-1 |
---|
| 178 | - Initial release |
---|