Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-a11y-libs
      3 #
      4 # includes module(s): at-spi java-atk-wrapper libgail-gnome freetts gnome-mag
      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 
     14 %ifarch amd64 sparcv9
     15 %include arch64.inc
     16 %use at_spi_64 = at-spi.spec
     17 %if %option_with_java
     18 %define build_java 0
     19 %use java_atk_wrapper_64 = java-atk-wrapper.spec
     20 %endif
     21 %endif
     22 
     23 %include base.inc
     24 %use at_spi = at-spi.spec
     25 %use libgail_gnome = libgail-gnome.spec
     26 %if %option_with_java
     27 %define build_java 1
     28 %use java_atk_wrapper = java-atk-wrapper.spec
     29 %endif
     30 %use freetts = freetts.spec
     31 %use gnome_mag = gnome-mag.spec
     32 
     33 Name:                    SUNWgnome-a11y-libs
     34 Summary:                 Accessibility implementation for GNOME
     35 Version:                 %{default_pkg_version}
     36 Source:                  %{name}-manpages-0.1.tar.gz
     37 SUNW_BaseDir:            %{_basedir}
     38 SUNW_Copyright:          %{name}.copyright
     39 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     40 
     41 %include default-depend.inc
     42 Requires: SUNWgtk2
     43 Requires: SUNWgnome-libs
     44 Requires: SUNWgnome-panel
     45 Requires: SUNWgnome-component
     46 Requires: SUNWgnome-config
     47 Requires: SUNWlibms
     48 Requires: SUNWlibpopt
     49 Requires: SUNWj5rt
     50 Requires: SUNWj6rt
     51 Requires: SUNWzoner
     52 Requires: SUNWzoneu
     53 Requires: SUNWpkgcmdsu
     54 Requires: %{name}-root
     55 Requires: SUNWdesktop-cache
     56 BuildRequires: SUNWgtk2-devel
     57 
     58 BuildRequires: SUNWgnome-config-devel
     59 BuildRequires: SUNWlibpopt-devel
     60 BuildRequires: SUNWgnome-panel-devel
     61 BuildRequires: SUNWgnome-libs-devel
     62 BuildRequires: SUNWgnome-panel-devel
     63 BuildRequires: SUNWgnome-component-devel
     64 
     65 %package root
     66 Summary:                 %{summary} - / filesystem
     67 SUNW_BaseDir:            /
     68 %include default-depend.inc
     69 
     70 %package devel
     71 Summary:                 %{summary} - development files
     72 SUNW_BaseDir:            %{_basedir}
     73 %include default-depend.inc
     74 Requires: SUNWperl584usr
     75 Requires: SUNWgtk2-devel
     76 Requires: SUNWgnome-libs-devel
     77 Requires: SUNWgnome-component-devel
     78 
     79 %package python26
     80 Summary:       %{summary} - Python 2.6 binding files
     81 SUNW_BaseDir:  %{_basedir}
     82 %include default-depend.inc
     83 Requires:      %{name}
     84 Requires:      SUNWPython26
     85 Requires:      SUNWgnome-python26-libs
     86 BuildRequires: SUNWPython26-devel
     87 BuildRequires: SUNWpython26-setuptools
     88 BuildRequires: SUNWgnome-python-libs-devel
     89 
     90 %if %build_l10n
     91 %package l10n
     92 Summary:                 %{summary} - l10n files
     93 SUNW_BaseDir:            %{_basedir}
     94 %include default-depend.inc
     95 Requires:                %{name}
     96 %endif
     97 
     98 %prep
     99 rm -rf %name-%version
    100 mkdir %name-%version
    101 
    102 %ifarch amd64 sparcv9
    103 mkdir %name-%version/%_arch64
    104 %at_spi_64.prep -d %name-%version/%_arch64
    105 %if %option_with_java
    106 %java_atk_wrapper_64.prep -d %name-%version/%_arch64
    107 %endif
    108 %endif
    109 
    110 mkdir %name-%version/%base_arch
    111 %at_spi.prep -d %name-%version/%base_arch
    112 %libgail_gnome.prep -d %name-%version/%base_arch
    113 %if %option_with_java
    114 %java_atk_wrapper.prep -d %name-%version/%base_arch
    115 %endif
    116 %freetts.prep -d %name-%version/%base_arch
    117 %gnome_mag.prep -d %name-%version/%base_arch
    118 cd %{_builddir}/%name-%version
    119 gzcat %SOURCE0 | tar xf -
    120 
    121 %build
    122 PKG_CONFIG_DISABLE_UNINSTALLED=
    123 unset PKG_CONFIG_DISABLE_UNINSTALLED
    124 export PKG_CONFIG_PATH="%{_pkg_config_path}:../at-spi-%{at_spi.version}"
    125 export CFLAGS="%optflags -I/usr/X11/include"
    126 export RPM_OPT_FLAGS="$CFLAGS"
    127 export LDFLAGS="%_ldflags"
    128 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
    129 
    130 %ifarch amd64 sparcv9
    131 %at_spi_64.build -d %name-%version/%_arch64
    132 %if %option_with_java
    133 %java_atk_wrapper_64.build -d %name-%version/%_arch64
    134 %endif
    135 %endif
    136 
    137 %at_spi.build -d %name-%version/%base_arch
    138 %libgail_gnome.build -d %name-%version/%base_arch
    139 %if %option_with_java
    140 %java_atk_wrapper.build -d %name-%version/%base_arch
    141 %endif
    142 %freetts.build -d %name-%version/%base_arch
    143 %gnome_mag.build -d %name-%version/%base_arch
    144 
    145 %install
    146 
    147 %ifarch amd64 sparcv9
    148 %at_spi_64.install -d %name-%version/%_arch64
    149 %endif
    150 
    151 %at_spi.install -d %name-%version/%base_arch
    152 %libgail_gnome.install -d %name-%version/%base_arch
    153 
    154 %if %option_with_java
    155 %java_atk_wrapper.install -d %name-%version/%base_arch
    156 
    157 %ifarch amd64 sparcv9
    158 %java_atk_wrapper_64.install -d %name-%version/%_arch64
    159 %endif
    160 %endif
    161 
    162 %freetts.install -d %name-%version/%base_arch
    163 %gnome_mag.install -d %name-%version/%base_arch
    164 
    165 rm -rf $RPM_BUILD_ROOT%{_mandir}
    166 cd %{_builddir}/%name-%version/sun-manpages
    167 make install DESTDIR=$RPM_BUILD_ROOT
    168 
    169 # Remove .la files.
    170 rm -f $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/GNOME_Magnifier_module.la
    171 # Remove .pyo files
    172 find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \;
    173 
    174 # Remove empty dir
    175 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gnome-mag-*/reference/html
    176 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gnome-mag-*/reference
    177 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gnome-mag-*
    178 
    179 %if %build_l10n
    180 %else
    181 # REMOVE l10n FILES
    182 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    183 %endif
    184 
    185 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    186 
    187 %clean
    188 rm -rf $RPM_BUILD_ROOT
    189 
    190 %post
    191 %restart_fmri gconf-cache
    192 
    193 %files
    194 %defattr (-, root, bin)
    195 %ifarch amd64 sparcv9
    196 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
    197 %{_libdir}/%{_arch64}/lib*.so*
    198 %{_libdir}/%{_arch64}/bonobo
    199 %{_libdir}/%{_arch64}/gtk-2.0/modules/at-spi-corba/modules/*.so
    200 %{_libexecdir}/%{_arch64}/at-spi-registryd
    201 %{_libdir}/%{_arch64}/orbit-2.0/*.so
    202 %endif
    203 
    204 %dir %attr (0755, root, bin) %{_bindir}
    205 %{_bindir}/*
    206 %dir %attr (0755, root, bin) %{_libdir}
    207 %{_libdir}/lib*.so*
    208 %{_libdir}/bonobo
    209 %{_libdir}/gtk-2.0/modules/at-spi-corba/modules/*.so
    210 %{_libdir}/gtk-2.0/modules/*.so
    211 %{_libdir}/orbit-2.0/*.so
    212 %{_libexecdir}/at-spi-registryd
    213 %dir %attr (0755, root, sys) %{_datadir}
    214 %dir %attr (0755, root, sys) %{_datadir}/lib
    215 %doc -d %{base_arch} at-spi-%{at_spi.version}/README 
    216 %doc -d %{base_arch} at-spi-%{at_spi.version}/AUTHORS
    217 %doc(bzip2) -d %{base_arch} at-spi-%{at_spi.version}/COPYING 
    218 %doc(bzip2) -d %{base_arch} at-spi-%{at_spi.version}/NEWS 
    219 %doc(bzip2) -d %{base_arch} at-spi-%{at_spi.version}/ChangeLog
    220 %doc -d %{base_arch} freetts/freetts-%{freetts.version}/license.terms 
    221 %doc -d %{base_arch} freetts/freetts-%{freetts.version}/acknowledgments.txt 
    222 %doc -d %{base_arch} freetts/freetts-%{freetts.version}/ANNOUNCE.txt 
    223 %doc -d %{base_arch} freetts/freetts-%{freetts.version}/RELEASE_NOTES 
    224 %doc -d %{base_arch} freetts/freetts-%{freetts.version}/README.txt
    225 %doc -d %{base_arch} gnome-mag-%{gnome_mag.version}/README 
    226 %doc -d %{base_arch} gnome-mag-%{gnome_mag.version}/AUTHORS 
    227 %doc -d %{base_arch} gnome-mag-%{gnome_mag.version}/colorblind/colorblind-applet.py
    228 %doc(bzip2) -d %{base_arch} gnome-mag-%{gnome_mag.version}/COPYING 
    229 %doc(bzip2) -d %{base_arch} gnome-mag-%{gnome_mag.version}/NEWS 
    230 %doc(bzip2) -d %{base_arch} gnome-mag-%{gnome_mag.version}/ChangeLog
    231 %if %option_with_java
    232 %doc -d %{base_arch} java-atk-wrapper-%{java_atk_wrapper.version}/README 
    233 %doc -d %{base_arch} java-atk-wrapper-%{java_atk_wrapper.version}/AUTHORS
    234 %doc(bzip2) -d %{base_arch} java-atk-wrapper-%{java_atk_wrapper.version}/COPYING.LESSER 
    235 %doc(bzip2) -d %{base_arch} java-atk-wrapper-%{java_atk_wrapper.version}/NEWS
    236 %endif
    237 %doc -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/README 
    238 %doc -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/AUTHORS
    239 %doc(bzip2) -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/COPYING 
    240 %doc(bzip2) -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/NEWS 
    241 %doc(bzip2) -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/ChangeLog
    242 %dir %attr (0755, root, other) %{_datadir}/doc
    243 %{_datadir}/doc/at-spi-%{at_spi.version}/*
    244 %{_datadir}/gnome-mag
    245 
    246 %if %option_with_java
    247 %{_basedir}/jdk/instances/*/jre/lib/accessibility.properties
    248 %{_basedir}/jdk/instances/*/jre/lib/ext/java-atk-wrapper.jar
    249 %endif
    250 %{_datadir}/lib/freetts
    251 
    252 %files devel
    253 %ifarch amd64 sparcv9
    254 %defattr (-, root, bin)
    255 %dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
    256 %{_libdir}/%{_arch64}/pkgconfig/*
    257 %endif
    258 %defattr (-, root, bin)
    259 %dir %attr (0755, root, bin) %{_libdir}
    260 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    261 %{_libdir}/pkgconfig/*
    262 %dir %attr (0755, root, bin) %{_includedir}
    263 %{_includedir}/*
    264 %dir %attr (0755, root, sys) %{_datadir}
    265 %{_datadir}/idl
    266 %{_datadir}/gtk-doc
    267 %dir %attr(0755, root, bin) %{_mandir}
    268 %dir %attr(0755, root, bin) %{_mandir}/*
    269 %{_mandir}/*/*
    270 
    271 %files root
    272 %defattr (-, root, sys)
    273 %attr (0755, root, sys) %dir %{_sysconfdir}
    274 %{_sysconfdir}/gconf/schemas/at-spi.schemas
    275 %{_sysconfdir}/xdg/autostart/at-spi-registryd.desktop
    276 
    277 %if %build_l10n
    278 %files l10n
    279 %defattr (-, root, bin)
    280 %dir %attr (0755, root, sys) %{_datadir}
    281 %attr (-, root, other) %{_datadir}/locale
    282 %endif
    283 
    284 %files python26
    285 %defattr (-, root, bin)
    286 %dir %attr (0755, root, bin) %{_libdir}
    287 %dir %attr (0755, root, bin) %{_libdir}/python2.6
    288 %dir %attr (0755, root, bin) %{_libdir}/python2.6/vendor-packages
    289 %{_libdir}/python2.6/vendor-packages/*
    290 
    291 %changelog
    292 * Tue Nov 17 2009 - li.yuan@sun.com
    293 - Bump at-spi to 1.29.2.
    294 * Thu Nov 05 2009 - li.yuan@sun.com
    295 - Remove pyatspi for python 2.4. Remove pyspi.
    296 * Wed Aug 26 2009 - li.yuan@sun.com
    297 - Add .desktop file.
    298 * Thu Jul 23 2009 - christian.kelly@sun.com
    299 - Comment out --with-java blocks temporarily. 
    300 * Sun Jul 19 2009 - christian.kelly@sun.com
    301 - Started overwriting /usr/java, rm this for now.
    302 * Thu Jul 16 2009 - ke.wang@sun.com
    303 - Bump java-atk-wrapper to 0.27.4
    304 * Mon Jul 06 2009 - ke.wang@sun.com
    305 - Use java-atk-wrapper to take the place of java-access-bridge
    306 * Tue Jun 09 2009 - ke.wang@sun.com
    307 - Add 64-bit support for java-access-bridge
    308 * Tue Jun 02 2009 - dave.lin@sun.com
    309 - fixed dependency issue(CR6845023).
    310 * Tue Apr 14 2009 - dave.lin@sun.com
    311 - set PKG_CONFIG_TOP_BUILD_DIR to fix top_builddir issue when using at-spi uninstalled pc file
    312 * Fri Apr  3 2009 - laca@sun.com
    313 - use desktop-cache instead of postrun
    314 * Wed Mar 25 2009 - li.yuan@sun.com
    315 - Move pyspi from SUNWgnome-python-libs to SUNWgnome-a11y-libs.
    316 * Tue Mar 24 2009 - jeff.cai@sun.com
    317 - Since /usr/lib/amd64/pkgconfig/libloginhelper-1.0.pc
    318   (SUNWgnome-a11y-libs-devel) requires
    319   /usr/lib/amd64/pkgconfig/libbonobo-2.0.pc which is found in
    320   SUNWgnome-component-devel, add the dependency.
    321 * Fri Feb 27 2009 - li.yuan@sun.com
    322 - Add support to multi versions of python.
    323 * Fri Jan 09 2009 - jeff.cai@sun.com
    324 - Ship a JNI library for java-access-bridge
    325 * Fri Oct 12 2008 - jeff.cai@sun.com
    326 - Create symbol links for accessibility.properties and gnome-java-bridge.jar
    327   as parts of the package.
    328   In the previous versions,  the symbol links are created in post scripts which
    329   will not be executed in OpenSolaris.
    330   Fix d.o.o bug #5253
    331 * Fri Oct 12 2008 - jeff.cai@sun.com
    332 - Change rmdir to rm -rf since the doc pathes of gnome-mag are not
    333   empty after the integration of SUNWdoxygen.
    334   We still don't ship references of gnome-mag for now.
    335 * Wed Oct 08 2008 - li.yuan (at] sun.com
    336 - Do postrun for root package.
    337 * Mon Sep 29 2008 - christian.kelly (at] sun.com
    338 - Added -root pkg for /etc/gconf/schemas/at-spi-schmeas.
    339 * Mon Sep 22 2008 - dave.lin (at] sun.com
    340 - Removed the empty dir /usr/share/doc/gnome-mag*
    341 * Thu Sep 18 2008 - li.yuan (at] sun.com
    342 - Added %doc to %files for copyright.
    343 * Wed Sep 03 2008 - dave.lin (at] sun.com
    344 - Add %defattr (-, root, bin) for "/usr/lib/amd/pkgconfig" dir, otherwise
    345   the pc files have "gbuild" ownership
    346 * Tue Aug 05 2008 - li-yan.zhang (at] sun.com
    347 - Add manpages.
    348 * Wed Jul 09 2008 - damien.carbery (at] sun.com
    349 - Remove EXTRA_LDFLAGS after adding patch to at-spi.
    350 * Wed Jul 09 2008 - li.yuan (at] sun.com
    351 - Put %defattr prior to new files.
    352 * Wed Jul 09 2008 - li.yuan (at] sun.com
    353 - Move login-helper to EXTRA_LDFLAGS and add arch infomation so libraries depend
    354   on it can find it in the right place. Also add 
    355   %{_libdir}/%{_arch64}/bonobo/servers/*.server to the file section.
    356 * Tue Jul 08 2008 - damien.carbery (at] sun.com
    357 - Set ACLOCAL_FLAGS for use in gnome-mag.spec.
    358 * Mon Jul 07 2008 - li.yuan (at] sun.com
    359 - Fix 6697334. Add 64 bit libraries support for at-spi.
    360 * Mon Mar 31 2008 - li.yuan (at] sun.com
    361 - Add copyright file
    362 * Wed Mar 19 2008 - dermot.mccluskey (at] sun.com
    363 - Add dep on SUNWj6rt so that gnome-java-bridge.jar and accessibility.properties
    364   get installed in correct /usr/java link location. Fixes 6641866.
    365 * Thu Jan 10 2008 - li.yuan (at] sun.com
    366 - change owner to liyuan.
    367 * Sun Oct  7 2007 - laca (at] sun.com
    368 - add /usr/X11/include to CFLAGS
    369 - delete Nevada X deps
    370 * Fri Sep 28 2007 - laca (at] sun.com
    371 - disable java access bridge if build without java support
    372 * Wed Sep 05 2007 - damien.carbery (at] sun.com
    373 - Remove references to SUNWgnome-a11y-base-libs as its contents have been
    374   moved to SUNWgnome-base-libs.
    375 * Thu Jun 07 2007 - damien.carbery (at] sun.com
    376 - Add %{_libdir}/python?.? to %files and remove .pyo files in %install.
    377 * Tue Mar 13 2007 - damien.carbery (at] sun.com
    378 - Incorporate %post changes from Mary Ding. Fixes 6531193.
    379 * Mon Mar 05 2007 - damien.carbery (at] sun.com
    380 - Add Build/Requires SUNWgnome-config/-devel as gconf-2.0.pc is needed.
    381 * Fri Sep 01 2006 - Matt.Keenan (at] sun.com
    382 - New Manpage tarball
    383 * Sat Aug 12 2006 - laca (at] sun.com
    384 - delete some unnecessary env variables
    385 * Fri Jul 14 2006 - damien.carbery (at] sun.com
    386 - Remove .la files before packaging.
    387 * Thu Jun 22 2006 - damien.carbery (at] sun.com
    388 - Change 'return 0' to 'exit 0' in main function in %post share. Fixes 6437617.
    389 * Tue Jun 13 2006 - damien.carbery (at] sun.com
    390 - Add dependencies on SUNWzoner/u and SUNWpkgcmdsu for zonename and pkgcond
    391   binaries that are used in the postinstall script. As suggested in 6377106.
    392 * Sun Jun 11 2006 - laca (at] sun.com
    393 - change group from other to bin/sys
    394 * Tue May 30 2006 - damien.carbery (at] sun.com
    395 - Merge postinstall script from JDS3.1 branch. Include fix for 6431039.
    396 * Tue May 09 2006 - laca (at] sun.com
    397 - merge -share pkg(s) into the base pkg(s)
    398 * Fri May 05 2006 - damien.carbery (at] sun.com
    399 - Copy postinstall script from JDS3.1 branch. Incorporate dynamic code.
    400 * Tue Mar 14 2006 - damien.carbery (at] sun.com
    401 - Add doc dir to share package.
    402 * Mon Feb 20 2006 - damien.carbery (at] sun.com
    403 - Complete update of Build/Requires after running check-deps.pl script.
    404 * Thu Feb 16 2006 - damien.carbery (at] sun.com
    405 - Update Build/Requires after running check-deps.pl script.
    406 - Move Requires SUNWj5rt to share package as postinstall that installs the 
    407   symlink under a SUNWj5rt directory is in share package. Make base package
    408   require share package.
    409 * Fri Dec 02 2005 - damien.carbery (at] sun.com
    410 - Add Requires SUNWj5rt so that symlink can be created.
    411 * Mon Nov 21 2005 - damien.carbery (at] sun.com
    412 - Add %post share code to accomodate zones. Bug 6347858. Copied from 
    413   cinnabar-solaris branch.
    414 * Mon Sep 12 2005 - laca (at] sun.com
    415 - define l10n subpkg
    416 * Tue Jun 14 2005 - brian.cameron (at] sun.com
    417 - Fix packaging.
    418 * Fri Jun 10 2005 - damien.carbery (at] sun.com
    419 - Call %freetts.build, and add lib/freetts dir to share package.
    420 * Mon Nov 22 2004 - damien.carbery (at] sun.com
    421 - Fix for 6197816: gnopernicus moved to /usr/demo/jds so gnome-mag moved to
    422   SUNWgnome-a11y-libs package to remain in /usr/bin.
    423 * Sat Oct 02 2004 - laca (at] sun.com
    424 - added %pkgbuild_postprocess
    425 * Mon Aug 30 2004 - shirley.woo (at] sun.com
    426 - Bug 5091588 : sman3/4  files should be in a devel package
    427 * Mon Aug 23 2004 - laca (at] sun.com
    428 - s/SUNWpl5u/SUNWperl584usr/
    429 * Wed Aug 18 2004 - brian.cameron (at] sun.com
    430 - Added back gtk-docs to packaging.  Needed because the at-cspi docs
    431   are referred to from the libcspi.3 man page.
    432 * Wed Aug 18 2004 - damien.carbery (at] sun.com
    433 - Change manpage perms for Solaris integration.
    434 * Fri Jul 23 2004 - damien.carbery (at] sun.com
    435 - Move freetts from SUNWgnome-a11y-speech.
    436 * Tue Jun 22 2004 - shirley.woo (at] sun.com
    437 - changed install location to /usr/lib and /usr/bin
    438 * Wed Apr 14 2004 - padraig.obriain (at] sun.com
    439 - Add entry to %files for accessibility.properties and gnome-java-bridge.jar
    440 * Fri Mar 26 2004 - laca (at] sun.com
    441 - add panel dependency
    442 * Wed Mar 24 2004 - brian.cameron (at] sun.com
    443 - Added SGML man page integration
    444 * Tue Mar 23 2004 - laca (at] sun.com
    445 - Remove gtk-doc and _datadir/lib from %files
    446 * Thu Feb 26 2004 - laca (at] sun.com
    447 - Add devel-share subpkg for idl files and api docs
    448 
    449