/[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 903930 - (show annotations) (download)
Wed Nov 18 05:29:09 2015 UTC (8 years, 5 months ago) by tv
Original Path: cauldron/tigervnc/current/SPECS/tigervnc.spec
File size: 8051 byte(s)
add one patch from FC for xserver 1,18
1 Name: tigervnc
2 Version: 1.5.0
3 Release: %mkrel 3
4 License: GPLv2+
5 URL: http://www.tigervnc.com/
6 Source0: %{name}-%{version}.tar.gz
7 Source6: vncviewer.desktop
8
9 Patch1: tigervnc-cookie.patch
10 Patch2: tigervnc-fix-reversed-logic.patch
11 Patch3: tigervnc-libvnc-os.patch
12 Patch4: tigervnc11-rh692048.patch
13 # Patch syncro fdr 20
14 Patch5: tigervnc-fdr-inetd-nowait.patch
15 Patch7: tigervnc-fdr-manpages.patch
16 Patch8: tigervnc-fdr-getmaster.patch
17 Patch9: tigervnc-fdr-shebang.patch
18 # Patch from openmdv to build
19 Patch10: tigervnc11-mdv-link.patch
20 Patch12: tigervnc11-mdv-buildir.patch
21 #Patches from fedora
22 Patch13: tigervnc-xstartup.patch
23 Patch15: tigervnc-xserver118.patch
24 Patch17: tigervnc-xorg118-QueueKeyboardEvents.patch
25
26
27 # This is tigervnc-%%{version}/unix/xserver114.patch rebased on the latest xorg
28 #Patch14: tigervnc-xserver-1.14-rebased.patch
29 Patch14: tigervnc-xserver116-rebased.patch
30
31 BuildRequires: x11-server-source
32 BuildRequires: gettext-devel
33 BuildRequires: pkgconfig(x11)
34 BuildRequires: libxext-devel
35 BuildRequires: x11-font-util
36 BuildRequires: x11-util-macros
37 BuildRequires: x11-xtrans-devel
38 BuildRequires: mesagl-devel
39 BuildRequires: libxkbfile-devel
40 BuildRequires: libxfont-devel
41 BuildRequires: pixman-devel
42 BuildRequires: openssl-devel
43 BuildRequires: libpciaccess-devel
44 BuildRequires: libpam-devel
45 BuildRequires: libxtst-devel
46 BuildRequires: gnutls-devel
47 BuildRequires: imagemagick
48 BuildRequires: nasm
49 BuildRequires: java-devel
50 BuildRequires: desktop-file-utils
51 BuildRequires: jpackage-utils
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 .tigervnc-fix-reversed-logic.patch
163 %patch3 -p1 -b .tigervnc-libvnc-os.patch
164 %patch4 -p1 -b .rh692048
165
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 .tigervnc-xserver-1.14-rebased.patch
176 %patch14 -p1 -b .tigervnc-xserver116-rebased.patch
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 # Clearer xstartup file (bug #923655).
195 %patch13 -p1 -b .xstartup
196
197 %patch10 -p1 -b .link
198
199 #patch13 -p1 -b .115
200 %patch15 -p1 -b .tigervnc-xserver118.patch
201 %patch17 -p1 -b .xorg118-QueueKeyboardEvents
202
203
204 %build
205
206 %cmake
207 %make
208 cd ..
209
210 pushd unix/xserver
211 rm -f configure
212 autoreconf -fiv
213 %configure2_5x --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
214 --disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
215 --with-pic --disable-static --disable-xinerama \
216 --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \
217 --with-fontdir=%{_datadir}/X11/fonts \
218 --with-xkb-output=%{_localstatedir}/lib/xkb \
219 --enable-install-libxf86config \
220 --enable-glx --disable-dri --enable-dri2 --disable-dri3 \
221 --disable-config-dbus \
222 --disable-wayland \
223 --disable-present \
224 --disable-config-hal \
225 --disable-config-udev \
226 --with-dri-driver-path=%{_libdir}/dri \
227 --without-dtrace \
228 --disable-unit-tests \
229 --disable-devel-docs \
230 --disable-selective-werror
231
232 %make
233
234 popd
235
236
237 # Build icons
238 pushd media
239 %cmake
240 %make
241
242 popd
243
244 # Build java
245 pushd java
246 %{cmake}
247 %make
248 #cd ..
249 popd
250
251 %install
252 pushd build
253 %makeinstall_std
254 popd
255
256 pushd unix/xserver/hw/vnc
257 %makeinstall_std
258 popd
259
260 # Install desktop stuff
261 mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps
262
263 pushd media/icons
264 for s in 16 24 48; do
265 install -m644 tigervnc_$s.png %{buildroot}/%{_datadir}/icons/hicolor/${s}x$s/apps/tigervnc.png
266 done
267 popd
268
269 mkdir %{buildroot}/%{_datadir}/applications
270 desktop-file-install \
271 --dir %{buildroot}%{_datadir}/applications \
272 %{SOURCE6}
273
274 %find_lang %{name} %{name}.lang
275
276 # remove unwanted files
277 rm -f %{buildroot}/%{_libdir}/xorg/modules/extensions/libvnc.la
278
279 # Install Java applet
280
281 install -d -m 755 %{buildroot}%{_javadir}
282 install -d -m 755 %{buildroot}%{_datadir}/vnc/classes
283 pushd java/build
284
285 install -m 755 VncViewer.jar %{buildroot}%{_datadir}/vnc/classes/vncviewer-%{version}.jar
286 popd
287
288 pushd java
289 install -m 644 com/tigervnc/vncviewer/index.vnc %{buildroot}%{_datadir}/vnc/classes
290 popd
291
292 pushd %{buildroot}%{_datadir}/vnc/classes
293 mv vncviewer-%{version}.jar %{buildroot}%{_javadir}
294 ln -s %{_javadir}/vncviewer-%{version}.jar VncViewer.jar
295 popd
296
297 pushd %{buildroot}%{_javadir}
298 ln -s vncviewer-%{version}.jar vncviewer.jar
299 ln -s vncviewer-%{version}.jar VncViewer.jar
300 popd
301
302

  ViewVC Help
Powered by ViewVC 1.1.30