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