author | laca |
Tue, 05 Aug 2008 04:33:16 +0000 | |
branch | gnome-2-22 |
changeset 12486 | 7fa2b2b0dddb |
parent 11922 | da6b0e630b7d |
child 13065 | 4f895ab11740 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-remote-desktop |
|
3 |
# |
|
10106 | 4 |
# includes module(s): vino, realvnc-java-client |
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 |
# |
|
10 |
# Owner: halton |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%define makeinstall make install DESTDIR=$RPM_BUILD_ROOT |
|
15 |
%use vino = vino.spec |
|
10572 | 16 |
%if %option_with_java |
10106 | 17 |
%use rjc = realvnc-java-client.spec |
10572 | 18 |
%endif |
9397 | 19 |
|
20 |
Name: SUNWgnome-remote-desktop |
|
21 |
Summary: GNOME remote desktop |
|
22 |
Version: %{default_pkg_version} |
|
23 |
SUNW_BaseDir: %{_basedir} |
|
11922 | 24 |
SUNW_Copyright: %{name}.copyright |
9397 | 25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
11922 | 26 |
Source1: %{name}-manpages-0.1.tar.gz |
9397 | 27 |
|
28 |
%include default-depend.inc |
|
29 |
Requires: SUNWgnome-libs |
|
30 |
Requires: SUNWgnome-base-libs |
|
31 |
Requires: SUNWgnome-component |
|
32 |
Requires: SUNWgnome-config |
|
33 |
Requires: SUNWgnutls |
|
34 |
Requires: SUNWjpg |
|
35 |
Requires: SUNWlibgcrypt |
|
36 |
Requires: SUNWzlib |
|
37 |
Requires: SUNWpostrun |
|
10233 | 38 |
Requires: SUNWgnome-panel |
11106 | 39 |
Requires: SUNWavahi-bridge-dsd |
9397 | 40 |
BuildRequires: SUNWgnome-component-devel |
41 |
BuildRequires: SUNWgnome-config-devel |
|
42 |
BuildRequires: SUNWgnutls-devel |
|
43 |
BuildRequires: SUNWjpg-devel |
|
44 |
BuildRequires: SUNWlibgcrypt-devel |
|
45 |
BuildRequires: SUNWgnome-libs-devel |
|
46 |
BuildRequires: SUNWgnome-base-libs-devel |
|
10233 | 47 |
BuildRequires: SUNWgnome-panel-devel |
11106 | 48 |
BuildRequires: SUNWavahi-bridge-dsd-devel |
9397 | 49 |
|
50 |
%if %build_l10n |
|
51 |
%package l10n |
|
52 |
Summary: %{summary} - l10n files |
|
53 |
SUNW_BaseDir: %{_basedir} |
|
54 |
%include default-depend.inc |
|
55 |
Requires: %{name} |
|
56 |
%endif |
|
57 |
||
58 |
%package root |
|
59 |
Summary: %{summary} - / filesystem |
|
60 |
SUNW_BaseDir: / |
|
61 |
%include default-depend.inc |
|
62 |
Requires: SUNWpostrun-root |
|
63 |
Requires: SUNWgnome-config |
|
64 |
||
65 |
%prep |
|
66 |
rm -rf %name-%version |
|
67 |
mkdir %name-%version |
|
68 |
%vino.prep -d %name-%version |
|
10572 | 69 |
%if %option_with_java |
10106 | 70 |
%rjc.prep -d %name-%version |
10572 | 71 |
%endif |
9397 | 72 |
cd %{_builddir}/%name-%version |
10106 | 73 |
gzcat %SOURCE1 | tar xf - |
9397 | 74 |
|
75 |
%build |
|
76 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
77 |
export CFLAGS="%optflags -I%{_includedir} -I/usr/sfw/include" |
|
78 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
79 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib" |
|
80 |
||
81 |
%vino.build -d %name-%version |
|
10575 | 82 |
%if %option_with_java |
10106 | 83 |
%rjc.build -d %name-%version |
10575 | 84 |
%endif |
9397 | 85 |
|
86 |
%install |
|
87 |
rm -rf $RPM_BUILD_ROOT |
|
88 |
%vino.install -d %name-%version |
|
10572 | 89 |
%if %option_with_java |
9397 | 90 |
# install vnc client |
10106 | 91 |
cd %{name}-%{version} |
92 |
cd vnc-*javasrc/java |
|
10172
8d21584c9e1d
* SUNWgnome-remote-desktop.spec: Use $prefix/share/vino for data in
halton
parents:
10106
diff
changeset
|
93 |
install --mode=0755 vncviewer.jar $RPM_BUILD_ROOT%{_datadir}/vino/vino-client.jar |
8d21584c9e1d
* SUNWgnome-remote-desktop.spec: Use $prefix/share/vino for data in
halton
parents:
10106
diff
changeset
|
94 |
install --mode=0755 vino-client.html $RPM_BUILD_ROOT%{_datadir}/vino/vino-client.html |
10572 | 95 |
%endif |
9397 | 96 |
|
97 |
# install man page |
|
98 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
99 |
cd %{_builddir}/%name-%version/sun-manpages |
|
100 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
101 |
||
102 |
%if %build_l10n |
|
103 |
%else |
|
104 |
# REMOVE l10n FILES |
|
105 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
106 |
%endif |
|
107 |
||
108 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} |
|
109 |
||
110 |
%clean |
|
111 |
rm -rf $RPM_BUILD_ROOT |
|
112 |
||
113 |
%post |
|
10644 | 114 |
%include desktop-database-install.script |
10639 | 115 |
%include icon-cache.script |
9397 | 116 |
|
117 |
%postun |
|
118 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
10644 | 119 |
%include desktop-database-uninstall.script |
9397 | 120 |
|
121 |
%post root |
|
10639 | 122 |
%include gconf-install.script |
9397 | 123 |
|
124 |
%preun root |
|
125 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
126 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
127 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
128 |
echo ' exit 0'; |
|
129 |
echo '}'; |
|
130 |
echo 'umask 0022'; |
|
131 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
132 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
133 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
134 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
135 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
136 |
echo 'schemas="$SDIR/vino-server.schemas"'; |
|
137 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
138 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
139 |
||
140 |
%files |
|
141 |
%defattr (-, root, bin) |
|
142 |
%dir %attr (0755, root, bin) %{_bindir} |
|
143 |
%{_bindir}/* |
|
144 |
%dir %attr (0755, root, bin) %{_libdir} |
|
145 |
%{_libdir}/vino-server |
|
146 |
%{_libdir}/bonobo/servers/GNOME_RemoteDesktop.server |
|
147 |
%dir %attr (0755, root, sys) %{_datadir} |
|
10172
8d21584c9e1d
* SUNWgnome-remote-desktop.spec: Use $prefix/share/vino for data in
halton
parents:
10106
diff
changeset
|
148 |
%{_datadir}/vino |
9397 | 149 |
%dir %attr (0755, root, other) %{_datadir}/applications |
150 |
%{_datadir}/applications/* |
|
151 |
%dir %attr(0755, root, bin) %{_mandir} |
|
152 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
153 |
%{_mandir}/*/* |
|
154 |
||
155 |
%if %build_l10n |
|
156 |
%files l10n |
|
157 |
%defattr (-, root, bin) |
|
158 |
%dir %attr (0755, root, sys) %{_datadir} |
|
159 |
%attr (-, root, other) %{_datadir}/locale |
|
160 |
%endif |
|
161 |
||
162 |
%files root |
|
9780 | 163 |
%defattr (-, root, sys) |
9397 | 164 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
165 |
%{_sysconfdir}/gconf/schemas/vino-server.schemas |
|
166 |
||
167 |
%changelog |
|
11922 | 168 |
* Thu Mar 27 2008 - [email protected] |
169 |
- Add copyright file |
|
11370 | 170 |
* Thu Jan 3 2008 - [email protected] |
171 |
- use gconf-install.script instead of an inline script |
|
11106 | 172 |
* Fri Nov 02 2007 - [email protected] |
11107 | 173 |
- Remove vncviewer wrapper since C version of vncviewer will be added. |
174 |
* Fri Nov 02 2007 - [email protected] |
|
11106 | 175 |
- Add SUNWavahi-bridge-dsd to Requires |
176 |
- Add SUNWavahi-bridge-dsd-devel to BuildRequires |
|
11088 | 177 |
* Wed Oct 31 2007 - [email protected] |
178 |
- Remove %{_datadir}/icons from %files as it is not installed. |
|
10639 | 179 |
* Thu Oct 11 2007 - [email protected] |
10644 | 180 |
- Use desktop-database-install.script for %post |
181 |
and desktop-database-uninstall.script for %postun |
|
182 |
* Thu Oct 11 2007 - [email protected] |
|
10639 | 183 |
- change the inline postinstall script to an include |
10572 | 184 |
* Fri Sep 28 2007 - [email protected] |
185 |
- disable building the java client when --without-java is used |
|
186 |
- delete unneeded env variables |
|
10233 | 187 |
* Tue Jul 31 2007 - [email protected] |
188 |
- Add Requires: SUNWgnome-panel and BuildRequires: SUNWgnome-panel-devel |
|
189 |
because vino-server now depend on libnotify, fix bugster #6585037. |
|
10172
8d21584c9e1d
* SUNWgnome-remote-desktop.spec: Use $prefix/share/vino for data in
halton
parents:
10106
diff
changeset
|
190 |
* Tue Jul 10 2007 - [email protected] |
8d21584c9e1d
* SUNWgnome-remote-desktop.spec: Use $prefix/share/vino for data in
halton
parents:
10106
diff
changeset
|
191 |
- Use $prefix/share/vino for data in favor of $prefix/share/gnome/vino, |
8d21584c9e1d
* SUNWgnome-remote-desktop.spec: Use $prefix/share/vino for data in
halton
parents:
10106
diff
changeset
|
192 |
refer bugzilla #436460. |
10106 | 193 |
* Fri Jun 22 2007 - [email protected] |
194 |
- Use realvnc-java-client.spec generate vino-client.jar and vino-client.html |
|
195 |
- Add script wrapper /usr/bin/vncviewer for vino-client.jar |
|
9780 | 196 |
* Tue Apr 24 2007 - [email protected] |
197 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9397 | 198 |
* Wed Nov 08 2006 - [email protected] |
199 |
- Add manpage section to fix bug, bugster #6489749 |
|
200 |
* Fri Spe 22 2006 - [email protected] |
|
201 |
- temporarily comment out manpage sections as source tarball does not exist |
|
202 |
* Mon Sept 11 2006 - [email protected] |
|
203 |
- update to add vnc client support with server |
|
204 |
- update to add manpage |
|
205 |
* Sat Aug 12 2006 - [email protected] |
|
206 |
- change datadir/icons permissions back to root:other since it's a stable |
|
207 |
interface and wasn't supposed to be changed |
|
208 |
* Fri Jul 14 2006 - [email protected] |
|
209 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
210 |
part of 6448317 |
|
211 |
* Thu Jun 29 2006 - [email protected] |
|
212 |
- update postrun scripts |
|
213 |
* Sun Jun 11 2006 - [email protected] |
|
214 |
- change group from other to bin/sys |
|
215 |
* Fri Jun 2 2006 - [email protected] |
|
216 |
- use post/preun scripts to install schemas into the merged gconf files |
|
217 |
* Thu May 11 2006 - [email protected] |
|
218 |
- Merge -share pkg(s) into the base pkg(s). |
|
219 |
* Mon Feb 20 2006 - [email protected] |
|
220 |
- Complete update of Build/Requires after running check-deps.pl script. |
|
221 |
* Fri Feb 17 2006 - [email protected] |
|
222 |
- Update Build/Requires after running check-deps.pl script. |
|
223 |
* Sat Dec 3 2005 - [email protected] |
|
224 |
- add %post script that runs update-desktop-database |
|
225 |
* Fri Sep 30 2005 - [email protected] |
|
226 |
- Add applications and icons dirs under %{_datadir}. |
|
227 |
* Sat Oct 02 2004 - [email protected] |
|
228 |
- added %pkgbuild_postprocess |
|
229 |
* Mon Aug 23 2004 - [email protected] |
|
230 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
231 |
* Thu Jun 23 2004 - [email protected] |
|
232 |
- more changes for change install location to /usr/lib and /usr/bin |
|
233 |
* Tue Jun 22 2004 - [email protected] |
|
234 |
- changed install location to /usr/lib and /usr/bin |
|
235 |
* Wed Jun 2 2004 - [email protected] |
|
236 |
- Added %{_datadir}/locale to install l10n messages |
|
237 |
* Fri May 07 2004 - [email protected] |
|
238 |
- Removed locale/C from "%files share" since it doesn't |
|
239 |
exist. |
|
240 |
* Thu Apr 15 2004 - [email protected] |
|
241 |
- Created |