atk.spec revision 10605
#
# spec file for package atk
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: erwannc
#
Name: atk
License: LGPL
Group: System/Libraries
Version: 1.19.1
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: ATK - Accesibility Toolkit Libraries
Source: http://ftp.gnome.org/pub/GNOME/sources/atk/1.19/%{name}-%{version}.tar.bz2
#owner:yippi date:2007-05-01 type:bug bugzilla:434784
Patch1: atk-01-mkenums.diff
URL: http://www.gtk.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/doc
AutoReqProv: on
Prereq: /sbin/ldconfig
%define glib2_version 2.5.7
Requires: glib2 >= %{glib2_version}
BuildRequires: glib2-devel >= %{glib2_version}
%description
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.
%package devel
Summary: ATK - Accessibility Toolkit Developer Libraries
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: glib2-devel >= %{glib2_version}
%description devel
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.
%prep
%setup -q
%patch1 -p1
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
gtkdocize
export CFLAGS="%{optflags}"
export LDFLAGS="%{_ldflags}"
./configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--bindir=%{_bindir} \
%{gtk_doc_option}
make -j $CPUS
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-, root, root)
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_libdir}/libatk*.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/atk-1.0/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libatk*.so
%{_datadir}/gtk-doc/html/atk
%{_mandir}/man3/*
%changelog
* Thu May 10 2007 - damien.carbery@sun.com
- Bump to 1.19.1.
* Tue May 01 2007 - brian.cameron@sun.com
- Add patch to use $(GLIB_MKENUMS) rather than glib-mkenums.
* Thu Mar 15 2007 - laca@sun.com
- convert to new style of building multiple ISAs as per docs/multi-ISA.txt
* Wed Mar 15 2007 - dougs@truemail.co.th
- Removed adding ccdir to PATH
* Mon Mar 12 2007 - damien.carbery@sun.com
- Bump to 1.18.0.
* Tue Feb 13 2007 - damien.carbery@sun.com
- Bump to 1.17.0.
* Mon Jan 22 2007 - damien.carbery@sun.com
- Bump to 1.13.2.
* Tue Jan 09 2007 - damien.carbery@sun.com
- Bump to 1.13.1.
* Mon Jan 08 2007 - damien.carbery@sun.com
- Bump to 1.13.0.
* Tue Dec 19 2006 - damien.carbery@sun.com
- Bump to 1.12.4.
* Fri Nov 3 2006 - laca@sun.com
- use %gtk_doc_option in configure so that it can be disabled using
--without-gtk-doc
* Mon Oct 02 2006 - damien.carbery@sun.com
- Bump to 1.12.3.
* Tue Aug 22 2006 - damien.carbery@sun.com
- Bump to 1.12.2.
* Wed Jul 19 2006 - dermot.mccluskey@sun.com
- Bump to 1.12.1.
* Fri Mar 31 2006 - damien.carbery@sun.com
- Bump to 1.11.4.
* Mon Mar 13 2006 - damien.carbery@sun.com
- Bump to 1.11.3.
* Tue Jan 17 2006 - glynn.foster@sun.com
- Bump to 1.11.0
* Thu Sep 08 2005 - damien.carbery@sun.com
- Bump to 1.10.3.
* Mon Sep 05 2005 - damien.carbery@sun.com
- Bump to 1.10.2.
* Mon Aug 15 2005 - glynn.foster@sun.com
- Bump to 1.10.1
* Fri May 06 2005 - glynn.foster@sun.com
- Bump to 1.9.1
* Fri Oct 29 2004 - laca@sun.com
- use $CC64 for the 64-bit build if defined
* Sat Oct 2 2004 - Joseph.Townsend@Sun.COM
- Create 64bit libraries for Solaris
* Wed Aug 18 2004 - brian.cameron@sun.com
- added --enable-gtk-doc.
* Wed Jul 28 2004 - <padraig.obriain@sun.com>
- Bump to 1.7.3
* Mon Jul 26 2004 - <padraig.obriain@sun.com>
- Bump to 1.7.2
* Thu Jul 08 2004 - damien.donlon@sun.com
- Updated l10n content to atk-l10n-po-1.2.tar.bz2
* Wed Jul 07 2004 - niall.power@sun.com
- ported to rpm4
* Wed Jul 07 2004 - dermot.mccluskey@sun.com
- added "-j $CPUS" to make to speed up builds
* Tue Jun 08 2004 - <padraig.obriain@sun.com>
- Bump to 1.7.1
* Wed May 12 2004 - damien.donlon@sun.com
- Updated l10n content to atk-l10n-po-1.1.tar.bz2
* Thu Apr 22 2004 - <padraig.obriain@sun.com>
- Bump to 1.7.0
* Mon Mar 29 2004 - damien.donlon@sun.com
- Updated l10n content to atk-l10n-po-1.0.tar.bz2
* Mon Mar 15 2004 - <damien.carbery@sun.com>
- Change '1.5' in URL to '1.6'.
* Thu Mar 11 2004 - <damien.carbery@sun.com>
- Reset release to 1.
* Wed Mar 10 2004 - <damien.carbery@sun.com>
- Bump to 1.6.0
* Wed Feb 18 2004 - <matt.keenan@sun.com>
- Bump to 1.5.4, remove pc patch
* Fri Jan 09 2004 - <laca@sun.com>
- add patch to fix a broken .pc file
- clean up for Solaris builds
* Mon Dec 15 2003 - <glynn.foster@sun.com>
- upgrade to 1.5.1 tarball
* Mon Oct 6 2003 - <laszlo.kovacs@sun.com>
- upgrade to 1.4 tarball
* Thu Aug 14 2003 - <laca@sun.com>
- move lib*.so to -devel, remove *.a, *.la
* Tue May 13 2003 - Stephen.Browne@sun.com
- initial Sun release