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