Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-a11y-reader
      3 #
      4 # includes module(s): orca
      5 #
      6 # Copyright (c) 2005 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: dcarbery
     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-python-libs
     26 Requires: SUNWjdsrm
     27 Requires: SUNWPython
     28 Requires: SUNWgnome-base-libs
     29 Requires: SUNWbash
     30 BuildRequires: SUNWPython-devel
     31 BuildRequires: SUNWgnome-base-libs-devel
     32 BuildRequires: SUNWgnome-python-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/python"
     52 export CPPFLAGS="-I/usr/include/python2.4"
     53 export CFLAGS="%optflags -I%{_includedir} -I/usr/include/python2.4"
     54 export RPM_OPT_FLAGS="$CFLAGS"
     55 export LDFLAGS="%_ldflags"
     56 
     57 %orca.build -d %name-%version
     58 
     59 %install
     60 %orca.install -d %name-%version
     61 cd %{_builddir}/%name-%version/sun-manpages
     62 make install DESTDIR=$RPM_BUILD_ROOT
     63 
     64 %if %build_l10n
     65 %else
     66 # REMOVE l10n FILES
     67 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     68 %endif
     69 
     70 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     71 
     72 %clean
     73 rm -rf $RPM_BUILD_ROOT
     74 
     75 %post
     76 %include icon-cache.script
     77 
     78 %files 
     79 %defattr(-, root, bin)
     80 %dir %attr (0755, root, bin) %{_libdir}
     81 %{_libdir}/python?.?
     82 %dir %attr (0755, root, bin) %{_bindir}
     83 %{_bindir}/*
     84 %dir %attr (0755, root, sys) %{_datadir}
     85 %doc -d orca-%{orca.version} README AUTHORS
     86 %doc(bzip2) -d orca-%{orca.version} COPYING NEWS ChangeLog
     87 %dir %attr (0755, root, other) %{_datadir}/doc
     88 %{_datadir}/orca
     89 %dir %attr (-, root, other) %{_datadir}/icons
     90 %dir %attr (-, root, other) %{_datadir}/icons/hicolor
     91 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
     92 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
     93 %{_datadir}/icons/hicolor/16x16/apps/orca.png
     94 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
     95 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
     96 %{_datadir}/icons/hicolor/22x22/apps/orca.png
     97 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
     98 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
     99 %{_datadir}/icons/hicolor/24x24/apps/orca.png
    100 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
    101 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
    102 %{_datadir}/icons/hicolor/32x32/apps/orca.png
    103 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
    104 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
    105 %{_datadir}/icons/hicolor/48x48/apps/orca.png
    106 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
    107 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
    108 %{_datadir}/icons/hicolor/scalable/apps/orca.svg
    109 %dir %attr (0755, root, other) %{_datadir}/applications
    110 %{_datadir}/applications/orca.desktop
    111 %dir %attr(0755, root, bin) %{_mandir}
    112 %dir %attr(0755, root, bin) %{_mandir}/*
    113 %{_mandir}/*/*
    114 
    115 %if %build_l10n
    116 %files l10n
    117 %defattr (-, root, bin)
    118 %dir %attr (0755, root, sys) %{_datadir}
    119 %attr (-, root, other) %{_datadir}/locale
    120 %endif
    121 
    122 %changelog
    123 * Thu Sep 19 2008 - li.yuan@sun.com
    124 - Added %doc to %files for copyright.
    125 * Thu Apr 03 2008 - damien.carbery@sun.com
    126 - Add SUNW_Copyright.
    127 * Mon Nov 05 2007 - li.yuan@sun.com
    128 - Use icon-cache.script for %post
    129 * Thu Sep 27 2007 - laca@sun.com
    130 - delete some unnecessary env variables
    131 * Wed Aug 01 2007 - damien.carbery@sun.com
    132 - Add new icons to %files.
    133 * Mon Feb 05 2007 - damien.carbery@sun.com
    134 - Add Requires SUNWbash after check-deps.pl run.
    135 * Tue Dec 12 2006 - takao.fujiwara@sun.com
    136 - Uncomment out l10n locale dir. Fixes 6499543.
    137 * Wed Nov 15 2006 - damien.carbery@sun.com
    138 - Use %{default_pkg_version} instead of orca.version.
    139 * Mon Sep 11 2006 - Matt.Keenan@sun.com
    140 - New Manpage tarball
    141 * Tue Aug 22 2006 - damien.carbery@sun.com
    142 - Update %files after bump to 0.9.0.
    143 * Wed Aug 16 2006 - damien.carbery@sun.com
    144 - Comment out 'orca' dir until build issues with 0.2.[5-8] are resolved.
    145 * Fri Jun 16 2006 - damien.carbery@sun.com
    146 - Add %{_datadir}/orca to %files for new tarball.
    147 * Sun Jun 11 2006 - laca@sun.com
    148 - change group from other to bin/sys
    149 * Thu Feb 23 2006 - william.walker@sun.com
    150 - Update to orca-0.2.1
    151 * Mon Feb 20 2006 - damien.carbery@sun.com
    152 - Update Build/Requires after running check-deps.pl script.
    153 * Wed Nov 30 2005 - william.walker@sun.com
    154 - Update to orca-0.2.0
    155 * Thu Oct 27 2005 - laca@sun.com
    156 - rename to SUNWgnome-a11y-orca
    157 - move to vendor-packages from site-packages
    158 * Tue Sep 20 2005 - laca@sun.com
    159 - move to /usr as Python was also moved there
    160 * Thu Sep 15 2005 - laca@sun.com
    161 - define l10n subpkg; update to keep locale stuff in /usr/share
    162 * Mon Aug 29 2005 - rich.burridge@sun.com
    163 - Adjusted to put files under /usr/sfw
    164 * Thu Aug 25 2005 - rich.burridge@sun.com
    165 - Removed the 'export CC="/opt/SUNWspro/bin/cc"' line. No longer needed.
    166 * Mon Aug 15 2005 - rich.burridge@sun.com
    167 - initial version
    168