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