1 # 2 # spec file for package at-poke 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-poke 11 License: LGPL 12 Group: System/Libraries/GNOME 13 Version: 0.2.3 14 Release: 40 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: Tool to poke around accessibility infrastructure 18 Source: http://ftp.gnome.org/pub/GNOME/sources/at-poke/0.2/%{name}-%{version}.tar.bz2 19 Source1: at-poke.1.gz 20 #owner:padraig date:2006-04-18 type:bug bugster:6413890 bugzilla:338755 21 Patch1: at-poke-01-crash.diff 22 #owner:padraig date:2006-08-21 type:branding bugster:none 23 Patch2: at-poke-02-fixdemo.diff 24 URL: http://developer.gnome.org/projects/gap 25 BuildRoot: %{_tmppath}/%{name}-%{version}-build 26 Docdir: %{_defaultdocdir}/doc 27 Autoreqprov: on 28 Prereq: /sbin/ldconfig 29 30 %define libgnomeui_version 2.4.0.1 31 %define gtk2_version 2.2.4 32 %define atk_version 1.4.0 33 %define at_spi_version 1.1.8 34 %define libgail_gnome_version 1.0.2 35 36 # Requirements: libgail-gnome libglade-2.0 37 BuildRequires: gtk2-devel >= %{gtk2_version} 38 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} 39 BuildRequires: at-spi-devel >= %{at_spi_version} 40 BuildRequires: libgail-gnome >= %{libgail_gnome_version} 41 Requires: atk >= %{atk_version} 42 Requires: gtk2 >= %{gtk2_version} 43 Requires: libgnomeui >= %{libgnomeui_version} 44 Requires: at-spi >= %{at_spi_version} 45 Requires: libgail-gnome >= %{libgail_gnome_version} 46 47 %description 48 at-poke is a tool that allows one to examine the widigts from an accessibility perspective. 49 50 %prep 51 %setup -q 52 %patch1 -p1 53 %patch2 -p1 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 ./configure --prefix=%{_prefix} 68 69 make -j $CPUS 70 71 %install 72 make DESTDIR=$RPM_BUILD_ROOT install 73 install -d $RPM_BUILD_ROOT%{_mandir}/man1 74 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 75 76 %clean 77 rm -rf $RPM_BUILD_ROOT 78 79 %post 80 /sbin/ldconfig 81 82 %postun 83 /sbin/ldconfig 84 85 %files 86 %defattr(-,root,root) 87 %{_bindir}/at-poke 88 %{_datadir}/at-poke/at-poke.glade2 89 %{_mandir}/man1/* 90 91 92 %changelog 93 * Mon Aug 21 2006 - brian.cameron@sun.com 94 - Fix location of gtk-demo so at-poke can launch it. 95 * Tue Apr 18 2006 - padraig.obriain@sun.com 96 - Add patch at-poke-01-crash.diff for bug 6413890 97 * Mon Mar 13 2006 - damien.carbery@sun.com 98 - Bump to 0.2.3. 99 * Thu Oct 28 2004 - matt.keenan@sun.com 100 - Add at-poke.1 manpage 101 * Wed Aug 18 2004 - brian.cameron@sun.com 102 - removed --disable-gtk-doc since this isn't an option this module's 103 configure takes. 104 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 105 - added "-j $CPUS" to make to speed up builds 106 * Wed Feb 25 2004 - damien.carbery@sun.com 107 - Initial release version for at-poke 108