/[packages]/updates/8/tigervnc/current/SPECS/tigervnc.spec
ViewVC logotype

Contents of /updates/8/tigervnc/current/SPECS/tigervnc.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1469065 - (show annotations) (download)
Fri Dec 20 08:26:00 2019 UTC (4 years, 3 months ago) by kekepower
Original Path: cauldron/tigervnc/current/SPECS/tigervnc.spec
File size: 6843 byte(s)
- Update to version 1.10.1

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

  ViewVC Help
Powered by ViewVC 1.1.30