1 # 2 # spec file for package SUNWgnome-a11y-dasher 3 # 4 # includes module(s): dasher 5 # 6 # Copyright 2008 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 # Owner: yippi 11 # 12 %include Solaris.inc 13 14 %use dasher = dasher.spec 15 16 Name: SUNWgnome-a11y-dasher 17 Summary: Predictive text entry system 18 Version: %{dasher.version} 19 Source: %{name}-manpages-0.1.tar.gz 20 SUNW_BaseDir: %{_prefix} 21 SUNW_Copyright: %{name}.copyright 22 BuildRoot: %{_tmppath}/%{name}-%{version}-build 23 %include default-depend.inc 24 BuildRequires: SUNWgnome-base-libs-devel 25 BuildRequires: SUNWgnome-libs-devel 26 BuildRequires: SUNWgnome-a11y-libs-devel 27 BuildRequires: SUNWsfwhea 28 BuildRequires: SUNWgnome-a11y-speech-devel 29 BuildRequires: SUNWgnome-component-devel 30 BuildRequires: SUNWgnome-config-devel 31 BuildRequires: SUNWgnome-vfs-devel 32 BuildRequires: SUNWlibpopt-devel 33 Requires: SUNWlexpt 34 Requires: SUNWgnome-a11y-libs 35 Requires: SUNWgnome-a11y-speech 36 Requires: SUNWgnome-base-libs 37 Requires: SUNWgnome-libs 38 Requires: SUNWgnome-component 39 Requires: SUNWgnome-config 40 Requires: SUNWgnome-vfs 41 Requires: SUNWlibpopt 42 Requires: SUNWlibC 43 Requires: SUNWlibms 44 Requires: SUNWpostrun 45 46 %package root 47 Summary: %{summary} - / filesystem 48 SUNW_BaseDir: / 49 %include default-depend.inc 50 Requires: SUNWpostrun-root 51 Requires: SUNWgnome-config 52 53 %if %build_l10n 54 %package l10n 55 Summary: %{summary} - l10n files 56 SUNW_BaseDir: %{_basedir} 57 %include default-depend.inc 58 Requires: %{name} 59 %endif 60 61 %prep 62 rm -rf %name-%version 63 mkdir %name-%version 64 %dasher.prep -d %name-%version 65 cd %{_builddir}/%name-%version 66 gzcat %SOURCE0 | tar xf - 67 68 %build 69 export PKG_CONFIG_PATH=%{_pkg_config_path} 70 export CFLAGS="%optflags -I/usr/sfw/include" 71 export CPPFLAGS="-I/usr/sfw/include" 72 export CXXFLAGS="%cxx_optflags -staticlib=stlport4" 73 export RPM_OPT_FLAGS="$CFLAGS" 74 export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib" 75 %dasher.build -d %name-%version 76 77 %install 78 %dasher.install -d %name-%version 79 rm -rf $RPM_BUILD_ROOT%{_mandir} 80 cd %{_builddir}/%name-%version/sun-manpages 81 make install DESTDIR=$RPM_BUILD_ROOT 82 83 %if %build_l10n 84 %else 85 # REMOVE l10n FILES 86 rm -r $RPM_BUILD_ROOT%{_datadir}/locale 87 %endif 88 rm -rf $RPM_BUILD_ROOT/var 89 90 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT} 91 92 %clean 93 rm -rf $RPM_BUILD_ROOT 94 95 %post 96 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 97 echo '/usr/bin/update-desktop-database' 98 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 99 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 100 echo '/usr/bin/scrollkeeper-update' 101 ) | $BASEDIR/lib/postrun -b -u -c JDS 102 103 %postun 104 test -x $BASEDIR/lib/postrun || exit 0 105 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 106 echo '/usr/bin/update-desktop-database' 107 ) | $BASEDIR/lib/postrun -b -u -c JDS 108 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 109 echo '/usr/bin/scrollkeeper-update' 110 ) | $BASEDIR/lib/postrun -b -u -c JDS 111 112 %post root 113 %include gconf-install.script 114 115 %preun root 116 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 117 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 118 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 119 echo ' exit 0'; 120 echo '}'; 121 echo 'umask 0022'; 122 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 123 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 124 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 125 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 126 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 127 echo 'schemas="$SDIR/dasher.schemas"'; 128 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 129 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 130 131 %files 132 %defattr (-, root, bin) 133 %dir %attr (0755, root, bin) %{_bindir} 134 %{_bindir}/* 135 %dir %attr (0755, root, sys) %{_datadir} 136 %dir %attr (0755, root, other) %{_datadir}/applications 137 %{_datadir}/applications/* 138 %{_datadir}/dasher 139 %dir %attr (0755, root, other) %{_datadir}/gnome 140 %{_datadir}/gnome/help 141 %attr (-, root, other) %{_datadir}/icons 142 %doc -d dasher-%{dasher.version} AUTHORS README 143 %doc(bzip2) -d dasher-%{dasher.version} COPYING NEWS 144 %doc(bzip2) -d dasher-%{dasher.version} ChangeLog po/ChangeLog 145 %doc(bzip2) -d dasher-%{dasher.version} Data/Help/Gnome/ChangeLog 146 %dir %attr (0755, root, other) %{_datadir}/doc 147 %dir %attr (0755, root, bin) %{_datadir}/man 148 %dir %attr (0755, root, bin) %{_datadir}/man/man1 149 %{_datadir}/man/man1/* 150 %{_datadir}/omf 151 152 %files root 153 %defattr (-, root, sys) 154 %attr (0755, root, sys) %dir %{_sysconfdir} 155 %{_sysconfdir}/gconf/schemas/dasher.schemas 156 157 %if %build_l10n 158 %files l10n 159 %defattr (-, root, bin) 160 %dir %attr (0755, root, sys) %{_datadir} 161 %attr (-, root, other) %{_datadir}/locale 162 %endif 163 164 %changelog 165 * Fri Sep 11 2008 - brian.cameron@sun.com 166 - Add new copyright files. 167 * Wed Apr 02 2008 - brian.cameron@sun.com 168 - Add SUNW_Copyright 169 * Thu Jan 3 2008 - laca@sun.com 170 - use gconf-install.script instead of an inline script 171 * Fri Sep 28 2007 - laca@sun.com 172 - delete Nevada X deps 173 - delete some unneeded env vars 174 * Sat Aug 18 2007 - damien.carbery@sun.com 175 - Add -f to rm call to delete /var in %install. 176 * Wed May 16 2007 - damien.carbery@sun.com 177 - Set CPPFLAGS in %build so that expat.h under /usr/sfw/include can be found. 178 * Tue Apr 24 2007 - laca@sun.com 179 - s/0755/-/ in defattr so that files are not made all executable 180 * Thu Jan 04 2007 - damien.carbery@sun.com 181 - Remove '-f' from rm calls so that changes that require spec file changes are 182 seen quickly. 183 * Wed Dec 06 2006 - damien.carbery@sun.com 184 - Add root package for dasher.schemas, and %post/%preun scripts to accompany 185 the new package. 186 * Mon Aug 28 2006 - brian.cameron@sun.com 187 - install the NROFF manpage until we convert it to SGML. 188 * Sat Aug 12 2006 - laca@sun.com 189 - change datadir/icons permissions back to root:other since it's a stable 190 interface and wasn't supposed to be changed 191 * Thu Jul 27 2006 - damien.carbery@sun.com 192 - Delete scrollkeeper files before packaging. 193 * Fri Jul 14 2006 - laca@sun.com 194 - update %post/%postun/etc scripts to support diskless client setup, 195 part of 6448317 196 * Thu Jun 29 2006 - laca@sun.com 197 - update postrun scripts 198 * Fri Jun 23 2006 - brian.cameron@sun.com 199 - Remove '-library=stlport' from CXXFLAGS so it the library is not dynamically 200 linked. 201 * Sun Jun 11 2006 - laca@sun.com 202 - change group from other to bin/sys 203 * Thu May 04 2006 - laca@sun.com 204 - merge -share pkg(s) into the base pkg(s) 205 * Thu Feb 23 2006 - damien.carbery@sun.com 206 - Update Build/Requires after running check-deps.pl script. 207 * Tue Feb 14 2006 - damien.carbery@sun.com 208 - Set CXXFLAGS to find stlport4. 209 * Sat Dec 3 2005 - laca@sun.com 210 - add %post script that runs update-desktop-database 211 * Fri Sep 30 2005 - brian.cameron@sun.com 212 - Correct packaging. 213 * Tue Sep 20 2005 - laca@sun.com 214 - add /usr/sfw/ to LDFLAGS and CFLAGS 215 - add expat dependencies 216 * Tue Sep 20 2005 - glynn.foster@sun.com 217 - Initial SUNWgnome-a11y-dasher package 218