author | henryz |
Wed, 09 Apr 2008 07:35:21 +0000 | |
changeset 12065 | ec40d145a28b |
parent 11976 | 798f0ce46ec6 |
child 13342 | 7b087c1e5222 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-a11y-gok |
|
3 |
# |
|
4 |
# includes module(s): gok |
|
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 |
|
13 |
||
14 |
%use gok = gok.spec |
|
15 |
||
16 |
Name: SUNWgnome-a11y-gok |
|
17 |
Summary: GNOME On-screen Keyboard |
|
18 |
Version: %{default_pkg_version} |
|
19 |
Source: %{name}-manpages-0.1.tar.gz |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
11976 | 21 |
SUNW_Copyright: %{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
25 |
Requires: SUNWgnome-a11y-libs |
|
26 |
Requires: SUNWgnome-a11y-gok-root |
|
27 |
Requires: SUNWgnome-panel |
|
28 |
Requires: SUNWgnome-libs |
|
29 |
Requires: SUNWgnome-a11y-speech |
|
30 |
Requires: SUNWgnome-audio |
|
31 |
Requires: SUNWgnome-base-libs |
|
32 |
Requires: SUNWgnome-component |
|
33 |
Requires: SUNWgnome-config |
|
34 |
Requires: SUNWlibms |
|
35 |
Requires: SUNWlxml |
|
36 |
Requires: SUNWpostrun |
|
37 |
BuildRequires: SUNWgnome-audio-devel |
|
38 |
BuildRequires: SUNWgnome-base-libs-devel |
|
39 |
BuildRequires: SUNWgnome-component-devel |
|
40 |
BuildRequires: SUNWgnome-config-devel |
|
41 |
BuildRequires: SUNWgnome-a11y-speech-devel |
|
42 |
BuildRequires: SUNWgnome-panel-devel |
|
43 |
BuildRequires: SUNWgnome-libs-devel |
|
44 |
||
45 |
%package root |
|
46 |
Summary: %{summary} - / filesystem |
|
47 |
SUNW_BaseDir: / |
|
48 |
%include default-depend.inc |
|
49 |
Requires: SUNWpostrun-root |
|
50 |
Requires: SUNWgnome-config |
|
51 |
||
52 |
%if %build_l10n |
|
53 |
%package l10n |
|
54 |
Summary: %{summary} - l10n files |
|
55 |
SUNW_BaseDir: %{_basedir} |
|
56 |
%include default-depend.inc |
|
57 |
Requires: %{name} |
|
58 |
%endif |
|
59 |
||
60 |
%prep |
|
61 |
rm -rf %name-%version |
|
62 |
mkdir %name-%version |
|
63 |
%gok.prep -d %name-%version |
|
64 |
cd %{_builddir}/%name-%version |
|
65 |
gzcat %SOURCE0 | tar -xf - |
|
66 |
||
67 |
%build |
|
68 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
69 |
export LDFLAGS="%_ldflags" |
|
70 |
%ifarch sparc |
|
71 |
export CFLAGS="%optflags -I%{_includedir}" |
|
72 |
%else |
|
73 |
export CFLAGS="%optflags -xO2 -I%{_includedir}" |
|
74 |
%endif |
|
10652 | 75 |
%if %option_with_fox |
76 |
# for <X11/extensions/XInput.h> |
|
77 |
export CFLAGS="$CFLAGS -I/usr/X11/include" |
|
78 |
%endif |
|
9397 | 79 |
export RPM_OPT_FLAGS="$CFLAGS" |
80 |
%gok.build -d %name-%version |
|
81 |
||
82 |
%install |
|
83 |
rm -rf $RPM_BUILD_ROOT |
|
84 |
%gok.install -d %name-%version |
|
85 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
86 |
cd %{_builddir}/%name-%version/sun-manpages |
|
87 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
88 |
||
89 |
%if %build_l10n |
|
90 |
%else |
|
91 |
# REMOVE l10n FILES |
|
92 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale |
|
93 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gok/ang |
|
94 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gok/[a-z][a-z] |
|
95 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gok/[a-z][a-z]_[A-Z][A-Z] |
|
96 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gok/sr@Latn |
|
97 |
%endif |
|
98 |
||
99 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} |
|
100 |
||
101 |
%clean |
|
102 |
rm -rf $RPM_BUILD_ROOT |
|
103 |
||
104 |
%post |
|
11120 | 105 |
%include desktop-database-install.script |
106 |
%include scrollkeeper-update.script |
|
107 |
%include icon-cache.script |
|
9397 | 108 |
|
109 |
%postun |
|
110 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
11120 | 111 |
%include desktop-database-uninstall.script |
112 |
%include scrollkeeper-update.script |
|
9397 | 113 |
|
114 |
%post root |
|
11120 | 115 |
%include gconf-install.script |
9397 | 116 |
|
117 |
%preun root |
|
118 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
119 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
120 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
121 |
echo ' exit 0'; |
|
122 |
echo '}'; |
|
123 |
echo 'umask 0022'; |
|
124 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
125 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
126 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
127 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
128 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
129 |
echo 'schemas="$SDIR/gok.schemas"'; |
|
130 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
131 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
132 |
||
133 |
%files |
|
134 |
%defattr (-, root, bin) |
|
135 |
%dir %attr (0755, root, bin) %{_bindir} |
|
136 |
%{_bindir}/* |
|
137 |
%dir %attr (0755, root, bin) %{_libdir} |
|
138 |
%{_libdir}/bonobo |
|
139 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
140 |
%{_libdir}/pkgconfig/* |
|
141 |
%dir %attr (0755, root, sys) %{_datadir} |
|
142 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
143 |
%{_datadir}/applications/* |
|
144 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
145 |
%{_datadir}/gnome/help/gok/C |
|
146 |
%{_datadir}/gok/*.png |
|
147 |
%{_datadir}/gok/*.kbd |
|
148 |
%{_datadir}/gok/*.rc |
|
149 |
%{_datadir}/gok/*.txt |
|
150 |
%{_datadir}/gok/*.xam |
|
151 |
%{_datadir}/gok/*.wav |
|
152 |
%{_datadir}/gok/glade |
|
9950
f9219594b632
* SUNWgnome-a11y-gok.spec: Add hicolor dir to %files.
dcarbery
parents:
9397
diff
changeset
|
153 |
%dir %attr (-, root, other) %{_datadir}/icons |
f9219594b632
* SUNWgnome-a11y-gok.spec: Add hicolor dir to %files.
dcarbery
parents:
9397
diff
changeset
|
154 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor |
f9219594b632
* SUNWgnome-a11y-gok.spec: Add hicolor dir to %files.
dcarbery
parents:
9397
diff
changeset
|
155 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 |
f9219594b632
* SUNWgnome-a11y-gok.spec: Add hicolor dir to %files.
dcarbery
parents:
9397
diff
changeset
|
156 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps |
f9219594b632
* SUNWgnome-a11y-gok.spec: Add hicolor dir to %files.
dcarbery
parents:
9397
diff
changeset
|
157 |
%{_datadir}/icons/hicolor/48x48/apps/gok.png |
9397 | 158 |
%{_datadir}/omf/gok/gok-C.omf |
159 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
160 |
%{_datadir}/pixmaps/* |
|
161 |
%dir %attr(0755, root, bin) %{_mandir} |
|
162 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
163 |
%{_mandir}/*/* |
|
164 |
||
165 |
%files root |
|
166 |
%defattr (-, root, sys) |
|
167 |
%dir %attr (0755, root, sys) %{_sysconfdir} |
|
168 |
%{_sysconfdir}/gconf/schemas/gok.schemas |
|
169 |
||
170 |
%if %build_l10n |
|
171 |
%files l10n |
|
172 |
%defattr (-, root, bin) |
|
173 |
%dir %attr (0755, root, sys) %{_datadir} |
|
174 |
%dir %attr (0755, root, bin) %{_datadir}/gok |
|
175 |
%{_datadir}/gok/[a-z][a-z] |
|
176 |
%{_datadir}/gok/[a-z][a-z]_[A-Z][A-Z] |
|
177 |
%{_datadir}/gok/ang |
|
178 |
%{_datadir}/gok/sr@Latn |
|
179 |
%defattr (-, root, other) |
|
180 |
%{_datadir}/locale/[a-z][a-z] |
|
181 |
%{_datadir}/locale/[a-z][a-z]_[A-Z][A-Z] |
|
182 |
%{_datadir}/locale/ang |
|
183 |
%{_datadir}/locale/sr@Latn |
|
184 |
%endif |
|
185 |
||
186 |
%changelog |
|
11976 | 187 |
* Mon Mar 31 2008 - [email protected] |
188 |
- Add copyright file |
|
11430 | 189 |
* Thu Jan 10 2008 - [email protected] |
190 |
- change owner to liyuan. |
|
11370 | 191 |
* Thu Jan 3 2008 - [email protected] |
192 |
- use gconf-install.script instead of an inline script |
|
11120 | 193 |
* Mon Nov 05 2007 - [email protected] |
194 |
- Use icon-cache.script for %post. Change the inline post script |
|
195 |
to an include. |
|
10652 | 196 |
* Fri Oct 12 1007 - [email protected] |
197 |
- add /usr/X11/include to CFLAGS when built with FOX |
|
10569 | 198 |
* Fri Sep 28 2007 - [email protected] |
199 |
- delete SUNWxwrtl dep |
|
9950
f9219594b632
* SUNWgnome-a11y-gok.spec: Add hicolor dir to %files.
dcarbery
parents:
9397
diff
changeset
|
200 |
* Mon May 28 2007 - [email protected] |
f9219594b632
* SUNWgnome-a11y-gok.spec: Add hicolor dir to %files.
dcarbery
parents:
9397
diff
changeset
|
201 |
- Add hicolor dir to %files. |
9397 | 202 |
* Tue Jan 30 2007 - [email protected] |
203 |
- Remove the 'ang' locale files when not doing l10n build. |
|
204 |
* Tue Jan 23 2007 - [email protected] |
|
205 |
- Add 'ang' locale. |
|
206 |
* Fri Sep 01 2006 - [email protected] |
|
207 |
- New man page tarball |
|
208 |
* Sat Aug 12 2006 - [email protected] |
|
209 |
- delete some unnecessary env variables |
|
210 |
* Fri Jul 14 2006 - [email protected] |
|
211 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
212 |
part of 6448317 |
|
213 |
* Fri Jul 14 2006 - [email protected] |
|
214 |
- Add %{_datadir}/locale to l10n package, byproduct of intltool update. |
|
215 |
* Thu Jun 29 2006 - [email protected] |
|
216 |
- update postrun scripts |
|
217 |
* Mon Jun 26 2006 - [email protected] |
|
218 |
- move back to /usr, part of CR 6412650 |
|
219 |
* Sun Jun 11 2006 - [email protected] |
|
220 |
- change group from other to bin/sys |
|
221 |
* Wed May 31 2006 - [email protected] |
|
222 |
- Change dirs in base and l10n packages as l10n files have been moved around |
|
223 |
for the 1.0.10 tarball. |
|
224 |
* Thu May 25 2006 - [email protected] |
|
225 |
- use post/preun scripts to install schemas into the merged gconf files |
|
226 |
* Tue May 09 2006 - [email protected] |
|
227 |
- merge -share pkg(s) into the base pkg(s) |
|
228 |
* Mon Feb 20 2006 - [email protected] |
|
229 |
- Complete update of Build/Requires after running check-deps.pl script. |
|
230 |
* Thu Feb 16 2006 - [email protected] |
|
231 |
- Update Build/Requires after running check-deps.pl script. |
|
232 |
* Sat Dec 3 2005 - [email protected] |
|
233 |
- add %post script that runs update-desktop-database |
|
234 |
* Tue Nov 29 2005 - [email protected] |
|
235 |
- remove javahelp stuff |
|
236 |
* Mon Dec 13 2004 - [email protected] |
|
237 |
- Move to /usr/sfw to implement ARC decision. |
|
238 |
* Fri Nov 19 2004 - [email protected] |
|
239 |
- Fix for 6197815: move unsupported app to /usr/demo/jds. |
|
240 |
* Fri Nov 12 2004 - [email protected] |
|
241 |
- Added workaround fix for 6193354 |
|
242 |
* Wed Oct 06 2004 - [email protected] |
|
243 |
- added l10n help files |
|
244 |
* Sat Oct 02 2004 - [email protected] |
|
245 |
- added %pkgbuild_postprocess |
|
246 |
* Thu Sep 09 2004 [email protected] |
|
247 |
- Added create-branching-keyboard.1, gok.1 manpages |
|
248 |
* Thu Aug 26 2004 [email protected] |
|
249 |
- Lower optimization level on x86 to fix 5086691 - data corruption otherwise. |
|
250 |
-xO2 will take precedence over -xO4 because it is later in CFLAGS. |
|
251 |
* Sat Jun 26 2004 [email protected] |
|
252 |
- Changed install location to /usr/... |
|
253 |
* Wed Jun 23 2004 - [email protected] |
|
254 |
- Install schema files. |
|
255 |
* Wed Jun 2 2004 - [email protected] |
|
256 |
- Added %{_datadir}/locale to install l10n messages |
|
257 |
* Tue May 18 2004 - [email protected] |
|
258 |
- add gnome-speech dependency |
|
259 |
* Tue Mar 23 2004 - [email protected] |
|
260 |
- remove gtk-doc from %files |
|
261 |
* Tue Mar 02 2004 - [email protected] |
|
262 |
- add dependency on SUNWgnome-panel |
|
263 |
* Fri Feb 27 2004 - [email protected] |
|
264 |
- add %defattr for share subpkg |
|
265 |
* Thu Feb 26 2004 - [email protected] |
|
266 |
- add share %package |
|
267 |
- define PERL5LIB for XML::Parser |