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