5518
|
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 |
#
|
8529
|
8 |
# Owner: padraig
|
|
9 |
#
|
2006
|
10 |
Name: at-poke
|
|
11 |
License: LGPL
|
|
12 |
Group: System/Libraries/GNOME
|
6920
|
13 |
Version: 0.2.3
|
5518
|
14 |
Release: 40
|
|
15 |
Distribution: Java Desktop System
|
2006
|
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
|
4357
|
19 |
Source1: at-poke.1.gz
|
8574
|
20 |
#owner:padraig date:2006-04-18 type:bug bugster:6413890 bugzilla:338755
|
7078
|
21 |
Patch1: at-poke-01-crash.diff
|
8574
|
22 |
#owner:padraig date:2006-08-21 type:branding bugster:none
|
7954
|
23 |
Patch2: at-poke-02-fixdemo.diff
|
2006
|
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
|
2027
|
34 |
%define libgail_gnome_version 1.0.2
|
2006
|
35 |
|
|
36 |
# Requirements: libgail-gnome libglade-2.0
|
|
37 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
38 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
|
2027
|
39 |
BuildRequires: at-spi-devel >= %{at_spi_version}
|
2035
|
40 |
BuildRequires: libgail-gnome >= %{libgail_gnome_version}
|
2006
|
41 |
Requires: atk >= %{atk_version}
|
|
42 |
Requires: gtk2 >= %{gtk2_version}
|
|
43 |
Requires: libgnomeui >= %{libgnomeui_version}
|
|
44 |
Requires: at-spi >= %{at_spi_version}
|
2027
|
45 |
Requires: libgail-gnome >= %{libgail_gnome_version}
|
2006
|
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
|
7078
|
52 |
%patch1 -p1
|
7954
|
53 |
%patch2 -p1
|
4455
|
54 |
|
2006
|
55 |
%build
|
3263
|
56 |
%ifos linux
|
|
57 |
if [ -x /usr/bin/getconf ]; then
|
|
58 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
59 |
fi
|
|
60 |
%else
|
3846
|
61 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
3263
|
62 |
%endif
|
|
63 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
64 |
CPUS=1
|
|
65 |
fi
|
|
66 |
|
3662
|
67 |
./configure --prefix=%{_prefix}
|
2006
|
68 |
|
3263
|
69 |
make -j $CPUS
|
2006
|
70 |
|
|
71 |
%install
|
|
72 |
make DESTDIR=$RPM_BUILD_ROOT install
|
4357
|
73 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1
|
|
74 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
|
2006
|
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
|
4357
|
89 |
%{_mandir}/man1/*
|
2006
|
90 |
|
|
91 |
|
|
92 |
%changelog
|
7954
|
93 |
* Mon Aug 21 2006 - [email protected]
|
|
94 |
- Fix location of gtk-demo so at-poke can launch it.
|
7078
|
95 |
* Tue Apr 18 2006 - [email protected]
|
|
96 |
- Add patch at-poke-01-crash.diff for bug 6413890
|
6920
|
97 |
* Mon Mar 13 2006 - [email protected]
|
|
98 |
- Bump to 0.2.3.
|
4357
|
99 |
* Thu Oct 28 2004 - [email protected]
|
|
100 |
- Add at-poke.1 manpage
|
3662
|
101 |
* Wed Aug 18 2004 - [email protected]
|
|
102 |
- removed --disable-gtk-doc since this isn't an option this module's
|
|
103 |
configure takes.
|
3263
|
104 |
* Wed Jul 07 2004 - [email protected]
|
|
105 |
- added "-j $CPUS" to make to speed up builds
|
2006
|
106 |
* Wed Feb 25 2004 - [email protected]
|
|
107 |
- Initial release version for at-poke
|