1 # 2 # spec file for package SUNWgnome-a11y-poke 3 # 4 # includes module(s): accerciser 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 %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-python26-libs 25 Requires: SUNWgnome-python26-desktop 26 Requires: SUNWPython26 27 Requires: SUNWIPython 28 Requires: SUNWgnome-config 29 Requires: %{name}-root 30 Requires: SUNWdesktop-cache 31 BuildRequires: SUNWPython26-devel 32 BuildRequires: SUNWgnome-python26-libs-devel 33 BuildRequires: SUNWgnome-python26-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 49 %prep 50 rm -rf %name-%version 51 mkdir %name-%version 52 %accerciser.prep -d %name-%version 53 cd %{_builddir}/%name-%version 54 gzcat %SOURCE0 | tar xf - 55 56 %build 57 export PYTHON="/usr/bin/python2.6" 58 59 %accerciser.build -d %name-%version 60 61 %install 62 %accerciser.install -d %name-%version 63 64 # install man page 65 rm -rf $RPM_BUILD_ROOT%{_mandir} 66 cd %{_builddir}/%name-%version/sun-manpages 67 make install DESTDIR=$RPM_BUILD_ROOT 68 69 %if %build_l10n 70 %else 71 # REMOVE l10n FILES 72 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 73 %endif 74 75 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 76 77 %clean 78 rm -rf $RPM_BUILD_ROOT 79 80 %post 81 %restart_fmri desktop-mime-cache icon-cache gconf-cache 82 83 %postun 84 %restart_fmri desktop-mime-cache 85 86 %files 87 %defattr(-,root,bin) 88 %dir %attr (0755, root, bin) %{_bindir} 89 %{_bindir}/* 90 %dir %attr (0755, root, bin) %{_libdir} 91 %{_libdir}/* 92 %dir %attr(0755, root, sys) %{_datadir} 93 %{_datadir}/accerciser 94 %dir %attr (0755, root, bin) %{_datadir}/omf 95 %{_datadir}/omf/* 96 %dir %attr (0755, root, other) %{_datadir}/applications 97 %{_datadir}/applications/*.desktop 98 %doc -d accerciser-%{accerciser.version} README AUTHORS 99 %doc(bzip2) -d accerciser-%{accerciser.version} COPYING NEWS ChangeLog 100 %dir %attr (0755, root, other) %{_datadir}/doc 101 %dir %attr (-, root, other) %{_datadir}/icons 102 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 103 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable 104 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps 105 %{_datadir}/icons/hicolor/scalable/apps/* 106 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 107 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps 108 %{_datadir}/icons/hicolor/16x16/apps/* 109 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 110 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps 111 %{_datadir}/icons/hicolor/22x22/apps/* 112 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 113 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps 114 %{_datadir}/icons/hicolor/32x32/apps/* 115 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 116 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps 117 %{_datadir}/icons/hicolor/48x48/apps/* 118 %dir %attr (0755, root, other) %{_datadir}/gnome 119 %dir %attr (0755, root, bin) %{_datadir}/gnome/help 120 %{_datadir}/gnome/help/* 121 %dir %attr (0755, root, bin) %{_mandir} 122 %dir %attr (0755, root, bin) %{_mandir}/* 123 %{_mandir}/*/* 124 125 %files root 126 %defattr (-, root, sys) 127 %dir %attr (0755, root, sys) %{_sysconfdir} 128 %dir %attr (0755, root, sys) %{_sysconfdir}/gconf 129 %dir %attr (0755, root, sys) %{_sysconfdir}/gconf/schemas 130 %{_sysconfdir}/gconf/schemas/*.schemas 131 132 %if %build_l10n 133 %files l10n 134 %defattr (-, root, bin) 135 %dir %attr (0755, root, sys) %{_datadir} 136 %attr (-, root, other) %{_datadir}/locale 137 %endif 138 139 %changelog 140 * Wed Oct 14 2009 - li.yuan@sun.com 141 - Update dependencies. 142 * Wed Oct 14 2009 - li.yuan@sun.com 143 - Use Python 2.6. 144 * Fri Apr 3 2009 - laca@sun.com 145 - use desktop-cache instead of postrun 146 * Thu Sep 18 2008 - li.yuan@sun.com 147 - Added %doc to %files for copyright. 148 * Mon Mar 31 2008 - li.yuan@sun.com 149 - Add copyright file 150 * Thu Jan 10 2008 - li.yuan@sun.com 151 - change owner to liyuan. 152 * Thu Jan 3 2008 - laca@sun.com 153 - use gconf-install.script instead of an inline script 154 * Mon Nov 12 2007 - li.yuan@sun.com 155 - Use script for post and postun. 156 * Thu Oct 4 2007 - laca@sun.com 157 - delete unneeded env vars; set PYTHON to the versioned binary 158 * Tue Sep 18 2007 - laca@sun.com 159 - add missing %defattr in %files root 160 * Thu Sep 06 2007 - damien.carbery@sun.com 161 - Add Build/Requires SUNWgnome-python-desktop/-devel for wnck and other python 162 modules. 163 * Tue Sep 04 2007 - damien.carbery@sun.com 164 - Correct dir perms in root package. 165 * Sun Sep 02 2007 - li.yuan@sun.com 166 - Use accerciser to replace at-poke. 167 * Fri Sep 01 2006 - Matt.Keenan@sun.com 168 - New Manpage tarball 169 * Sun Jun 11 2006 - laca@sun.com 170 - change group from other to bin/sys 171 * Sat May 13 2006 - laca@sun.com 172 - Remove /usr/lib/jds-private from LDFLAGS 173 * Tue May 09 2006 - laca@sun.com 174 - merge -share pkg(s) into the base pkg(s) 175 * Thu Jan 2 2006 - damien.carbery@sun.com 176 - Update Build/Requires to fix 6319720/2129498. 177 * Wed Oct 13 2004 - laca@sun.com 178 - define share subpkg, move existing %files to %files share and 179 add %files for bindir/at-poke 180 * Sat Oct 02 2004 - laca@sun.com 181 - added %pkgbuild_postprocess 182 * Mon Sep 20 2004 - damien.carbery@sun.com 183 - Correct syntax for addition of manpage. 184 * Thu Sep 09 2004 - matt.keenan@sun.com 185 - Added at-poke.1 manpage 186 * Tue Jul 20 2004 - damien.carbery@sun.com 187 - Remove SUNWgnome-xml BuildRequires. Failed in test build. 188 * Tue Jul 20 2004 - damien.carbery@sun.com 189 - Initial version. 190