1 # 2 # spec file for package atk 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: erwannc 9 # 10 Name: atk 11 License: LGPL 12 Group: System/Libraries 13 Version: 1.12.3 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: ATK - Accesibility Toolkit Libraries 18 Source: http://ftp.gnome.org/pub/GNOME/sources/atk/1.12/%{name}-%{version}.tar.bz2 19 Source1: libatk-1.0.3.gz 20 URL: http://www.gtk.org 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 Docdir: %{_defaultdocdir}/doc 23 AutoReqProv: on 24 Prereq: /sbin/ldconfig 25 26 %define glib2_version 2.5.7 27 28 Requires: glib2 >= %{glib2_version} 29 BuildRequires: glib2-devel >= %{glib2_version} 30 31 %description 32 The ATK Library provides a set of interfaces for accesibility. By supporting the ATK interfaces, an application or toolkit can be used with such tools as screen readers, magnifiers, and alternate input devices. 33 34 %package devel 35 Summary: ATK - Accessibility Toolkit Developer Libraries 36 Group: Development/Libraries/GNOME 37 Requires: %{name} = %{version} 38 Requires: glib2-devel >= %{glib2_version} 39 40 %description devel 41 The ATK Library provides a set of interfaces for accesibility. By supporting the ATK interfaces, an application or toolkit can be used with such tools as screen readers, magnifiers, and alternate input devices. 42 43 %prep 44 %setup -q 45 46 %ifos solaris 47 %ifarch amd64 sparcv9 48 cd .. 49 cp -rp atk-%{version} atk-%{version}-64 50 cd atk-%{version} 51 %endif 52 %endif 53 54 55 %build 56 %ifos linux 57 if [ -x /usr/bin/getconf ]; then 58 CPUS=`getconf _NPROCESSORS_ONLN` 59 fi 60 %else 61 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 62 %endif 63 if test "x$CPUS" = "x" -o $CPUS = 0; then 64 CPUS=1 65 fi 66 67 CONFLAGS="--prefix=%{_prefix}" 68 69 %ifos solaris 70 71 CPUS=$(($CPUS*4)) 72 73 %ifarch amd64 sparcv9 74 export CC=${CC64:-$CC} 75 save_PATH="$PATH" 76 ccdir=`dirname $CC` 77 export PATH=$ccdir:$PATH 78 cd ../atk-%version-64 79 export CFLAGS="$CFLAGS64" 80 export LDFLAGS="$LDFLAGS64" 81 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" 82 83 ./configure $CONFLAGS \ 84 --bindir=%{_bindir}/%{_arch64} \ 85 --libdir=%{_libdir}/%{_arch64} \ 86 --libexecdir=%{_libexecdir}/%{_arch64} \ 87 --sysconfdir=%{_sysconfdir}/%{_arch64} \ 88 --disable-gtk-doc 89 90 make -j $CPUS 91 cd ../atk-%version 92 export CC=${CC32:-$CC} 93 export PATH="$save_PATH" 94 95 export LDFLAGS="$LDFLAGS32" 96 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" 97 export CFLAGS="$CFLAGS32" 98 export RPM_OPT_FLAGS="$CFLAGS" 99 100 %endif 101 %endif 102 103 104 gtkdocize 105 CFLAGS="$RPM_OPT_FLAGS" \ 106 ./configure $CONFLAGS \ 107 --sysconfdir=%{_sysconfdir} \ 108 %{gtk_doc_option} 109 make -j $CPUS 110 111 %install 112 113 %ifos solaris 114 %ifarch amd64 sparcv9 115 cd ../atk-%version-64 116 make install DESTDIR=$RPM_BUILD_ROOT 117 cd ../atk-%version 118 %endif 119 %endif 120 121 make DESTDIR=$RPM_BUILD_ROOT install 122 install -d $RPM_BUILD_ROOT%{_mandir}/man3 123 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3 124 rm $RPM_BUILD_ROOT%{_libdir}/*.la 125 126 %clean 127 rm -rf $RPM_BUILD_ROOT 128 129 %post 130 /sbin/ldconfig 131 132 %postun 133 /sbin/ldconfig 134 135 %files 136 %defattr(-, root, root) 137 %{_datadir}/locale/*/LC_MESSAGES/*.mo 138 %{_libdir}/libatk*.so.* 139 140 %files devel 141 %defattr(-, root, root) 142 %{_includedir}/atk-1.0/* 143 %{_libdir}/pkgconfig/*.pc 144 %{_libdir}/libatk*.so 145 %{_datadir}/gtk-doc/html/atk 146 %{_mandir}/man3/* 147 148 %changelog 149 * Fri Nov 3 2006 - laca@sun.com 150 - use %gtk_doc_option in configure so that it can be disabled using 151 --without-gtk-doc 152 * Mon Oct 02 2006 - damien.carbery@sun.com 153 - Bump to 1.12.3. 154 * Tue Aug 22 2006 - damien.carbery@sun.com 155 - Bump to 1.12.2. 156 * Wed Jul 19 2006 - dermot.mccluskey@sun.com 157 - Bump to 1.12.1. 158 * Fri Mar 31 2006 - damien.carbery@sun.com 159 - Bump to 1.11.4. 160 * Mon Mar 13 2006 - damien.carbery@sun.com 161 - Bump to 1.11.3. 162 * Tue Jan 17 2006 - glynn.foster@sun.com 163 - Bump to 1.11.0 164 * Thu Sep 08 2005 - damien.carbery@sun.com 165 - Bump to 1.10.3. 166 * Mon Sep 05 2005 - damien.carbery@sun.com 167 - Bump to 1.10.2. 168 * Mon Aug 15 2005 - glynn.foster@sun.com 169 - Bump to 1.10.1 170 * Fri May 06 2005 - glynn.foster@sun.com 171 - Bump to 1.9.1 172 * Fri Oct 29 2004 - laca@sun.com 173 - use $CC64 for the 64-bit build if defined 174 * Sat Oct 2 2004 - Joseph.Townsend@Sun.COM 175 - Create 64bit libraries for Solaris 176 * Wed Aug 18 2004 - brian.cameron@sun.com 177 - added --enable-gtk-doc. 178 * Wed Jul 28 2004 - <padraig.obriain@sun.com> 179 - Bump to 1.7.3 180 * Mon Jul 26 2004 - <padraig.obriain@sun.com> 181 - Bump to 1.7.2 182 * Thu Jul 08 2004 - damien.donlon@sun.com 183 - Updated l10n content to atk-l10n-po-1.2.tar.bz2 184 * Wed Jul 07 2004 - niall.power@sun.com 185 - ported to rpm4 186 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 187 - added "-j $CPUS" to make to speed up builds 188 * Tue Jun 08 2004 - <padraig.obriain@sun.com> 189 - Bump to 1.7.1 190 * Wed May 12 2004 - damien.donlon@sun.com 191 - Updated l10n content to atk-l10n-po-1.1.tar.bz2 192 * Thu Apr 22 2004 - <padraig.obriain@sun.com> 193 - Bump to 1.7.0 194 * Mon Mar 29 2004 - damien.donlon@sun.com 195 - Updated l10n content to atk-l10n-po-1.0.tar.bz2 196 * Mon Mar 15 2004 - <damien.carbery@sun.com> 197 - Change '1.5' in URL to '1.6'. 198 * Thu Mar 11 2004 - <damien.carbery@sun.com> 199 - Reset release to 1. 200 * Wed Mar 10 2004 - <damien.carbery@sun.com> 201 - Bump to 1.6.0 202 * Wed Feb 18 2004 - <matt.keenan@sun.com> 203 - Bump to 1.5.4, remove pc patch 204 * Fri Jan 09 2004 - <laca@sun.com> 205 - add patch to fix a broken .pc file 206 - clean up for Solaris builds 207 * Mon Dec 15 2003 - <glynn.foster@sun.com> 208 - upgrade to 1.5.1 tarball 209 * Mon Oct 6 2003 - <laszlo.kovacs@sun.com> 210 - upgrade to 1.4 tarball 211 * Thu Aug 14 2003 - <laca@sun.com> 212 - move lib*.so to -devel, remove *.a, *.la 213 * Tue May 13 2003 - Stephen.Browne@sun.com 214 - initial Sun release 215