1 # 2 # spec file for package atk 3 # 4 # Copyright (c) 2008 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: liyuan 9 # 10 Name: atk 11 License: LGPL v2 12 Group: System/Libraries 13 Version: 1.24.0 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.24/%{name}-%{version}.tar.bz2 19 URL: http://www.gtk.org 20 BuildRoot: %{_tmppath}/%{name}-%{version}-build 21 Docdir: %{_defaultdocdir}/doc 22 AutoReqProv: on 23 Prereq: /sbin/ldconfig 24 25 %define glib2_version 2.5.7 26 27 Requires: glib2 >= %{glib2_version} 28 BuildRequires: glib2-devel >= %{glib2_version} 29 30 %description 31 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. 32 33 %package devel 34 Summary: ATK - Accessibility Toolkit Developer Libraries 35 Group: Development/Libraries/GNOME 36 Requires: %{name} = %{version} 37 Requires: glib2-devel >= %{glib2_version} 38 39 %description devel 40 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. 41 42 %prep 43 %setup -q 44 45 %build 46 %ifos linux 47 if [ -x /usr/bin/getconf ]; then 48 CPUS=`getconf _NPROCESSORS_ONLN` 49 fi 50 %else 51 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 52 %endif 53 if test "x$CPUS" = "x" -o $CPUS = 0; then 54 CPUS=1 55 fi 56 57 gtkdocize 58 export CFLAGS="%{optflags}" 59 export LDFLAGS="%{_ldflags}" 60 ./configure \ 61 --prefix=%{_prefix} \ 62 --sysconfdir=%{_sysconfdir} \ 63 --libdir=%{_libdir} \ 64 --bindir=%{_bindir} \ 65 %{gtk_doc_option} 66 make -j $CPUS 67 68 %install 69 make DESTDIR=$RPM_BUILD_ROOT install 70 rm $RPM_BUILD_ROOT%{_libdir}/*.la 71 72 %clean 73 rm -rf $RPM_BUILD_ROOT 74 75 %post 76 /sbin/ldconfig 77 78 %postun 79 /sbin/ldconfig 80 81 %files 82 %defattr(-, root, root) 83 %{_datadir}/locale/*/LC_MESSAGES/*.mo 84 %{_libdir}/libatk*.so.* 85 86 %files devel 87 %defattr(-, root, root) 88 %{_includedir}/atk-1.0/* 89 %{_libdir}/pkgconfig/*.pc 90 %{_libdir}/libatk*.so 91 %{_datadir}/gtk-doc/html/atk 92 %{_mandir}/man3/* 93 94 %changelog 95 * Wed Nov 05 2008 - li.yuan@sun.com 96 - Change copyright information. 97 * Mon Oct 27 2008 - li.yuan@sun.com 98 - Correct the url of tarball. 99 * Mon Sep 29 2008 - christian.kelly@sun.com 100 - Bump to 1.24.0. 101 * Mon Jul 21 2008 - damien.carbery@sun.com 102 - Bump to 1.23.5. 103 * Mon Mar 10 2008 - damien.carbery@sun.com 104 - Bump to 1.22.0. 105 * Mon Feb 25 2008 - damien.carbery@sun.com 106 - Bump to 1.21.92. 107 * Mon Jan 14 2008 - damien.carbery@sun.com 108 - Bump to 1.21.5. 109 * Thu Jan 10 2008 - li.yuan@sun.com 110 - change owner to liyuan. 111 * Tue Sep 18 2007 - damien.carbery@sun.com 112 - Bump to 1.20.0. 113 * Mon Jul 30 2007 - damien.carbery@sun.com 114 - Bump to 1.19.6. 115 * Wed Jun 06 2007 - damien.carbery@sun.com 116 - Bump to 1.19.3. Remove upstream patch, 01-mkenums. 117 * Thu May 10 2007 - damien.carbery@sun.com 118 - Bump to 1.19.1. 119 * Tue May 01 2007 - brian.cameron@sun.com 120 - Add patch to use $(GLIB_MKENUMS) rather than glib-mkenums. 121 * Thu Mar 15 2007 - laca@sun.com 122 - convert to new style of building multiple ISAs as per docs/multi-ISA.txt 123 * Wed Mar 15 2007 - dougs@truemail.co.th 124 - Removed adding ccdir to PATH 125 * Mon Mar 12 2007 - damien.carbery@sun.com 126 - Bump to 1.18.0. 127 * Tue Feb 13 2007 - damien.carbery@sun.com 128 - Bump to 1.17.0. 129 * Mon Jan 22 2007 - damien.carbery@sun.com 130 - Bump to 1.13.2. 131 * Tue Jan 09 2007 - damien.carbery@sun.com 132 - Bump to 1.13.1. 133 * Mon Jan 08 2007 - damien.carbery@sun.com 134 - Bump to 1.13.0. 135 * Tue Dec 19 2006 - damien.carbery@sun.com 136 - Bump to 1.12.4. 137 * Fri Nov 3 2006 - laca@sun.com 138 - use %gtk_doc_option in configure so that it can be disabled using 139 --without-gtk-doc 140 * Mon Oct 02 2006 - damien.carbery@sun.com 141 - Bump to 1.12.3. 142 * Tue Aug 22 2006 - damien.carbery@sun.com 143 - Bump to 1.12.2. 144 * Wed Jul 19 2006 - dermot.mccluskey@sun.com 145 - Bump to 1.12.1. 146 * Fri Mar 31 2006 - damien.carbery@sun.com 147 - Bump to 1.11.4. 148 * Mon Mar 13 2006 - damien.carbery@sun.com 149 - Bump to 1.11.3. 150 * Tue Jan 17 2006 - glynn.foster@sun.com 151 - Bump to 1.11.0 152 * Thu Sep 08 2005 - damien.carbery@sun.com 153 - Bump to 1.10.3. 154 * Mon Sep 05 2005 - damien.carbery@sun.com 155 - Bump to 1.10.2. 156 * Mon Aug 15 2005 - glynn.foster@sun.com 157 - Bump to 1.10.1 158 * Fri May 06 2005 - glynn.foster@sun.com 159 - Bump to 1.9.1 160 * Fri Oct 29 2004 - laca@sun.com 161 - use $CC64 for the 64-bit build if defined 162 * Sat Oct 2 2004 - Joseph.Townsend@Sun.COM 163 - Create 64bit libraries for Solaris 164 * Wed Aug 18 2004 - brian.cameron@sun.com 165 - added --enable-gtk-doc. 166 * Wed Jul 28 2004 - <padraig.obriain@sun.com> 167 - Bump to 1.7.3 168 * Mon Jul 26 2004 - <padraig.obriain@sun.com> 169 - Bump to 1.7.2 170 * Thu Jul 08 2004 - damien.donlon@sun.com 171 - Updated l10n content to atk-l10n-po-1.2.tar.bz2 172 * Wed Jul 07 2004 - niall.power@sun.com 173 - ported to rpm4 174 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 175 - added "-j $CPUS" to make to speed up builds 176 * Tue Jun 08 2004 - <padraig.obriain@sun.com> 177 - Bump to 1.7.1 178 * Wed May 12 2004 - damien.donlon@sun.com 179 - Updated l10n content to atk-l10n-po-1.1.tar.bz2 180 * Thu Apr 22 2004 - <padraig.obriain@sun.com> 181 - Bump to 1.7.0 182 * Mon Mar 29 2004 - damien.donlon@sun.com 183 - Updated l10n content to atk-l10n-po-1.0.tar.bz2 184 * Mon Mar 15 2004 - <damien.carbery@sun.com> 185 - Change '1.5' in URL to '1.6'. 186 * Thu Mar 11 2004 - <damien.carbery@sun.com> 187 - Reset release to 1. 188 * Wed Mar 10 2004 - <damien.carbery@sun.com> 189 - Bump to 1.6.0 190 * Wed Feb 18 2004 - <matt.keenan@sun.com> 191 - Bump to 1.5.4, remove pc patch 192 * Fri Jan 09 2004 - <laca@sun.com> 193 - add patch to fix a broken .pc file 194 - clean up for Solaris builds 195 * Mon Dec 15 2003 - <glynn.foster@sun.com> 196 - upgrade to 1.5.1 tarball 197 * Mon Oct 6 2003 - <laszlo.kovacs@sun.com> 198 - upgrade to 1.4 tarball 199 * Thu Aug 14 2003 - <laca@sun.com> 200 - move lib*.so to -devel, remove *.a, *.la 201 * Tue May 13 2003 - Stephen.Browne@sun.com 202 - initial Sun release 203