Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package at-spi
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: padraig
      9 #
     10 Name:         at-spi
     11 License:      LGPL
     12 Group:        System/Libraries
     13 Version:      1.7.12
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      Assistive Technology Service Provider Interface
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.7/%{name}-%{version}.tar.bz2
     19 Source1:      at-spi.3.gz
     20 Source2:      libcspi.3.gz
     21 #owner:padraig date:2006-10-11 type:bug bugster:6457388 bugzilla:361386/369377
     22 Patch1:       at-spi-01-fix-leak.diff
     23 URL:          http://developer.gnome.org/projects/gap/
     24 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     25 Docdir:       %{_defaultdocdir}/%{name}
     26 Autoreqprov:  on
     27 Prereq:	      /sbin/ldconfig
     28 
     29 %define gtk2_version 2.4.0
     30 %define libbonobo_version 2.6.0
     31 %define atk_version 1.7.2
     32 %define gail_version 1.6.3
     33 
     34 BuildRequires: gtk2-devel >= %{gtk2_version}
     35 BuildRequires: libbonobo-devel >= %{libbonobo_version}
     36 BuildRequires: gail-devel >= %{gail_version}
     37 Requires:      gtk2 >= %{gtk2_version}
     38 Requires:      libbonobo >= %{libbonobo_version}
     39 Requires:      gail >= %{gail_version}
     40 
     41 %description
     42 at-spi allows assistive technologies to access GTK-based
     43 applications. Essentially it exposes the internals of applications for
     44 automation, so tools such as screen readers, magnifiers, or even
     45 scripting interfaces can query and interact with GUI controls.
     46 
     47 %package devel
     48 Summary:	Assistive Technology Service Provider Developer Interface
     49 Group:		Development/Libraries/GNOME
     50 Requires:	%{name} = %{version}
     51 Requires:       libbonobo-devel >= %{libbonobo_version}
     52 Requires:       atk-devel >= %{atk_version}
     53 
     54 %description devel
     55 at-spi allows assistive technologies to access GTK-based
     56 applications. Essentially it exposes the internals of applications for
     57 automation, so tools such as screen readers, magnifiers, or even
     58 scripting interfaces can query and interact with GUI controls.
     59 
     60 %prep
     61 %setup -q
     62 %patch1 -p1
     63 
     64 
     65 %build
     66 %ifos linux
     67 if [ -x /usr/bin/getconf ]; then
     68   CPUS=`getconf _NPROCESSORS_ONLN`
     69 fi
     70 %else
     71   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     72 %endif
     73 if test "x$CPUS" = "x" -o $CPUS = 0; then
     74   CPUS=1
     75 fi
     76 
     77 aclocal $ACLOCAL_FLAGS
     78 automake -a -c -f
     79 autoconf
     80 CFLAGS="$RPM_OPT_FLAGS"			\
     81 ./configure --prefix=%{_prefix}			\
     82             --sysconfdir=%{_sysconfdir}		\
     83 	    --mandir=%{_mandir}			\
     84 	    --libexecdir=%{_libexecdir}		\
     85 	    %{gtk_doc_option}
     86 make -j $CPUS
     87 
     88 %install
     89 make DESTDIR=$RPM_BUILD_ROOT install
     90 install -d $RPM_BUILD_ROOT%{_mandir}/man3
     91 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3
     92 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3
     93 rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.la
     94 rm $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/*.la
     95 rm $RPM_BUILD_ROOT%{_libdir}/*.la
     96 
     97 
     98 %clean
     99 rm -rf $RPM_BUILD_ROOT
    100 
    101 %post
    102 /sbin/ldconfig
    103 
    104 %postun
    105 /sbin/ldconfig
    106 
    107 %files
    108 %defattr(-,root,root)
    109 %{_libdir}/libspi*.so.*
    110 %{_libdir}/libcspi*.so.*
    111 %{_libdir}/libloginhelper*.so.*
    112 %{_libdir}/gtk-2.0/modules/*.so
    113 %{_libdir}/bonobo/servers/*.server
    114 %{_libdir}/orbit-2.0/*.so
    115 %{_libexecdir}/at-spi-registryd
    116 %{_datadir}/locale/*
    117 
    118 %files devel
    119 %defattr(-, root, root)
    120 %{_includedir}/at-spi-1.0/cspi/*.h
    121 %{_includedir}/at-spi-1.0/libspi/*.h
    122 %{_includedir}/at-spi-1.0/login-helper/*.h
    123 %{_libdir}/pkgconfig/*.pc
    124 %{_datadir}/gtk-doc/html
    125 %{_datadir}/idl
    126 %{_libdir}/libspi*.so
    127 %{_libdir}/libcspi*.so
    128 %{_libdir}/libloginhelper*.so
    129 %{_mandir}/man3/*
    130 
    131 %changelog
    132 * Fri Nov 10 2006 - padraig.obriain@sun.com
    133 - Remove patch 01-define-symbols.diff; move patch 02-fix-leak.diff to
    134   01-fix-leak.diff
    135 * Fri Nov  3 2006 - laca@sun.com
    136 - use %gtk_doc_option in configure so that it can be disabled using
    137   --without-gtk-doc
    138 * Wed Oct 11 2006 - padraig.obriain@sun.com
    139 - Add patch 02-fix-leak to fix bug 6457388
    140 * Mon Oct 02 2006 - damien.carbery@sun.com
    141 - Bump to 1.7.12.
    142 * Tue Aug 22 2006 - damien.carbery@sun.com
    143 - Bump to 1.7.11.
    144 * Tue Jul 25 2006 - damien.carbery@sun.com
    145 - Bump to 1.7.10.
    146 * Wed Jul 19 2006 - dermot.mccluskey@sun.com
    147 - Bump to 1.7.9
    148 * Mon Apr 01 2006 - padraig.obriain@sun.com
    149 - Add patch 01-define-symbols so that gok builds.
    150 * Fri Mar 31 2006 - damien.carbery@sun.com
    151 - Bump to 1.7.7.
    152 * Tue Feb 28 2006 - damien.carbery@sun.com
    153 - Bump to 1.7.6.
    154 * Thu Feb 23 2006 - damien.carbery@sun.com
    155 - Remove 'make clean' hack as 1.7.5 tarball fixed the issue.
    156 * Tue Feb 21 2006 - damien.carbery@sun.com
    157 - Bump to 1.7.5.
    158 * Thu Feb 16 2006 - brian.cameron@sun.com
    159 - Add "make clean" hack to ensure that the bonobo
    160   registry server file is built with the right
    161   sysconfdir.
    162 * Tue Jan 31 2006 - damien.carbery@sun.com
    163 - Bump to 1.7.4.
    164 * Tue Jan 31 2006 - damien.carbery@sun.com
    165 - Bump to 1.7.3.
    166 * Fri Jan 20 2006 - damien.carbery@sun.com
    167 - Bump to 1.7.2.
    168 * Thu Sep 08 2005 - damien.carbery@sun.com
    169 - Bump to 1.6.6.
    170 * Mon Sep 05 2005 - damien.carbery@sun.com
    171 - Bump to 1.6.5.
    172 * Tue Aug 23 2005 - damien.carbery@sun.com
    173 - Move CFLAGS setting as it was useless in original location.
    174 * Tue Jun 14 2005 - brian.cameron@sun.com
    175 - Added aclocal/automake/autoconf, needed for Solaris build.
    176 * Mon May 16 2005 - balamurali.viswanathan@wipro.com
    177 - Bump to 1.6.4 
    178 * Mon May 16 2005 - balamurali.viswanathan@wipro.com
    179 - Bump to 1.6.3 
    180 * Tue Apr 5 2005 - bill.haneman@sun.com
    181 - Added patch at-spi-01-leakfix.diff to fix leak in bounds-change events.
    182 * Thu Dec 9 2004 - bill.haneman@sun.com
    183 - Revved to 1.6.2, to get fixes for 6192693, 6205004, others.
    184 * Wed Sep 1 2004 - bill.haneman@sun.com
    185 - Bumped to version 1.5.4, to include fixes for 
    186 - activation issues with DISPLAY env, and gnopernicus
    187 - dependencies.
    188 * Tue Aug 31 2004 - bill.haneman@sun.com
    189 - Removed patch since #5088625 has been fixed, and
    190 - the patch is incompatible with the fix.
    191 * Wed Aug 18 2004 - bill.haneman@sun.com
    192 - added patch from Padraig to work around P1/S2 bug #5088625.
    193 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    194 - added "-j $CPUS" to make to speed up builds
    195 * Fri Jun 11 2004 - dermot.mccluskey@sun.com
    196 - add login-helper headers and lib to %files
    197 * Wed Jun 02 2004 - <padraig.obriain@sun.com>
    198 - Bump version to 1.5.2
    199 * Fri Apr 30 2004 - <padraig.obriain@sun.com>
    200 - Bump version to 1.5.1
    201 * Tue Mar 23 2004 - <brian.cameron@sun.com>
    202 - Remove "patch -p1" from the %prep section since
    203   the patch was removed, and this is causing an
    204   error on Solaris build.
    205 * Tue Mar 23 2004 - <padraig.obriain@sun.com>
    206 - Bump version to 1.4.0, remove reference to 
    207   at-spi-01-uninstalled-idldir.diff
    208 * Mon Mar 22 2004 - <laca@sun.com>
    209 - backport idldir fix in uninstalled.pc files from HEAD
    210 * Tue Mar 16 2004 - <glynn.foster@sun.com>
    211 - Remove the uninstalled-pc patch as it's 
    212   upstream now.
    213 * Thu Mar 11 2004 - <damien.carbery (at] sun.com>
    214 - Reset release to 1.
    215 * Wed Mar 10 2004 - <damien.carbery (at] sun.com>
    216 - Bump to 1.3.15
    217 * Mon Feb 23 2004 - damien.carbery (at] sun.com
    218 - Add '--libexecdir=%{_libexecdir}' to install files to correct dir on Solaris.
    219 * Wed Feb 18 2004 - matt.keenan (at] sun.com
    220 - tarball upgrade to 1.3.12, add manpages, update %files
    221 * Wed Dec 16 2003 - glynn.foster (at] sun.com
    222 - tarball upgrade to 1.3.9
    223 * Fri Oct 10 2003 - Laszlo.Kovacs (at] sun.com
    224 - tarball upgrade
    225 * Thu Aug 14 2003 - <laca (at] sun.com>
    226 - move *.so to -devel, remove *.a and *.al
    227 * Thu May 08 2003 - ghee.teo (at] Sun.COM
    228 - Created new spec file for at-spi
    229