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