author | liyuan |
Mon, 30 Nov 2009 09:35:48 +0000 | |
changeset 17051 | 5e8133e874f5 |
parent 16754 | 9c843649d094 |
child 17512 | ef180122e15f |
permissions | -rw-r--r-- |
10419 | 1 |
# |
2 |
# includes module(s): accerciser |
|
3 |
# |
|
11451 | 4 |
# Copyright (c) 2008 Sun Microsystems, Inc. |
10419 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner liyuan |
10419 | 9 |
# |
16752 | 10 |
%define pythonver 2.6 |
10419 | 11 |
|
16426 | 12 |
%define OSR gnome.org:0 |
13 |
||
10419 | 14 |
Name: accerciser |
17051 | 15 |
Version: 1.9.3 |
10419 | 16 |
Release: 1%{?dist} |
16266 | 17 |
Vendor: Sun Microsystems, Inc. |
10419 | 18 |
Summary: An interactive Python accessibility explorer for the GNOME desktop |
19 |
||
20 |
Group: Applications/System |
|
14560 | 21 |
License: BSD |
10419 | 22 |
URL: http://live.gnome.org/Accerciser |
17051 | 23 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.9/%{name}-%{version}.tar.bz2 |
11193
81cc49dca056
Mark accerciser-01-remove-from-menu.diff as a branding patch, not a bug.
yippi
parents:
11164
diff
changeset
|
24 |
#owner:liyuan date:2007-11-09 bugster:6610155 type:branding |
11164 | 25 |
Patch1: accerciser-01-remove-from-menu.diff |
10419 | 26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
27 |
BuildRequires: gnome-doc-utils, desktop-file-utils, scrollkeeper, gnome-python2-libwnck, gettext |
|
28 |
Requires: at-spi, pygtk2, gnome-python2, gnome-python2-libwnck, pygtk2-libglade, gnome-python2-bonobo |
|
29 |
||
30 |
#Requires(pre): GConf2 |
|
31 |
#Requires(post): scrollkeeper GConf2 |
|
32 |
#Requires(postun): scrollkeeper |
|
33 |
#Requires(preun): GConf2 |
|
34 |
||
35 |
%description |
|
36 |
Accerciser is an interactive Python accessibility explorer for the GNOME |
|
37 |
desktop. It uses AT-SPI to inspect and control widgets, allowing you to |
|
38 |
check if an application is providing correct information to assistive |
|
39 |
technologies and automated test frameworks. |
|
40 |
||
41 |
%prep |
|
42 |
%setup -q |
|
11164 | 43 |
%patch1 -p1 |
10419 | 44 |
|
45 |
||
46 |
%build |
|
11936 | 47 |
aclocal $ACLOCAL_FLAGS |
48 |
automake --add-missing |
|
49 |
autoconf |
|
50 |
||
10419 | 51 |
./configure --prefix=%{_prefix} \ |
52 |
--libdir=%{_libdir} \ |
|
53 |
--bindir=%{_bindir} \ |
|
54 |
--datadir=%{_datadir} \ |
|
55 |
--sysconfdir=%{_sysconfdir} \ |
|
56 |
--disable-scrollkeeper |
|
57 |
make |
|
16752 | 58 |
sed s/"\/env python"/"\/python2.6"/g src/accerciser > src/accerciser.bak |
59 |
mv src/accerciser.bak src/accerciser |
|
10419 | 60 |
|
61 |
%install |
|
62 |
rm -rf $RPM_BUILD_ROOT |
|
63 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
64 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
65 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
66 |
||
67 |
#desktop-file-install --vendor="" --delete-original \ |
|
68 |
# --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
|
69 |
# $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop |
|
70 |
||
71 |
#%find_lang %{name} |
|
72 |
||
10635 | 73 |
# Move to vendor-packages |
74 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages \ |
|
75 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages |
|
76 |
||
16752 | 77 |
# Remove .pyo files |
78 |
find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \; |
|
79 |
||
10419 | 80 |
%clean |
81 |
rm -rf $RPM_BUILD_ROOT |
|
82 |
||
83 |
%prep |
|
84 |
if [ "$1" -gt 1 ]; then |
|
85 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
86 |
gconftool-2 --makefile-uninstall-rule \ |
|
87 |
%{_sysconfdir}/gconf/schemas/accerciser.schemas >/dev/null || : |
|
88 |
killall -HUP gconfd-2 || : |
|
89 |
fi |
|
90 |
||
91 |
%post |
|
92 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
93 |
gconftool-2 --makefile-install-rule \ |
|
94 |
%{_sysconfdir}/gconf/schemas/accerciser.schemas > /dev/null || : |
|
95 |
killall -HUP gconfd-2 || : |
|
96 |
||
97 |
scrollkeeper-update -q -o %{_datadir}/omf/%{name} || : |
|
98 |
touch --no-create %{_datadir}/icons/hicolor || : |
|
99 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
|
100 |
||
101 |
%postun |
|
102 |
scrollkeeper-update -q || : |
|
103 |
touch --no-create %{_datadir}/icons/hicolor || : |
|
104 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
|
105 |
||
106 |
%preun |
|
107 |
if [ "$1" -eq 0 ]; then |
|
108 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
109 |
gconftool-2 --makefile-uninstall-rule \ |
|
110 |
%{_sysconfdir}/gconf/schemas/accerciser.schemas > /dev/null || : |
|
111 |
killall -HUP gconfd-2 || : |
|
112 |
fi |
|
113 |
||
114 |
%files -f %{name}.lang |
|
115 |
%defattr(-,root,root) |
|
116 |
%doc README AUTHORS ChangeLog COPYING NEWS |
|
117 |
%{_bindir}/%{name} |
|
118 |
#%{python_sitearch}/%{name} |
|
119 |
%{_datadir}/%{name} |
|
120 |
%{_datadir}/omf/%{name} |
|
121 |
%{_datadir}/applications/*.desktop |
|
122 |
%{_datadir}/icons/hicolor/*/apps/%{name}.* |
|
123 |
%{_datadir}/gnome/help/%{name} |
|
124 |
%{_sysconfdir}/gconf/schemas/%{name}.schemas |
|
125 |
||
126 |
%changelog |
|
17051 | 127 |
* Mon Nov 30 2009 - [email protected] |
128 |
- Bump to 1.9.3. |
|
16754 | 129 |
* Wed Oct 14 2009 - [email protected] |
130 |
- Use Python 2.6 and remove .pyo files. |
|
16657 | 131 |
* Wed Sep 23 2009 - [email protected] |
132 |
- Bump to 1.8.0 |
|
16360 | 133 |
* Wed Aug 26 2009 - [email protected] |
134 |
- Bump to 1.7.91. |
|
16266 | 135 |
* Thu Aug 13 2009 - [email protected] |
136 |
- Update vendor information. |
|
16242 | 137 |
* Wed Aug 12 2009 - [email protected] |
138 |
- Bump to 1.7.90. |
|
16063 | 139 |
* Sun Jul 19 2009 - [email protected] |
140 |
- Bump to 1.7.4. |
|
16002 | 141 |
* Mon Jul 06 2009 - [email protected] |
142 |
- Bump to 1.7.2. |
|
15628 | 143 |
* Wed Apr 15 2009 - [email protected] |
144 |
- Bump to 1.6.1 |
|
15409 | 145 |
* Tue Mar 17 2009 - [email protected] |
146 |
- Bump to 1.6.0 |
|
15130 | 147 |
* Wed Feb 18 2009 - [email protected] |
148 |
- Bump to 1.5.91 |
|
15028 | 149 |
* Thu Feb 05 2009 - [email protected] |
150 |
- Bump to 1.5.9. |
|
14957 | 151 |
* Thu Jan 22 2009 - [email protected] |
152 |
- Bump to 1.5.5. |
|
14874 | 153 |
* Thu Jan 08 2009 - [email protected] |
154 |
- Bump to 1.5.4. |
|
14697 | 155 |
* Wed Dec 03 2008 - [email protected] |
156 |
- Bump to 1.5.2 |
|
14560 | 157 |
* Wed Nov 05 2008 - [email protected] |
158 |
- Change copyright information. |
|
13812 | 159 |
* Mon Sep 29 2008 - [email protected] |
13811 | 160 |
- Correct download URL |
13732 | 161 |
* Tue Sep 23 2008 - [email protected] |
162 |
- Bump to 1.4.0. |
|
13457 | 163 |
* Tue Sep 09 2008 - [email protected] |
164 |
- Bump to 1.3.92. |
|
13369 | 165 |
* Tue Sep 02 2008 - [email protected] |
166 |
- Bump to 1.3.91. |
|
13031 | 167 |
* Tue Aug 05 2008 - [email protected] |
168 |
- Bump to 1.3.6. |
|
12868 | 169 |
* Mon Jul 21 2008 - [email protected] |
170 |
- Bump to 1.3.5. |
|
12684 | 171 |
* Tue Jun 17 2008 - [email protected] |
172 |
- Bump to 1.3.4. Remove upstream patch, 02-pyatspi-check. |
|
12627 | 173 |
* Tue Jun 10 2008 - [email protected] |
174 |
- Add patch 02-pyatspi-check to skip the pyatspi check as it requires a display. |
|
12518 | 175 |
* Wed May 28 2008 - [email protected] |
176 |
- Bump to 1.3.1. |
|
11936 | 177 |
* Thu Mar 27 2008 - [email protected] |
12518 | 178 |
- Bump to 1.2.0. Call aclocal, automake and autoconf to get patched |
179 |
intltool.m4. |
|
11725 | 180 |
* Tue Feb 26 2008 - [email protected] |
181 |
- Bump to 1.1.92. |
|
11615 | 182 |
* Mon Feb 11 2008 - [email protected] |
183 |
- Bump to 1.1.91. |
|
11546 | 184 |
* Tue Jan 29 2008 - [email protected] |
185 |
- Bump to 1.1.90. |
|
11451 | 186 |
* Mon Jan 14 2008 - [email protected] |
187 |
- Bump to 1.1.5. |
|
11275 | 188 |
* Mon Dec 03 2007 - [email protected] |
189 |
- Bump to 1.1.3. |
|
11077 | 190 |
* Tue Oct 30 2007 - [email protected] |
191 |
- Bump to 1.1.1. |
|
10674 | 192 |
* Fri Oct 19 2007 - [email protected] |
193 |
- Bump to 1.0.1. |
|
10635 | 194 |
* Wed Oct 10 2007 - [email protected] |
10641
c9864ab4f7a9
Add bug number (6615442) to %changelog for move from site-packages to vendor-packages.
dcarbery
parents:
10636
diff
changeset
|
195 |
- Move files from site-packages to vendor-packages. Fixes 6615442. |
10509 | 196 |
* Tue Sep 18 2007 - [email protected] |
197 |
- Bump to 1.0.0. |
|
10444 | 198 |
* Tue Sep 04 2007 - [email protected] |
199 |
- Bump to 0.1.92. |
|
200 |
* Sun Sep 02 2007 - [email protected] |
|
201 |
- Initial version. |