1 # 2 # spec file for package SUNWgnome-a11y-poke 3 # 4 # includes module(s): accerciser 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: liyuan 11 # 12 %include Solaris.inc 13 %use accerciser = accerciser.spec 14 15 Name: SUNWgnome-a11y-poke 16 Summary: Interactive Python Accessibility Explorer 17 Version: %{default_pkg_version} 18 Source: %{name}-manpages-0.1.tar.gz 19 SUNW_BaseDir: %{_basedir} 20 SUNW_Copyright: %{name}.copyright 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 23 %include default-depend.inc 24 Requires: SUNWgnome-python-libs 25 Requires: SUNWgnome-python-desktop 26 Requires: SUNWPython 27 Requires: SUNWgnome-base-libs 28 Requires: SUNWIPython 29 Requires: SUNWgnome-config 30 BuildRequires: SUNWPython-devel 31 BuildRequires: SUNWgnome-base-libs-devel 32 BuildRequires: SUNWgnome-python-libs-devel 33 BuildRequires: SUNWgnome-python-desktop-devel 34 BuildRequires: SUNWgnome-common-devel 35 36 %if %build_l10n 37 %package l10n 38 Summary: %{summary} - l10n files 39 SUNW_BaseDir: %{_basedir} 40 %include default-depend.inc 41 Requires: %{name} 42 %endif 43 44 %package root 45 Summary: %{summary} - / filesystem 46 SUNW_BaseDir: / 47 %include default-depend.inc 48 Requires: SUNWpostrun-root 49 Requires: SUNWgnome-config 50 51 %prep 52 rm -rf %name-%version 53 mkdir %name-%version 54 %accerciser.prep -d %name-%version 55 cd %{_builddir}/%name-%version 56 gzcat %SOURCE0 | tar xf - 57 58 %build 59 export PYTHON="/usr/bin/python2.4" 60 export CPPFLAGS="-I/usr/include/python2.4" 61 export CFLAGS="%optflags -I%{_includedir} -I/usr/include/python2.4" 62 export RPM_OPT_FLAGS="$CFLAGS" 63 export LDFLAGS="%_ldflags" 64 65 %accerciser.build -d %name-%version 66 67 %install 68 %accerciser.install -d %name-%version 69 70 # install man page 71 rm -rf $RPM_BUILD_ROOT%{_mandir} 72 cd %{_builddir}/%name-%version/sun-manpages 73 make install DESTDIR=$RPM_BUILD_ROOT 74 75 %if %build_l10n 76 %else 77 # REMOVE l10n FILES 78 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 79 %endif 80 81 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 82 83 %clean 84 rm -rf $RPM_BUILD_ROOT 85 86 %post 87 %include desktop-database-install.script 88 %include icon-cache.script 89 90 %postun 91 test -x $BASEDIR/lib/postrun || exit 0 92 %include desktop-database-uninstall.script 93 94 %post root 95 %include gconf-install.script 96 97 %preun root 98 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 99 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 100 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 101 echo ' exit 0'; 102 echo '}'; 103 echo 'umask 0022'; 104 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 105 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 106 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 107 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 108 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 109 echo 'schemas="$SDIR/accerciser.schemas"'; 110 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 111 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 112 113 %files 114 %defattr(-,root,bin) 115 %dir %attr (0755, root, bin) %{_bindir} 116 %{_bindir}/* 117 %dir %attr (0755, root, bin) %{_libdir} 118 %{_libdir}/* 119 %dir %attr(0755, root, sys) %{_datadir} 120 %{_datadir}/accerciser 121 %dir %attr (0755, root, bin) %{_datadir}/omf 122 %{_datadir}/omf/* 123 %dir %attr (0755, root, other) %{_datadir}/applications 124 %{_datadir}/applications/*.desktop 125 %doc -d accerciser-%{accerciser.version} README AUTHORS 126 %doc(bzip2) -d accerciser-%{accerciser.version} COPYING NEWS ChangeLog 127 %dir %attr (0755, root, other) %{_datadir}/doc 128 %dir %attr (-, root, other) %{_datadir}/icons 129 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 130 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable 131 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps 132 %{_datadir}/icons/hicolor/scalable/apps/* 133 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 134 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps 135 %{_datadir}/icons/hicolor/16x16/apps/* 136 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 137 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps 138 %{_datadir}/icons/hicolor/22x22/apps/* 139 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 140 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps 141 %{_datadir}/icons/hicolor/32x32/apps/* 142 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 143 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps 144 %{_datadir}/icons/hicolor/48x48/apps/* 145 %dir %attr (0755, root, other) %{_datadir}/gnome 146 %dir %attr (0755, root, bin) %{_datadir}/gnome/help 147 %{_datadir}/gnome/help/* 148 %dir %attr (0755, root, bin) %{_mandir} 149 %dir %attr (0755, root, bin) %{_mandir}/* 150 %{_mandir}/*/* 151 152 %files root 153 %defattr (-, root, sys) 154 %dir %attr (0755, root, sys) %{_sysconfdir} 155 %dir %attr (0755, root, sys) %{_sysconfdir}/gconf 156 %dir %attr (0755, root, sys) %{_sysconfdir}/gconf/schemas 157 %{_sysconfdir}/gconf/schemas/*.schemas 158 159 %if %build_l10n 160 %files l10n 161 %defattr (-, root, bin) 162 %dir %attr (0755, root, sys) %{_datadir} 163 %attr (-, root, other) %{_datadir}/locale 164 %endif 165 166 %changelog 167 * Thu Sep 18 2008 - li.yuan@sun.com 168 - Added %doc to %files for copyright. 169 * Mon Mar 31 2008 - li.yuan@sun.com 170 - Add copyright file 171 * Thu Jan 10 2008 - li.yuan@sun.com 172 - change owner to liyuan. 173 * Thu Jan 3 2008 - laca@sun.com 174 - use gconf-install.script instead of an inline script 175 * Mon Nov 12 2007 - li.yuan@sun.com 176 - Use script for post and postun. 177 * Thu Oct 4 2007 - laca@sun.com 178 - delete unneeded env vars; set PYTHON to the versioned binary 179 * Tue Sep 18 2007 - laca@sun.com 180 - add missing %defattr in %files root 181 * Thu Sep 06 2007 - damien.carbery@sun.com 182 - Add Build/Requires SUNWgnome-python-desktop/-devel for wnck and other python 183 modules. 184 * Tue Sep 04 2007 - damien.carbery@sun.com 185 - Correct dir perms in root package. 186 * Sun Sep 02 2007 - li.yuan@sun.com 187 - Use accerciser to replace at-poke. 188 * Fri Sep 01 2006 - Matt.Keenan@sun.com 189 - New Manpage tarball 190 * Sun Jun 11 2006 - laca@sun.com 191 - change group from other to bin/sys 192 * Sat May 13 2006 - laca@sun.com 193 - Remove /usr/lib/jds-private from LDFLAGS 194 * Tue May 09 2006 - laca@sun.com 195 - merge -share pkg(s) into the base pkg(s) 196 * Thu Jan 2 2006 - damien.carbery@sun.com 197 - Update Build/Requires to fix 6319720/2129498. 198 * Wed Oct 13 2004 - laca@sun.com 199 - define share subpkg, move existing %files to %files share and 200 add %files for bindir/at-poke 201 * Sat Oct 02 2004 - laca@sun.com 202 - added %pkgbuild_postprocess 203 * Mon Sep 20 2004 - damien.carbery@sun.com 204 - Correct syntax for addition of manpage. 205 * Thu Sep 09 2004 - matt.keenan@sun.com 206 - Added at-poke.1 manpage 207 * Tue Jul 20 2004 - damien.carbery@sun.com 208 - Remove SUNWgnome-xml BuildRequires. Failed in test build. 209 * Tue Jul 20 2004 - damien.carbery@sun.com 210 - Initial version. 211