1 # 2 # spec file for package gok 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: padraig 9 # 10 Name: gok 11 License: LGPL 12 Group: System/Libraries 13 Version: 1.2.0 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: GNOME On-screen Keyboard 18 Source: http://ftp.gnome.org/pub/GNOME/sources/gok/1.2/%{name}-%{version}.tar.bz2 19 Source1: create-branching-keyboard.1.gz 20 Source2: gok.1.gz 21 %ifos linux 22 #owner:padraig date:2004-08-17 type:branding 23 Patch1: gok-01-linux-apps.diff 24 %else 25 #owner:padraig date:2004-08-17 type:branding 26 Patch1: gok-01-solaris-apps.diff 27 %endif 28 #owner:padraig date:2004-11-05 type:bug bugster: 6173646 29 Patch2: gok-02-g11n-i18n-ui.diff 30 #owner:padraig date:2005-12-02 type:branding bugster: 6345489 31 Patch3: gok-03-menu-comment.diff 32 #owner:padraig date:2005-06-03 type:bug bugster: 6279448 33 Patch4: gok-04-no-login-warn.diff 34 URL: http://developer.gnome.org/projects/gap/ 35 BuildRoot: %{_tmppath}/%{name}-%{version}-build 36 Docdir: %{_defaultdocdir}/%{name} 37 Autoreqprov: on 38 Prereq: /sbin/ldconfig 39 Prereq: GConf 40 41 %define gtk2_version 2.2.4 42 %define libgnomeui_version 2.4.0 43 %define atk_version 1.6.0 44 %define gail_version 1.5.7 45 %define at_spi_version 1.5.4 46 %define gnome_speech_version 0.3.5 47 %define intltool_version 0.31.3 48 49 BuildRequires: gtk2-devel >= %{gtk2_version} 50 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} 51 BuildRequires: gail-devel >= %{gail_version} 52 BuildRequires: at-spi-devel >= %at_spi_version 53 BuildRequires: gnome-speech-devel >= %gnome_speech_version 54 BuildRequires: esound-devel 55 BuildRequires: intltool >= %intltool_version 56 Requires: gtk2 >= %{gtk2_version} 57 Requires: libgnomeui >= %{libgnomeui_version} 58 Requires: gail >= %{gail_version} 59 Requires: at-spi >= %at_spi_version 60 Requires: gnome-speech >= %gnome_speech_version 61 Requires: esound 62 63 %description 64 The GNOME On-screen Keyboard (GOK) is a dynamic on-screen keyboard for UNIX 65 and UNIX-like operating systems. It features Direct Selection, Dwell 66 Selection, Automatic Scanning and Inverse Scanning access methods and 67 includes word completion. 68 69 %prep 70 %setup -q 71 m4 gok-with-references.schemas.m4 > gok-with-references.schemas.in 72 %patch1 -p1 73 %patch2 -p1 74 %patch3 -p1 75 %patch4 -p1 76 77 %build 78 %ifos linux 79 if [ -x /usr/bin/getconf ]; then 80 CPUS=`getconf _NPROCESSORS_ONLN` 81 fi 82 %else 83 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 84 # Hardcode 1 to overcome the 'dir exists' intermittent build error. 85 CPUS=1 86 %endif 87 if test "x$CPUS" = "x" -o $CPUS = 0; then 88 CPUS=1 89 fi 90 91 aclocal $ACLOCAL_FLAGS 92 intltoolize --copy --force --automake 93 autoconf 94 CFLAGS="$RPM_OPT_FLAGS" \ 95 ./configure --prefix=%{_prefix} \ 96 --sysconfdir=%{_sysconfdir} \ 97 --libdir=%{_libdir} \ 98 --bindir=%{_bindir} \ 99 --mandir=%{_mandir} \ 100 --disable-gtk-doc 101 make 102 103 %install 104 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 105 make DESTDIR=$RPM_BUILD_ROOT install 106 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 107 install -d $RPM_BUILD_ROOT%{_mandir}/man1 108 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 109 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 110 111 112 # Remove unwanted files 113 rm -rf $RPM_BUILD_ROOT%{_prefix}/var 114 rm -rf $RPM_BUILD_ROOT%{_prefix}/share/gtk-doc 115 116 %clean 117 rm -rf $RPM_BUILD_ROOT 118 119 %post 120 /sbin/ldconfig 121 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 122 SCHEMAS="gok.schemas" 123 for S in $SCHEMAS; do 124 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null 125 done 126 127 %postun 128 /sbin/ldconfig 129 130 %files 131 %defattr(-,root,root) 132 %{_bindir}/gok 133 %{_bindir}/create-branching-keyboard 134 %{_libdir}/bonobo/servers/*.server 135 %{_libdir}/pkgconfig/*.pc 136 %{_datadir}/applications/* 137 %{_datadir}/gok 138 %{_datadir}/pixmaps/* 139 %{_datadir}/gnome/help/gok/* 140 %{_datadir}/locale/*/*/* 141 %{_datadir}/omf/gok/*.omf 142 %{_sysconfdir}/gconf/schemas/*.schemas 143 %{_mandir}/man1/* 144 145 %changelog 146 * Fri Aug 25 2006 - damien.carbery@sun.com 147 - Bump to 1.1.1. 148 * Fri Jul 21 2006 - damien.carbery@sun.com 149 - Bump to 1.1.1. 150 * Mon Jul 03 2006 - damien.carbery@sun.com 151 - Redo patch 3 (gok.desktop.in) to *not* point at /usr/sfw as /usr is new 152 location. Rename patch (sfw-path to menu-comment) to reflect change. #6446011 153 * Tue May 23 2006 - laca@sun.com 154 - Bump to 1.0.10 155 * Thu Apr 27 2006 - damien.carbery@sun.com 156 - Bump to 1.0.8. 157 * Tue Mar 13 2006 - damien.carbery@sun.com 158 - Bump to 1.0.7. 159 * Tue Feb 14 2006 - damien.carbery@sun.com 160 - Bump to 1.0.6. 161 - Remove upstream patch, dialog-container-add-children. 162 * Fri Dec 02 2005 - srirama.sharma@wipro.com 163 - Added gok-05-sfw-path.diff to use the absolute path of the executable 164 in the .desktop file as usr/sfw/bin should not be included in $PATH. 165 Fixes bug #6345489. 166 * Tue Nov 29 2005 - laca@sun.com 167 - remove javahelp stuff 168 * Fri Jul 29 2005 - damien.carbery@sun.com 169 - Set CPUS to 1 on Solaris to fix intermittent 'dir exists' build error. 170 * Fri Jun 03 2005 - bill.haneman@sun.com 171 - Added gok-09-no-login-warn-6279448.diff, to fix stopper #6279448, 172 which impaired accessible login. 173 * Fri May 20 2005 - bill.haneman@sun.com 174 - Added gok-05-dialog-container-add-children.diff, to fix issue with 175 StarOffice installer. 176 * Wed May 18 2005 - bill.haneman@sun.com 177 - Added gok-04-menu-doubleaction-patch.diff to fix StarOffice and 178 Java double activation of menus. 179 * Wed May 18 2005 - bill.haneman@sun.com 180 - Added gok-03-help-input-devices.diff to fix bugzilla #304524. 181 - Also fixes the missing corepointer-warning dialog problem discovered 182 with dwell mode, today. 183 * Mon May 16 2005 - bill.haneman@sun.com 184 - Revised gok-01-jdsapps.diff to fix bug #6264341. 185 * Fri May 06 2005 - bill.haneman@sun.com 186 - Revved to 1.0.5 - workaround for bug #6222814. 187 - Removed patch gok-03-primary-container.diff, now in tarball. 188 * Fri May 06 2005 - bill.haneman@sun.com 189 - Added patch gok-03-primary-container.diff, bugfix for #6238185. 190 * Thu Apr 28 2005 - bill.haneman@sun.com 191 - Revved to 1.0.4, bugfix for #6244239. 192 * Wed Mar 23 2005 - bill.haneman@sun.com 193 - Revved to 1.0.3, bugfixes for 194 and bugzilla #168093, #168405, #160726, #169761, #170347, 195 #171231. 196 * Fri Mar 11 2005 - glynn.foster@sun.com 197 - Bring back Requires and BuildRequires. 198 * Wed Feb 16 2005 - kieran.colfer@sun.com 199 - Updating l10n tarball rev to latest version (1.12) 200 * Fri Feb 11 2005 - bill.haneman@sun.com 201 - Revved to 0.12.4, bugfixes for input device autodetection, 202 and final strings. 203 - Removed patch gok-09-toggle-button.diff, as it is no longer 204 needed. 205 * Thu Feb 10 2005 - muktha.narayan@wipro.com 206 - Added gok-09-toggle-button.diff to enable gok search 207 the children of ROLE_TOGGLE_BUTTON objects. Fixes bug #6223576. 208 * Thu Jan 27 2005 - damien.carbery@sun.com 209 - Finish build error fix: Source8 -> Source 2. 210 * Thu Jan 27 2005 - kazuhiko.maekawa@sun.com 211 - Fixed the build error from l10n tarball 212 * Wed Jan 26 2005 - damien.carbery@sun.com 213 - Update docs with Linux specific tarball from irene.ryan@sun.com. 214 * Wed Jan 19 2005 - bill.haneman@sun.com 215 - Revved to 0.12.1; fixes for bugs including 5109895. 216 - Removed patch5, as it is in the new tarball. 217 * Fri Jan 14 2005 - kazuhiko.maekawa@sun.com 218 - Updated l10n help tarball for cinnabar-linux 219 * Mon Jan 10 2005 - damien.carbery@sun.com 220 - Fix 6196403 - add gok-08-help-figs.diff to install 'figures' directory. 221 * Fri Jan 07 2005 - bill.haneman@sun.com 222 - Added %ifos solaris version of patch1, to add exec prefix to Mozilla. 223 - Fixes bug 6211656. 224 * Mon Dec 13 2004 - bill.haneman@sun.com 225 - Removed unwanted scrollkeeper and gtk-doc files. Thanks Damien. 226 * Tue Dec 07 2004 - bill.haneman@sun.com 227 - Revved to 0.11.17. 228 - Removed gok-03-toolbarfix.diff, as it is in the new tarball. 229 - Includes fix for 6200712. 230 * Fri Nov 19 2004 - damien.carbery@sun.com 231 - add --bindir=%{_bindir} and --libdir=%{_libdir} to configure opts. 232 * Fri Nov 12 2004 - kazuhiko.maekawa@sun.com 233 - Added workaround fix for 6193354 234 * Fri Nov 05 2004 - bill.haneman@sun.com 235 - Revved to 0.11.16. Fixes for 6185980, 6177484, 5087990, 6185984. 236 * Fri Nov 05 2004 - takao.fujiwara@sun.com 237 - Added intltoolize to get the latest intltool-update/merge 238 - Added gok-06-g11n-i18n-ui.diff to fix 6173646 239 * Thu Oct 28 2004 - matt.keenan@sun.com 240 - Add create-branching-keyboard.1, gok.1 man pages 241 * Wed Oct 27 2004 - bill.haneman@sun.com 242 - Revved to gok-0.11.14. Removed patches 3 and 4 (integrated). 243 Contains fixes for bugs 5108516, 6179076, 5087916, 244 bugzilla bugs 154604, 154499, 156479, 156153, 155344, 155512. 245 * Tue Oct 26 2004 - damien.carbery@sun.com 246 - Integrate updated docs tarball from irene.ryan@sun.com. 247 * Wed Oct 13 2004 - padraig.obriain@sun.com 248 - Added patch gok-05-fix-strings.diff for bugzilla 155229. 249 * Wed Oct 13 2004 - takao.fujiwara@sun.com 250 - Added m4 in %prep to pre-generate .schemas.in 251 * Tue Oct 12 2004 - bill.haneman@sun.com 252 - Added patch gok-04-actionfix.diff for P1 6176892. 253 Should be removed when we rev to gok-0.11.11 or higher. 254 * Wed Oct 08 2004 - bill.haneman@sun.com 255 - Added buildfix patch gok-03-buildfix.diff (forte build failed). 256 * Wed Oct 06 2004 - bill.haneman@sun.com 257 - Revved to 0.11.10, to fix P1 6174262. 258 * Fri Oct 01 2004 - bill.haneman@sun.com 259 - Revved to 0.11.9 260 * Fri Sep 24 2004 - yuriy.kuznetsov@sun.com 261 - Added gok-02-g11n-potfiles.diff 262 * Wed Sep 16 2004 - laca@sun.com 263 - added missing dependencies 264 * Wed Sep 15 2004 - damien.carbery@sun.com 265 - Integrate updated docs tarball from irene.ryan@sun.com. 266 * Thu Sep 02 2004 - damien.carbery@sun.com 267 - Add docs tarball from irene.ryan@sun.com. 268 * Wed Sep 01 2004 - bill.haneman@sun.com 269 - Revved to 0.11.7. 270 * Wed Aug 25 2004 - damien.carbery@sun.com 271 - Add create-branching-keyboard to %files. 272 * Tue Aug 24 2004 - bill.haneman@sun.com 273 - Removed "launcher.kbd" part of gok-01-jds-apps.diff, we only need to patch 274 - the .kbd.in file and re-make. 275 * Thu Aug 17 2004 - bill.haneman@sun.com 276 - Added patch gok-01-jds-apps.diff, for bug #5085248. This is a JDS-specific 277 - branding patch, which needed to be applied now due to string freeze impact. 278 * Mon Aug 16 2004 - bill.haneman@sun.com 279 - Bumped to 0.11.6. 280 * Thu Aug 12 2004 - bill.haneman@sun.com 281 - Removed the gok g11n patches, they should have been applied to cvs instead. 282 - They were also incorrect; root cause of problem appears to be an intltool bug 283 - Bumped version to 0.11.5. 284 * Wed Jul 15 2004 - takao.fujiwara@sun.com 285 - Added gok-01-g11n-potfiles.diff and gok-02-g11n-i18n-ui.diff. Fixes bug 286 #5074183 287 * Thu Jul 08 2004 - damien.donlon@sun.com 288 - Updated l10n content to gok-l10n-po-1.2.tar.bz2 289 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 290 - added "-j $CPUS" to make to speed up builds 291 * Wed Jun 23 2004 - muktha.narayan@wipro.com 292 - Install gconf schema files. Fixes bug #5045140 293 * Fri Jun 11 2004 - dermot.mccluskey@sun.com 294 - fix 0.11.4.1 tarball and Source tag 295 * Thu Jun 10 2004 - <bill.haneman@sun.com> 296 - Bump to 0.11.4.1 297 * Thu Jun 10 2004 - <padraig.obriain@sun.com> 298 - Bump to 0.11.4 299 * Fri May 14 2004 - <padraig.obriain@sun.com> 300 - Bump to 0.11.2 301 * Wed May 12 2004 - damien.donlon@sun.com 302 - Updated l10n content to gok-l10n-po-1.1.tar.bz2 303 * Thu Apr 22 2004 - <padraig.obriain@sun.com> 304 - Bump to 0.10.2 305 * Sun Apr 18 2004 - laca@sun.com 306 - enable javahelp conversion on Solaris 307 * Thu Apr 01 2004 - matt.keenan@sun.com 308 - Javahelp converison 309 * Wed Mar 31 2004 - brian.cameron@sun.com 310 - replace tar jxf with the more solaris friendly 311 bzcat piped through tar 312 * Mon Mar 29 2004 - damien.donlon@sun.com 313 - Adding gok-l10n-po-1.0.tar.bz2 l10n content 314 * Tue Mar 23 2004 - <padraig.obriain@sun.com> 315 - Bump to 0.10.0 316 * Mon Mar 15 2004 - <damien.carbery@sun.com> 317 - Remove gtk-doc line from %files section as no files there any more. 318 * Thu Mar 11 2004 - <damien.carbery@sun.com> 319 - Reset release to 1. 320 * Wed Mar 10 2004 - damien.carbery@sun.com 321 - Bump to 0.9.10 322 * Mon Feb 23 2004 - damien.carbery@sun.com 323 - Created new spec file for gok 324