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