1 # 2 # spec file for package SUNWgnome-a11y-gok 3 # 4 # includes module(s): gok 5 # 6 # Copyright 2009 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 %define owner liyuan 11 # 12 %include Solaris.inc 13 14 %use gok = gok.spec 15 16 Name: SUNWgnome-a11y-gok 17 Summary: GNOME On-screen Keyboard 18 Version: %{default_pkg_version} 19 Source: %{name}-manpages-0.1.tar.gz 20 SUNW_BaseDir: %{_basedir} 21 SUNW_Copyright: %{name}.copyright 22 BuildRoot: %{_tmppath}/%{name}-%{version}-build 23 24 %include default-depend.inc 25 Requires: SUNWlibglade 26 Requires: SUNWgnome-a11y-libs 27 Requires: SUNWgnome-a11y-gok-root 28 Requires: SUNWgnome-panel 29 Requires: SUNWgnome-libs 30 Requires: SUNWgnome-a11y-speech 31 Requires: SUNWgnome-audio 32 Requires: SUNWgnome-component 33 Requires: SUNWgnome-config 34 Requires: SUNWlibms 35 Requires: SUNWlxml 36 Requires: SUNWdesktop-cache 37 Requires: SUNWlibcanberra 38 BuildRequires: SUNWlibglade-devel 39 BuildRequires: SUNWgnome-audio-devel 40 BuildRequires: SUNWgnome-component-devel 41 BuildRequires: SUNWgnome-config-devel 42 BuildRequires: SUNWgnome-a11y-speech-devel 43 BuildRequires: SUNWgnome-panel-devel 44 BuildRequires: SUNWgnome-libs-devel 45 BuildRequires: SUNWlibcanberra 46 47 %package root 48 Summary: %{summary} - / filesystem 49 SUNW_BaseDir: / 50 %include default-depend.inc 51 52 %if %build_l10n 53 %package l10n 54 Summary: %{summary} - l10n files 55 SUNW_BaseDir: %{_basedir} 56 %include default-depend.inc 57 Requires: %{name} 58 %endif 59 60 %prep 61 rm -rf %name-%version 62 mkdir %name-%version 63 %gok.prep -d %name-%version 64 cd %{_builddir}/%name-%version 65 gzcat %SOURCE0 | tar -xf - 66 67 %build 68 export PKG_CONFIG_PATH=%{_pkg_config_path} 69 export LDFLAGS="%_ldflags" 70 %ifarch sparc 71 export CFLAGS="%optflags -I%{_includedir}" 72 %else 73 export CFLAGS="%optflags -xO2 -I%{_includedir}" 74 %endif 75 %if %option_with_fox 76 # for <X11/extensions/XInput.h> 77 export CFLAGS="$CFLAGS -I/usr/X11/include" 78 %endif 79 export RPM_OPT_FLAGS="$CFLAGS" 80 %gok.build -d %name-%version 81 82 %install 83 rm -rf $RPM_BUILD_ROOT 84 %gok.install -d %name-%version 85 rm -rf $RPM_BUILD_ROOT%{_mandir} 86 cd %{_builddir}/%name-%version/sun-manpages 87 make install DESTDIR=$RPM_BUILD_ROOT 88 89 %if %build_l10n 90 %else 91 # REMOVE l10n FILES 92 rm -r $RPM_BUILD_ROOT%{_datadir}/locale 93 rm -r $RPM_BUILD_ROOT%{_datadir}/gok/ang 94 rm -r $RPM_BUILD_ROOT%{_datadir}/gok/[a-z][a-z] 95 rm -r $RPM_BUILD_ROOT%{_datadir}/gok/[a-z][a-z]_[A-Z][A-Z] 96 rm -r $RPM_BUILD_ROOT%{_datadir}/gok/sr@latin 97 %endif 98 99 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} 100 101 %clean 102 rm -rf $RPM_BUILD_ROOT 103 104 %post 105 %restart_fmri desktop-mime-cache icon-cache gconf-cache 106 107 %postun 108 %restart_fmri desktop-mime-cache 109 110 %files 111 %defattr (-, root, bin) 112 %dir %attr (0755, root, bin) %{_bindir} 113 %{_bindir}/* 114 %dir %attr (0755, root, bin) %{_libdir} 115 %{_libdir}/bonobo 116 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 117 %{_libdir}/pkgconfig/* 118 %dir %attr (0755, root, sys) %{_datadir} 119 %dir %attr (0755, root, other) %{_datadir}/applications 120 %{_datadir}/applications/* 121 %doc -d gok-%{gok.version} README AUTHORS 122 %doc(bzip2) -d gok-%{gok.version} COPYING NEWS ChangeLog 123 %dir %attr (0755, root, other) %{_datadir}/doc 124 %dir %attr (0755, root, other) %{_datadir}/gnome 125 %{_datadir}/gnome/help/gok/C 126 %{_datadir}/gok/C/*.kbd 127 %{_datadir}/gok/*.png 128 %{_datadir}/gok/*.kbd 129 %{_datadir}/gok/*.rc 130 %{_datadir}/gok/*.txt 131 %{_datadir}/gok/*.xam 132 %{_datadir}/sounds/freedesktop/stereo/*.wav 133 %{_datadir}/gok/glade 134 %dir %attr (-, root, other) %{_datadir}/icons 135 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 136 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 137 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps 138 %{_datadir}/icons/hicolor/48x48/apps/gok.png 139 %{_datadir}/omf/gok/gok-C.omf 140 %dir %attr (0755, root, other) %{_datadir}/pixmaps 141 %{_datadir}/pixmaps/* 142 %dir %attr(0755, root, bin) %{_mandir} 143 %dir %attr(0755, root, bin) %{_mandir}/* 144 %{_mandir}/*/* 145 146 %files root 147 %defattr (-, root, sys) 148 %dir %attr (0755, root, sys) %{_sysconfdir} 149 %{_sysconfdir}/gconf/schemas/gok.schemas 150 151 %if %build_l10n 152 %files l10n 153 %defattr (-, root, bin) 154 %dir %attr (0755, root, sys) %{_datadir} 155 %dir %attr (0755, root, bin) %{_datadir}/gok 156 %{_datadir}/gok/[a-z][a-z] 157 %{_datadir}/gok/[a-z][a-z]_[A-Z][A-Z] 158 %{_datadir}/gok/ang 159 %{_datadir}/gok/mai 160 %{_datadir}/gok/sr@latin 161 %{_datadir}/gok/ca@* 162 %defattr (-, root, other) 163 %{_datadir}/locale/[a-z][a-z] 164 %{_datadir}/locale/[a-z][a-z]_[A-Z][A-Z] 165 %{_datadir}/locale/ang 166 %{_datadir}/locale/mai 167 %{_datadir}/locale/sr@latin 168 %{_datadir}/locale/ca@* 169 %endif 170 171 %changelog 172 * Wed Oct 14 2009 - li.yuan@sun.com 173 - Add SUNWlibcanberra to Requires. 174 * Tue Sep 15 2009 - dave.lin@sun.com 175 - Add locale ca@valencia. 176 * Mon Jun 15 2009 - christian.kelly@sun.com 177 - Minor pkg'ing fix. 178 * Fri Apr 3 2009 - laca (at] sun.com 179 - use desktop-cache instead of postrun 180 * Tue Mar 24 2009 - takao.fujiwara (at] sun.com 181 - Add %{_datadir}/gok/C/*.kbd. doo 2552. 182 * Tue Mar 17 2009 - dave.lin (at] sun.com 183 - Add %{_datadir}/mai, %{_datadir}/locale/mai dir in %file l10n. 184 * Thu Sep 18 2008 - li.yuan (at] sun.com 185 - Added %doc to %files for copyright. 186 * Mon Sep 01 2008 - christian.kelly (at] sun.com 187 - Change dirs sr@Latn to sr@latin. 188 * Mon Mar 31 2008 - li.yuan (at] sun.com 189 - Add copyright file 190 * Thu Jan 10 2008 - li.yuan (at] sun.com 191 - change owner to liyuan. 192 * Thu Jan 3 2008 - laca (at] sun.com 193 - use gconf-install.script instead of an inline script 194 * Mon Nov 05 2007 - li.yuan (at] sun.com 195 - Use icon-cache.script for %post. Change the inline post script 196 to an include. 197 * Fri Oct 12 1007 - laca (at] sun.com 198 - add /usr/X11/include to CFLAGS when built with FOX 199 * Fri Sep 28 2007 - laca (at] sun.com 200 - delete SUNWxwrtl dep 201 * Mon May 28 2007 - damien.carbery (at] sun.com 202 - Add hicolor dir to %files. 203 * Tue Jan 30 2007 - brian.cameron (at] sun.com 204 - Remove the 'ang' locale files when not doing l10n build. 205 * Tue Jan 23 2007 - damien.carbery (at] sun.com 206 - Add 'ang' locale. 207 * Fri Sep 01 2006 - matt.keenan (at] sun.com 208 - New man page tarball 209 * Sat Aug 12 2006 - laca (at] sun.com 210 - delete some unnecessary env variables 211 * Fri Jul 14 2006 - laca (at] sun.com 212 - update %post/%postun/etc scripts to support diskless client setup, 213 part of 6448317 214 * Fri Jul 14 2006 - damien.carbery (at] sun.com 215 - Add %{_datadir}/locale to l10n package, byproduct of intltool update. 216 * Thu Jun 29 2006 - laca (at] sun.com 217 - update postrun scripts 218 * Mon Jun 26 2006 - laca (at] sun.com 219 - move back to /usr, part of CR 6412650 220 * Sun Jun 11 2006 - laca (at] sun.com 221 - change group from other to bin/sys 222 * Wed May 31 2006 - damien.carbery (at] sun.com 223 - Change dirs in base and l10n packages as l10n files have been moved around 224 for the 1.0.10 tarball. 225 * Thu May 25 2006 - laca (at] sun.com 226 - use post/preun scripts to install schemas into the merged gconf files 227 * Tue May 09 2006 - laca (at] sun.com 228 - merge -share pkg(s) into the base pkg(s) 229 * Mon Feb 20 2006 - damien.carbery (at] sun.com 230 - Complete update of Build/Requires after running check-deps.pl script. 231 * Thu Feb 16 2006 - damien.carbery (at] sun.com 232 - Update Build/Requires after running check-deps.pl script. 233 * Sat Dec 3 2005 - laca (at] sun.com 234 - add %post script that runs update-desktop-database 235 * Tue Nov 29 2005 - laca (at] sun.com 236 - remove javahelp stuff 237 * Mon Dec 13 2004 - damien.carbery (at] sun.com 238 - Move to /usr/sfw to implement ARC decision. 239 * Fri Nov 19 2004 - damien.carbery (at] sun.com 240 - Fix for 6197815: move unsupported app to /usr/demo/jds. 241 * Fri Nov 12 2004 - kazuhiko.maekawa (at] sun.com 242 - Added workaround fix for 6193354 243 * Wed Oct 06 2004 - matt.keenan (at] sun.com 244 - added l10n help files 245 * Sat Oct 02 2004 - laca (at] sun.com 246 - added %pkgbuild_postprocess 247 * Thu Sep 09 2004 matt.keenan (at] sun.com 248 - Added create-branching-keyboard.1, gok.1 manpages 249 * Thu Aug 26 2004 damien.carbery (at] sun.com 250 - Lower optimization level on x86 to fix 5086691 - data corruption otherwise. 251 -xO2 will take precedence over -xO4 because it is later in CFLAGS. 252 * Sat Jun 26 2004 shirley.woo (at] sun.com 253 - Changed install location to /usr/... 254 * Wed Jun 23 2004 - muktha.narayan (at] wipro.com 255 - Install schema files. 256 * Wed Jun 2 2004 - takao.fujiwara (at] sun.com 257 - Added %{_datadir}/locale to install l10n messages 258 * Tue May 18 2004 - laca (at] sun.com 259 - add gnome-speech dependency 260 * Tue Mar 23 2004 - laca (at] sun.com 261 - remove gtk-doc from %files 262 * Tue Mar 02 2004 - laca (at] sun.com 263 - add dependency on SUNWgnome-panel 264 * Fri Feb 27 2004 - laca (at] sun.com 265 - add %defattr for share subpkg 266 * Thu Feb 26 2004 - laca (at] sun.com 267 - add share %package 268 - define PERL5LIB for XML::Parser 269 270