1 # 2 # spec file for package SUNWgnome-a11y-reader 3 # 4 # includes module(s): orca 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 orca = orca.spec 14 15 Name: SUNWgnome-a11y-reader 16 Summary: Orca screen reader/magnifier 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 # obsoletes SUNWgnome-orca: 25 Requires: SUNWgnome-python26-libs 26 Requires: SUNWgnome-a11y-libs-python26 27 Requires: SUNWjdsrm 28 Requires: SUNWPython26 29 Requires: SUNWbash 30 Requires: SUNWdesktop-cache 31 BuildRequires: SUNWPython26-devel 32 BuildRequires: SUNWgnome-python26-libs-devel 33 34 %if %build_l10n 35 %package l10n 36 Summary: %{summary} - l10n files 37 SUNW_BaseDir: %{_basedir} 38 %include default-depend.inc 39 Requires: %{name} 40 %endif 41 42 %prep 43 rm -rf %name-%version 44 mkdir %name-%version 45 %orca.prep -d %name-%version 46 cd %{_builddir}/%name-%version 47 gzcat %SOURCE0 | tar xf - 48 49 %build 50 export PKG_CONFIG_PATH=%{_pkg_config_path} 51 export PYTHON="/usr/bin/python2.6" 52 export RPM_OPT_FLAGS="$CFLAGS" 53 export LDFLAGS="%_ldflags" 54 55 %orca.build -d %name-%version 56 57 %install 58 %orca.install -d %name-%version 59 cd %{_builddir}/%name-%version/sun-manpages 60 make install DESTDIR=$RPM_BUILD_ROOT 61 62 %if %build_l10n 63 %else 64 # REMOVE l10n FILES 65 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 66 %endif 67 68 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 69 70 %clean 71 rm -rf $RPM_BUILD_ROOT 72 73 %post 74 %restart_fmri icon-cache desktop-mime-cache 75 76 %postun 77 %restart_fmri desktop-mime-cache 78 79 %files 80 %defattr(-, root, bin) 81 %dir %attr (0755, root, bin) %{_libdir} 82 %{_libdir}/python?.? 83 %dir %attr (0755, root, bin) %{_bindir} 84 %{_bindir}/* 85 %dir %attr (0755, root, sys) %{_datadir} 86 %doc -d orca-%{orca.version} README AUTHORS 87 %doc(bzip2) -d orca-%{orca.version} COPYING NEWS ChangeLog 88 %dir %attr (0755, root, other) %{_datadir}/doc 89 %{_datadir}/orca 90 %dir %attr (-, root, other) %{_datadir}/icons 91 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 92 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 93 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps 94 %{_datadir}/icons/hicolor/16x16/apps/orca.png 95 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 96 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps 97 %{_datadir}/icons/hicolor/22x22/apps/orca.png 98 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 99 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps 100 %{_datadir}/icons/hicolor/24x24/apps/orca.png 101 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 102 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps 103 %{_datadir}/icons/hicolor/32x32/apps/orca.png 104 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 105 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps 106 %{_datadir}/icons/hicolor/48x48/apps/orca.png 107 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable 108 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps 109 %{_datadir}/icons/hicolor/scalable/apps/orca.svg 110 %dir %attr (0755, root, other) %{_datadir}/applications 111 %{_datadir}/applications/orca.desktop 112 %dir %attr(0755, root, bin) %{_mandir} 113 %dir %attr(0755, root, bin) %{_mandir}/* 114 %{_mandir}/*/* 115 116 %if %build_l10n 117 %files l10n 118 %defattr (-, root, bin) 119 %dir %attr (0755, root, sys) %{_datadir} 120 %attr (-, root, other) %{_datadir}/locale 121 %endif 122 123 %changelog 124 * Thu Nov 06 2009 - li.yuan@sun.com 125 - Update dependencies. 126 * Thu Oct 15 2009 - li.yuan@sun.com 127 - Use Python 2.6. 128 * Tue Oct 13 2009 - william.walker@sun.com 129 - Use %{default_python_version} instead of hardcoding the version 130 * Mon Oct 5 2009 - william.walker@sun.com 131 - Bump python from 2.4 to 2.6. The C compiler flags are no longer needed 132 since Orca no longer has any C-based modules. 133 * Fri Aug 21 2009 - li.yuan@sun.com 134 - Change owner to liyuan. 135 * Sat Apr 4 2009 - laca@sun.com 136 - use desktop-cache instead of postrun 137 * Thu Sep 19 2008 - li.yuan@sun.com 138 - Added %doc to %files for copyright. 139 * Thu Apr 03 2008 - damien.carbery@sun.com 140 - Add SUNW_Copyright. 141 * Mon Nov 05 2007 - li.yuan@sun.com 142 - Use icon-cache.script for %post 143 * Thu Sep 27 2007 - laca@sun.com 144 - delete some unnecessary env variables 145 * Wed Aug 01 2007 - damien.carbery@sun.com 146 - Add new icons to %files. 147 * Mon Feb 05 2007 - damien.carbery@sun.com 148 - Add Requires SUNWbash after check-deps.pl run. 149 * Tue Dec 12 2006 - takao.fujiwara@sun.com 150 - Uncomment out l10n locale dir. Fixes 6499543. 151 * Wed Nov 15 2006 - damien.carbery@sun.com 152 - Use %{default_pkg_version} instead of orca.version. 153 * Mon Sep 11 2006 - Matt.Keenan@sun.com 154 - New Manpage tarball 155 * Tue Aug 22 2006 - damien.carbery@sun.com 156 - Update %files after bump to 0.9.0. 157 * Wed Aug 16 2006 - damien.carbery@sun.com 158 - Comment out 'orca' dir until build issues with 0.2.[5-8] are resolved. 159 * Fri Jun 16 2006 - damien.carbery@sun.com 160 - Add %{_datadir}/orca to %files for new tarball. 161 * Sun Jun 11 2006 - laca@sun.com 162 - change group from other to bin/sys 163 * Thu Feb 23 2006 - william.walker@sun.com 164 - Update to orca-0.2.1 165 * Mon Feb 20 2006 - damien.carbery@sun.com 166 - Update Build/Requires after running check-deps.pl script. 167 * Wed Nov 30 2005 - william.walker@sun.com 168 - Update to orca-0.2.0 169 * Thu Oct 27 2005 - laca@sun.com 170 - rename to SUNWgnome-a11y-orca 171 - move to vendor-packages from site-packages 172 * Tue Sep 20 2005 - laca@sun.com 173 - move to /usr as Python was also moved there 174 * Thu Sep 15 2005 - laca@sun.com 175 - define l10n subpkg; update to keep locale stuff in /usr/share 176 * Mon Aug 29 2005 - rich.burridge@sun.com 177 - Adjusted to put files under /usr/sfw 178 * Thu Aug 25 2005 - rich.burridge@sun.com 179 - Removed the 'export CC="/opt/SUNWspro/bin/cc"' line. No longer needed. 180 * Mon Aug 15 2005 - rich.burridge@sun.com 181 - initial version 182