1 | Summary: A keyboard configuration library |
---|
2 | Summary(ja): キーボード設定ライブラリ |
---|
3 | Name: libgnomekbd |
---|
4 | Version: 2.30.1 |
---|
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.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 |
---|
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 |
---|
21 | BuildRequires: libxklavier-devel >= 5.0 |
---|
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} |
---|
41 | Requires: libxklavier-devel >= 5.0 |
---|
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 |
---|
52 | ## %patch1 -p1 |
---|
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 |
---|
121 | * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1 |
---|
122 | - new upstream release |
---|
123 | - drop Patch1 |
---|
124 | |
---|
125 | * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.30.0-2 |
---|
126 | - remove old Patches |
---|
127 | - add Patch1 to fix invalid default value in schema |
---|
128 | https://bugzilla.gnome.org/show_bug.cgi?id=615077 |
---|
129 | |
---|
130 | * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1 |
---|
131 | - new upstream release |
---|
132 | - fix BuildRequires: libxklavier-devel >= 5.0 |
---|
133 | |
---|
134 | * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1 |
---|
135 | - new upstream release |
---|
136 | |
---|
137 | * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.0-1 |
---|
138 | - new upstream release |
---|
139 | - remove BR: libglade2-devel |
---|
140 | |
---|
141 | * Sat Mar 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1 |
---|
142 | - new upstream release |
---|
143 | |
---|
144 | * Wed Sep 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1 |
---|
145 | - new upstream release |
---|
146 | |
---|
147 | * Sun Mar 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5 |
---|
148 | - new upstream release |
---|
149 | |
---|
150 | * Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-0vl1 |
---|
151 | - new upstream release |
---|
152 | |
---|
153 | * Fri Apr 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.0-0vl1 |
---|
154 | - initial build for Vine Linux |
---|
155 | |
---|
156 | * Tue Mar 13 2007 Matthias Clasen <mclasen@redhat.com> - 2.18.0-1 |
---|
157 | - Update to 2.18.0 |
---|
158 | |
---|
159 | * Wed Jan 24 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.2-2 |
---|
160 | - Port former control-center patches to improve keyboard drawing |
---|
161 | |
---|
162 | * Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1 |
---|
163 | - Update to 2.17.2 |
---|
164 | |
---|
165 | * Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-4 |
---|
166 | - Fix up Requires |
---|
167 | |
---|
168 | * Thu Nov 2 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-3 |
---|
169 | - Don't use --Werror |
---|
170 | |
---|
171 | * Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-2 |
---|
172 | - Fix a memory allocation error |
---|
173 | |
---|
174 | * Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-1 |
---|
175 | - Initial release |
---|