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