9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-a11y-poke
|
|
3 |
#
|
10419
|
4 |
# includes module(s): accerciser
|
9397
|
5 |
#
|
11370
|
6 |
# Copyright 2008 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
11430
|
10 |
# Owner: liyuan
|
9397
|
11 |
#
|
|
12 |
%include Solaris.inc
|
10419
|
13 |
%use accerciser = accerciser.spec
|
9397
|
14 |
|
10419
|
15 |
Name: SUNWgnome-a11y-poke
|
10558
|
16 |
Summary: Interactive Python Accessibility Explorer
|
10419
|
17 |
Version: %{default_pkg_version}
|
|
18 |
Source: %{name}-manpages-0.1.tar.gz
|
|
19 |
SUNW_BaseDir: %{_basedir}
|
11976
|
20 |
SUNW_Copyright: %{name}.copyright
|
10419
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
|
9397
|
23 |
%include default-depend.inc
|
10419
|
24 |
Requires: SUNWgnome-python-libs
|
10455
|
25 |
Requires: SUNWgnome-python-desktop
|
10419
|
26 |
Requires: SUNWPython
|
|
27 |
Requires: SUNWgnome-base-libs
|
|
28 |
Requires: SUNWIPython
|
|
29 |
Requires: SUNWgnome-config
|
|
30 |
BuildRequires: SUNWPython-devel
|
9397
|
31 |
BuildRequires: SUNWgnome-base-libs-devel
|
10419
|
32 |
BuildRequires: SUNWgnome-python-libs-devel
|
10455
|
33 |
BuildRequires: SUNWgnome-python-desktop-devel
|
10419
|
34 |
BuildRequires: SUNWgnome-common-devel
|
|
35 |
|
|
36 |
%if %build_l10n
|
|
37 |
%package l10n
|
|
38 |
Summary: %{summary} - l10n files
|
|
39 |
SUNW_BaseDir: %{_basedir}
|
|
40 |
%include default-depend.inc
|
|
41 |
Requires: %{name}
|
|
42 |
%endif
|
|
43 |
|
|
44 |
%package root
|
|
45 |
Summary: %{summary} - / filesystem
|
|
46 |
SUNW_BaseDir: /
|
|
47 |
%include default-depend.inc
|
|
48 |
Requires: SUNWpostrun-root
|
9397
|
49 |
Requires: SUNWgnome-config
|
|
50 |
|
|
51 |
%prep
|
|
52 |
rm -rf %name-%version
|
|
53 |
mkdir %name-%version
|
10419
|
54 |
%accerciser.prep -d %name-%version
|
9397
|
55 |
cd %{_builddir}/%name-%version
|
|
56 |
gzcat %SOURCE0 | tar xf -
|
|
57 |
|
|
58 |
%build
|
10609
|
59 |
export PYTHON="/usr/bin/python2.4"
|
10419
|
60 |
export CPPFLAGS="-I/usr/include/python2.4"
|
|
61 |
export CFLAGS="%optflags -I%{_includedir} -I/usr/include/python2.4"
|
|
62 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
63 |
export LDFLAGS="%_ldflags"
|
|
64 |
|
|
65 |
%accerciser.build -d %name-%version
|
9397
|
66 |
|
|
67 |
%install
|
10419
|
68 |
%accerciser.install -d %name-%version
|
|
69 |
|
|
70 |
# install man page
|
9397
|
71 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
72 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
73 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
74 |
|
10419
|
75 |
%if %build_l10n
|
|
76 |
%else
|
|
77 |
# REMOVE l10n FILES
|
|
78 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
79 |
%endif
|
|
80 |
|
9397
|
81 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
82 |
|
|
83 |
%clean
|
|
84 |
rm -rf $RPM_BUILD_ROOT
|
|
85 |
|
10419
|
86 |
%post
|
11164
|
87 |
%include desktop-database-install.script
|
|
88 |
%include icon-cache.script
|
10419
|
89 |
|
|
90 |
%postun
|
|
91 |
test -x $BASEDIR/lib/postrun || exit 0
|
11164
|
92 |
%include desktop-database-uninstall.script
|
10419
|
93 |
|
|
94 |
%post root
|
11370
|
95 |
%include gconf-install.script
|
10419
|
96 |
|
|
97 |
%preun root
|
|
98 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
99 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
100 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
101 |
echo ' exit 0';
|
|
102 |
echo '}';
|
|
103 |
echo 'umask 0022';
|
|
104 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
105 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
106 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
107 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
108 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
109 |
echo 'schemas="$SDIR/accerciser.schemas"';
|
|
110 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
111 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
112 |
|
9397
|
113 |
%files
|
10419
|
114 |
%defattr(-,root,bin)
|
|
115 |
%doc README AUTHORS ChangeLog COPYING NEWS
|
9397
|
116 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
117 |
%{_bindir}/*
|
10419
|
118 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
119 |
%{_libdir}/*
|
|
120 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
121 |
%{_datadir}/accerciser
|
|
122 |
%dir %attr (0755, root, bin) %{_datadir}/omf
|
|
123 |
%{_datadir}/omf/*
|
|
124 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
125 |
%{_datadir}/applications/*.desktop
|
|
126 |
%dir %attr (-, root, other) %{_datadir}/icons
|
|
127 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor
|
|
128 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
|
|
129 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
|
|
130 |
%{_datadir}/icons/hicolor/scalable/apps/*
|
|
131 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
|
|
132 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
|
|
133 |
%{_datadir}/icons/hicolor/16x16/apps/*
|
|
134 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
|
|
135 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
|
|
136 |
%{_datadir}/icons/hicolor/22x22/apps/*
|
|
137 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
|
|
138 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
|
|
139 |
%{_datadir}/icons/hicolor/32x32/apps/*
|
|
140 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
|
|
141 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
|
|
142 |
%{_datadir}/icons/hicolor/48x48/apps/*
|
|
143 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
144 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help
|
|
145 |
%{_datadir}/gnome/help/*
|
|
146 |
%dir %attr (0755, root, bin) %{_mandir}
|
|
147 |
%dir %attr (0755, root, bin) %{_mandir}/*
|
|
148 |
%{_mandir}/*/*
|
|
149 |
|
|
150 |
%files root
|
10534
|
151 |
%defattr (-, root, sys)
|
10419
|
152 |
%dir %attr (0755, root, sys) %{_sysconfdir}
|
10440
|
153 |
%dir %attr (0755, root, sys) %{_sysconfdir}/gconf
|
|
154 |
%dir %attr (0755, root, sys) %{_sysconfdir}/gconf/schemas
|
10419
|
155 |
%{_sysconfdir}/gconf/schemas/*.schemas
|
|
156 |
|
|
157 |
%if %build_l10n
|
|
158 |
%files l10n
|
|
159 |
%defattr (-, root, bin)
|
9397
|
160 |
%dir %attr (0755, root, sys) %{_datadir}
|
10419
|
161 |
%attr (-, root, other) %{_datadir}/locale
|
|
162 |
%endif
|
9397
|
163 |
|
|
164 |
%changelog
|
11976
|
165 |
* Mon Mar 31 2008 - [email protected]
|
|
166 |
- Add copyright file
|
11430
|
167 |
* Thu Jan 10 2008 - [email protected]
|
|
168 |
- change owner to liyuan.
|
11370
|
169 |
* Thu Jan 3 2008 - [email protected]
|
|
170 |
- use gconf-install.script instead of an inline script
|
11164
|
171 |
* Mon Nov 12 2007 - [email protected]
|
|
172 |
- Use script for post and postun.
|
10609
|
173 |
* Thu Oct 4 2007 - [email protected]
|
|
174 |
- delete unneeded env vars; set PYTHON to the versioned binary
|
10534
|
175 |
* Tue Sep 18 2007 - [email protected]
|
|
176 |
- add missing %defattr in %files root
|
10455
|
177 |
* Thu Sep 06 2007 - [email protected]
|
|
178 |
- Add Build/Requires SUNWgnome-python-desktop/-devel for wnck and other python
|
|
179 |
modules.
|
10440
|
180 |
* Tue Sep 04 2007 - [email protected]
|
|
181 |
- Correct dir perms in root package.
|
10419
|
182 |
* Sun Sep 02 2007 - [email protected]
|
|
183 |
- Use accerciser to replace at-poke.
|
9397
|
184 |
* Fri Sep 01 2006 - [email protected]
|
|
185 |
- New Manpage tarball
|
|
186 |
* Sun Jun 11 2006 - [email protected]
|
|
187 |
- change group from other to bin/sys
|
|
188 |
* Sat May 13 2006 - [email protected]
|
|
189 |
- Remove /usr/lib/jds-private from LDFLAGS
|
|
190 |
* Tue May 09 2006 - [email protected]
|
|
191 |
- merge -share pkg(s) into the base pkg(s)
|
|
192 |
* Thu Jan 2 2006 - [email protected]
|
|
193 |
- Update Build/Requires to fix 6319720/2129498.
|
|
194 |
* Wed Oct 13 2004 - [email protected]
|
|
195 |
- define share subpkg, move existing %files to %files share and
|
|
196 |
add %files for bindir/at-poke
|
|
197 |
* Sat Oct 02 2004 - [email protected]
|
|
198 |
- added %pkgbuild_postprocess
|
|
199 |
* Mon Sep 20 2004 - [email protected]
|
|
200 |
- Correct syntax for addition of manpage.
|
|
201 |
* Thu Sep 09 2004 - [email protected]
|
|
202 |
- Added at-poke.1 manpage
|
|
203 |
* Tue Jul 20 2004 - [email protected]
|
|
204 |
- Remove SUNWgnome-xml BuildRequires. Failed in test build.
|
|
205 |
* Tue Jul 20 2004 - [email protected]
|
|
206 |
- Initial version.
|