1 |
dmorgan |
57067 |
Name: tigervnc |
2 |
bersuit |
494273 |
Version: 1.3.0 |
3 |
umeabot |
542337 |
Release: %mkrel 2 |
4 |
dmorgan |
57067 |
License: GPLv2+ |
5 |
|
|
URL: http://www.tigervnc.com/ |
6 |
bersuit |
494273 |
Source0: %{name}-%{version}.tar.bz2 |
7 |
|
|
Source6: vncviewer.desktop |
8 |
dmorgan |
57067 |
|
9 |
bersuit |
494273 |
#Patch mga3 |
10 |
|
|
Patch1: tigervnc-cookie.patch |
11 |
|
|
Patch2: tigervnc11-ldnow.patch |
12 |
|
|
Patch3: tigervnc11-gethomedir.patch |
13 |
|
|
Patch4: tigervnc11-rh692048.patch |
14 |
|
|
# Patch syncro fdr 20 |
15 |
|
|
Patch5: tigervnc-fdr-inetd-nowait.patch |
16 |
|
|
Patch6: tigervnc-fdr-setcursor-crash.patch |
17 |
|
|
Patch7: tigervnc-fdr-manpages.patch |
18 |
|
|
Patch8: tigervnc-fdr-getmaster.patch |
19 |
|
|
Patch9: tigervnc-fdr-shebang.patch |
20 |
|
|
# Patch from openmdv to build |
21 |
|
|
Patch10: tigervnc11-mdv-link.patch |
22 |
|
|
Patch11: tigervnc11-mdv-strfmt.patch |
23 |
|
|
Patch12: tigervnc11-mdv-buildir.patch |
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
bersuit |
449506 |
BuildRequires: x11-server-source |
29 |
|
|
BuildRequires: gettext-devel |
30 |
|
|
BuildRequires: pkgconfig(x11) |
31 |
|
|
BuildRequires: libxext-devel |
32 |
|
|
BuildRequires: x11-font-util |
33 |
|
|
BuildRequires: x11-util-macros |
34 |
|
|
BuildRequires: x11-xtrans-devel |
35 |
|
|
BuildRequires: mesagl-devel |
36 |
|
|
BuildRequires: libxkbfile-devel |
37 |
|
|
BuildRequires: libxfont-devel |
38 |
|
|
BuildRequires: pixman-devel |
39 |
|
|
BuildRequires: openssl-devel |
40 |
|
|
BuildRequires: libpciaccess-devel |
41 |
|
|
BuildRequires: libpam-devel |
42 |
|
|
BuildRequires: libxtst-devel |
43 |
|
|
BuildRequires: gnutls-devel |
44 |
|
|
BuildRequires: imagemagick |
45 |
|
|
BuildRequires: nasm |
46 |
|
|
BuildRequires: java-devel |
47 |
bersuit |
494273 |
BuildRequires: desktop-file-utils |
48 |
|
|
BuildRequires: jpackage-utils |
49 |
|
|
BuildRequires: java-rpmbuild |
50 |
|
|
BUildRequires: fltk-devel |
51 |
|
|
BuildRequires: libtool |
52 |
|
|
BuildRequires: autoconf |
53 |
|
|
BUildRequires: libxi-devel |
54 |
|
|
BuildRequires: libxinerama-devel |
55 |
|
|
BuildRequires: freetype-devel |
56 |
|
|
BuildRequires: libxdmcp-devel |
57 |
|
|
BuildRequires: pam-devel |
58 |
|
|
BuildRequires: libjpeg-devel |
59 |
|
|
BuildRequires: cmake |
60 |
dmorgan |
57067 |
|
61 |
bersuit |
494273 |
|
62 |
|
|
|
63 |
|
|
|
64 |
dmorgan |
57067 |
#------------------------------------------------------------------------------ |
65 |
|
|
|
66 |
|
|
# package tigervnc |
67 |
|
|
|
68 |
|
|
Summary: Viewer for the VNC remote display system |
69 |
|
|
Group: Networking/Remote access |
70 |
|
|
|
71 |
|
|
%description |
72 |
|
|
Virtual Network Computing (VNC) is a remote display system which |
73 |
|
|
allows you to view a computing 'desktop' environment not only on the |
74 |
|
|
machine where it is running, but from anywhere on the Internet and |
75 |
|
|
from a wide variety of machine architectures. This package contains a |
76 |
|
|
client which will allow you to connect to other desktops running a VNC |
77 |
|
|
server. |
78 |
|
|
|
79 |
|
|
%files -f %{name}.lang |
80 |
bersuit |
494273 |
%_defaultdocdir/%{name}-%{version}/* |
81 |
dmorgan |
57067 |
%{_bindir}/vncviewer |
82 |
|
|
%{_iconsdir}/* |
83 |
|
|
%{_datadir}/applications/* |
84 |
|
|
%{_mandir}/man1/vncviewer.1* |
85 |
|
|
|
86 |
|
|
|
87 |
|
|
#------------------------------------------------------------------------------ |
88 |
|
|
|
89 |
|
|
%package server |
90 |
|
|
|
91 |
|
|
Summary: Server for the VNC remote display system |
92 |
|
|
Group: Networking/Remote access |
93 |
|
|
|
94 |
|
|
Requires: vnc-server-common |
95 |
|
|
|
96 |
|
|
%description server |
97 |
|
|
The VNC system allows you to access the same desktop from a wide |
98 |
|
|
variety of platforms. This package is a TigerVNC server, allowing |
99 |
|
|
others to access the desktop on your machine. |
100 |
|
|
|
101 |
|
|
%files server |
102 |
|
|
%{_bindir}/vncconfig |
103 |
|
|
%{_bindir}/vncpasswd |
104 |
|
|
%{_bindir}/x0vncserver |
105 |
|
|
%{_bindir}/Xvnc |
106 |
|
|
%{_bindir}/vncserver |
107 |
|
|
%{_mandir}/man1/Xvnc.1* |
108 |
|
|
%{_mandir}/man1/vncpasswd.1* |
109 |
|
|
%{_mandir}/man1/vncconfig.1* |
110 |
|
|
%{_mandir}/man1/vncserver.1* |
111 |
|
|
%{_mandir}/man1/x0vncserver.1* |
112 |
|
|
|
113 |
|
|
#------------------------------------------------------------------------------ |
114 |
|
|
|
115 |
|
|
%package server-module |
116 |
|
|
|
117 |
|
|
Summary: Xorg module for the VNC remote display system |
118 |
|
|
Group: Networking/Remote access |
119 |
|
|
|
120 |
|
|
Requires: x11-server-xorg |
121 |
|
|
|
122 |
|
|
%description server-module |
123 |
|
|
This package contains libvnc.so module to X server, allowing others |
124 |
|
|
to access the desktop on your machine. |
125 |
|
|
|
126 |
|
|
%files server-module |
127 |
|
|
%{_libdir}/xorg/modules/extensions/libvnc.so |
128 |
|
|
|
129 |
|
|
#------------------------------------------------------------------------------ |
130 |
|
|
|
131 |
|
|
%package java |
132 |
|
|
|
133 |
|
|
Summary: Java viewer for the VNC remote display system |
134 |
|
|
Group: Networking/Remote access |
135 |
|
|
|
136 |
|
|
|
137 |
|
|
# "TightVNC-specific" is not a typo, see the README file located inside the |
138 |
|
|
# java source tree |
139 |
|
|
%description java |
140 |
|
|
This distribution is based on the standard VNC source and includes new |
141 |
|
|
TightVNC-specific features and fixes, such as additional low-bandwidth |
142 |
|
|
optimizations, major GUI improvements, and more. |
143 |
|
|
|
144 |
|
|
There are three basic ways to use TigerVNC Java viewer: |
145 |
|
|
1. Running applet as part of TigerVNC server installation. |
146 |
|
|
2. Running applet hosted on a standalone Web server. |
147 |
|
|
3. Running the viewer as a standalone application. |
148 |
|
|
|
149 |
|
|
%files java |
150 |
|
|
%{_javadir}/*.jar |
151 |
bersuit |
449506 |
%{_datadir}/vnc |
152 |
dmorgan |
57067 |
|
153 |
|
|
#------------------------------------------------------------------------------ |
154 |
|
|
|
155 |
|
|
%prep |
156 |
dmorgan |
180030 |
%setup -q -n %{name}-%{version} |
157 |
|
|
|
158 |
bersuit |
494273 |
%patch12 -p1 -b .builddir |
159 |
|
|
%patch1 -p1 -b .cookie |
160 |
|
|
%patch2 -p1 -b .ldnow |
161 |
|
|
%patch3 -p1 -b .gethomedir |
162 |
|
|
%patch4 -p1 -b .rh692048 |
163 |
|
|
%patch11 -p1 -b .strfmt |
164 |
dmorgan |
180030 |
|
165 |
bersuit |
494273 |
|
166 |
|
|
|
167 |
|
|
|
168 |
dmorgan |
57067 |
cp -r /usr/share/x11-server-source/* unix/xserver |
169 |
|
|
pushd unix/xserver |
170 |
dmorgan |
180030 |
for all in `find . -type f -perm -001`; do |
171 |
|
|
chmod -x "$all" |
172 |
|
|
done |
173 |
bersuit |
494273 |
patch -p1 -b --suffix .vnc < ../xserver114.patch |
174 |
|
|
|
175 |
dmorgan |
57067 |
popd |
176 |
|
|
|
177 |
bersuit |
494273 |
# Applied Debian patch to fix busy loop when run from inetd in nowait |
178 |
|
|
# mode (bug #920373). |
179 |
|
|
%patch5 -p1 -b .inetd-nowait |
180 |
dmorgan |
57067 |
|
181 |
bersuit |
494273 |
%patch6 -p1 -b .setcursor-crash |
182 |
bersuit |
449506 |
|
183 |
bersuit |
494273 |
# Synchronise manpages and --help output (bug #980870). |
184 |
|
|
%patch7 -p1 -b .manpages |
185 |
bersuit |
449506 |
|
186 |
bersuit |
494273 |
# libvnc.so: don't use unexported GetMaster function (bug #744881 again). |
187 |
|
|
%patch8 -p1 -b .getmaster |
188 |
bersuit |
449506 |
|
189 |
bersuit |
494273 |
# Don't use shebang in vncserver script. |
190 |
|
|
%patch9 -p1 -b .shebang |
191 |
dmorgan |
57067 |
|
192 |
bersuit |
494273 |
|
193 |
|
|
%patch10 -p1 -b .link |
194 |
|
|
|
195 |
dmorgan |
57067 |
%build |
196 |
|
|
|
197 |
bersuit |
494273 |
%{cmake} |
198 |
dmorgan |
57067 |
%make |
199 |
bersuit |
494273 |
cd .. |
200 |
dmorgan |
57067 |
|
201 |
|
|
pushd unix/xserver |
202 |
bersuit |
494273 |
rm -f configure |
203 |
dmorgan |
57067 |
autoreconf -fiv |
204 |
bersuit |
494273 |
%configure2_5x --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \ |
205 |
|
|
--disable-xwin --disable-xephyr --disable-kdrive --with-pic \ |
206 |
|
|
--disable-static --disable-xinerama \ |
207 |
|
|
--with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \ |
208 |
|
|
--with-fontdir=%{_datadir}/X11/fonts \ |
209 |
|
|
--with-xkb-output=%{_localstatedir}/lib/xkb \ |
210 |
|
|
--enable-install-libxf86config \ |
211 |
|
|
--enable-glx --disable-dri --enable-dri2 \ |
212 |
|
|
--disable-config-dbus \ |
213 |
|
|
--disable-config-hal \ |
214 |
|
|
--disable-config-udev \ |
215 |
|
|
--with-dri-driver-path=%{_libdir}/dri \ |
216 |
|
|
--without-dtrace \ |
217 |
|
|
--disable-unit-tests \ |
218 |
|
|
--disable-devel-docs \ |
219 |
|
|
--disable-selective-werror |
220 |
dmorgan |
57067 |
|
221 |
bersuit |
494273 |
%make |
222 |
dmorgan |
57067 |
|
223 |
|
|
popd |
224 |
|
|
|
225 |
bersuit |
494273 |
|
226 |
dmorgan |
57067 |
# Build icons |
227 |
|
|
pushd media |
228 |
bersuit |
494273 |
%{cmake} |
229 |
dmorgan |
57067 |
%make |
230 |
bersuit |
494273 |
|
231 |
dmorgan |
57067 |
popd |
232 |
|
|
|
233 |
|
|
# Build java |
234 |
bersuit |
494273 |
pushd java |
235 |
|
|
%{cmake} |
236 |
|
|
%make |
237 |
|
|
#cd .. |
238 |
dmorgan |
57067 |
popd |
239 |
|
|
|
240 |
|
|
%install |
241 |
|
|
rm -rf %{buildroot} |
242 |
bersuit |
494273 |
pushd build |
243 |
dmorgan |
57067 |
%makeinstall_std |
244 |
bersuit |
494273 |
popd |
245 |
dmorgan |
57067 |
|
246 |
|
|
pushd unix/xserver/hw/vnc |
247 |
|
|
%makeinstall_std |
248 |
|
|
popd |
249 |
|
|
|
250 |
|
|
# Install desktop stuff |
251 |
|
|
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps |
252 |
|
|
|
253 |
|
|
pushd media/icons |
254 |
|
|
for s in 16 24 48; do |
255 |
|
|
install -m644 tigervnc_$s.png %{buildroot}/%{_datadir}/icons/hicolor/${s}x$s/apps/tigervnc.png |
256 |
|
|
done |
257 |
|
|
popd |
258 |
|
|
|
259 |
|
|
mkdir %{buildroot}/%{_datadir}/applications |
260 |
|
|
desktop-file-install \ |
261 |
bersuit |
494273 |
--dir %{buildroot}%{_datadir}/applications \ |
262 |
|
|
%{SOURCE6} |
263 |
dmorgan |
57067 |
|
264 |
|
|
%find_lang %{name} %{name}.lang |
265 |
|
|
|
266 |
|
|
# remove unwanted files |
267 |
|
|
rm -f %{buildroot}/%{_libdir}/xorg/modules/extensions/libvnc.la |
268 |
|
|
|
269 |
bersuit |
494273 |
# Install Java applet |
270 |
dmorgan |
57067 |
|
271 |
|
|
install -d -m 755 %{buildroot}%{_javadir} |
272 |
bersuit |
449506 |
install -d -m 755 %{buildroot}%{_datadir}/vnc/classes |
273 |
bersuit |
494273 |
pushd java/build |
274 |
bersuit |
449506 |
|
275 |
bersuit |
494273 |
install -m 755 VncViewer.jar %{buildroot}%{_datadir}/vnc/classes/vncviewer-%{version}.jar |
276 |
dmorgan |
57067 |
popd |
277 |
bersuit |
494273 |
|
278 |
|
|
pushd java |
279 |
|
|
install -m 644 com/tigervnc/vncviewer/index.vnc %{buildroot}%{_datadir}/vnc/classes |
280 |
|
|
popd |
281 |
|
|
|
282 |
bersuit |
449506 |
pushd %{buildroot}%{_datadir}/vnc/classes |
283 |
dmorgan |
57067 |
mv vncviewer-%{version}.jar %{buildroot}%{_javadir} |
284 |
|
|
ln -s %{_javadir}/vncviewer-%{version}.jar VncViewer.jar |
285 |
|
|
popd |
286 |
bersuit |
494273 |
|
287 |
dmorgan |
57067 |
pushd %{buildroot}%{_javadir} |
288 |
|
|
ln -s vncviewer-%{version}.jar vncviewer.jar |
289 |
|
|
ln -s vncviewer-%{version}.jar VncViewer.jar |
290 |
|
|
popd |
291 |
bersuit |
494273 |
|
292 |
|
|
|