%define _prefix /opt/freeware %define _defaultdocdir %{_prefix}/doc %define glib2_version 2.12.4 Summary: Interfaces for accessibility support Name: atk Version: 1.12.3 Release: 2 License: LGPLv2+ Group: System Environment/Libraries Source: ftp://ftp.gtk.org/pub/gtk/v2.0/atk-%{version}.tar.bz2 Patch0: atk-1.12.3-aix.patch Patch1: atk-1.12.3-autotools.patch URL: http://developer.gnome.org/projects/gap/ BuildRoot: %{_tmppath}/atk-%{version}-root BuildPreReq: glib2-devel >= %{glib2_version} BuildPreReq: libtool BuildPreReq: /usr/bin/autoconf BuildPreReq: /usr/bin/aclocal # Use --define 'no64 1' on the command line to disable 64bit build %{!?no64:%define BUILD64 1} %{?no64:%define BUILD64 0} %define prefix64 %{_prefix}/64 %description The ATK library provides a set of interfaces for adding accessibility support to applications and graphical user interface toolkits. By supporting the ATK interfaces, an application or toolkit can be used with tools such as screen readers, magnifiers, and alternative input devices. The library is available as 32-bit and 64-bit. %package devel Summary: Accessibility Toolkit development files. Group: Development/Libraries Requires: atk = %{PACKAGE_VERSION} Requires: glib2-devel >= %{glib2_version} %description devel The atk-devel package includes the static libraries, header files, and developer docs for the atk package. Install atk-devel if you want to develop programs which will use ATK. %prep %setup -q if test x$PATCH = x ; then PATCH=patch ; fi $PATCH -p2 -s < %{_sourcedir}/atk-1.12.3-aix.patch $PATCH -p2 -s < %{_sourcedir}/atk-1.12.3-autotools.patch # Prep 64-bit build in 64bit subdirectory %if %{BUILD64} == 1 mkdir 64bit cd 64bit bzip2 -dc %{SOURCE0} | tar -xf - cd atk-1.12.3 $PATCH -p2 -s < %{_sourcedir}/atk-1.12.3-aix.patch $PATCH -p2 -s < %{_sourcedir}/atk-1.12.3-autotools.patch %endif %build # now build the 32-bit version export OBJECT_MODE=32 export CC="xlc_r -q32" PATH=%{_bindir}:$PATH ./configure --prefix=%{_prefix} --disable-gtk-doc PATH=%{_bindir}:$PATH make # now build the 64-bit version %if %{BUILD64} == 1 cd 64bit/atk-1.12.3 export OBJECT_MODE=64 export CC="xlc_r -q64" PATH=%{_bindir}:$PATH ./configure --prefix=%{_prefix} --disable-gtk-doc PATH=%{_bindir}:$PATH make # Go back to 32-bit library and add our 64bit shared object # into same archive cd ../.. pwd /usr/bin/ar -X32_64 -q ./atk/.libs/libatk-1.0.a ./64bit/atk-1.12.3/atk/.libs/libatk-1.0.so.0 %endif #BUILD64 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install-strip #make links ( cd ${RPM_BUILD_ROOT} for dir in include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) #Add links for 64-bit library members %if %{BUILD64} == 1 ( mkdir -p $RPM_BUILD_ROOT/%{prefix64}/lib cd $RPM_BUILD_ROOT/%{prefix64}/lib ln -s ../../lib/*.a . ) %endif %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system -) %doc README AUTHORS COPYING NEWS %{_libdir}/*.a %{_datadir}/locale/*/LC_MESSAGES/*.mo /usr/lib/*.a %files devel %defattr(-,root,system) %{_libdir}/*.la %{_libdir}/pkgconfig/* %{_includedir}/* %{_datadir}/gtk-doc/html/atk /usr/lib/*.la /usr/include/* %changelog * Fri Nov 17 2006 BULL - Release 1 - New version version: 1.12.3 - gnome 2.16.1 * Mon Sep 18 2006 BULL - Release 3 - New version version: 1.11.3 - support 64 bits * Fri Dec 23 2005 BULL - Release 2 - Prototype gtk 64 bit * Tue Nov 15 2005 BULL - Release 1 - New version version: 1.10.3 * Tue Aug 09 2005 BULL - Release 3 - Create symlinks between /usr/share and /opt/freeware/share * Mon May 30 2005 BULL - Release 2 - .o removed from lib * Wed May 25 2005 BULL - Release 1 - New version version: 1.9.1 * Tue Nov 23 2004 BULL - Release 1 - New version version: 1.8.0