/[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 814997 - (show annotations) (download)
Mon Feb 16 00:14:55 2015 UTC (9 years, 2 months ago) by luigiwalser
Original Path: cauldron/tigervnc/current/SPECS/tigervnc.spec
File size: 7789 byte(s)
resync patch14 from fedora to fix build with x11-server 1.16.x
1 Name: tigervnc
2 Version: 1.3.1
3 Release: %mkrel 6
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 #Patches from fedora
25 Patch13: tigervnc-1.3.0-xserver-1.15.patch
26 Patch15: tigervnc-1.3.1-xserver-1.16.patch
27
28 # This is tigervnc-%{version}/unix/xserver114.patch rebased on the latest xorg
29 Patch14: tigervnc-xserver-1.14-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 .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 %patch15 -p1 -b .116
198
199
200 %build
201
202 %{cmake}
203 %make
204 cd ..
205
206 pushd unix/xserver
207 rm -f configure
208 autoreconf -fiv
209 %configure2_5x --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
210 --disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
211 --with-pic --disable-static --disable-xinerama \
212 --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \
213 --with-fontdir=%{_datadir}/X11/fonts \
214 --with-xkb-output=%{_localstatedir}/lib/xkb \
215 --enable-install-libxf86config \
216 --enable-glx --disable-dri --enable-dri2 --disable-dri3 \
217 --disable-config-dbus \
218 --disable-wayland \
219 --disable-present \
220 --disable-config-hal \
221 --disable-config-udev \
222 --with-dri-driver-path=%{_libdir}/dri \
223 --without-dtrace \
224 --disable-unit-tests \
225 --disable-devel-docs \
226 --disable-selective-werror
227
228 %make
229
230 popd
231
232
233 # Build icons
234 pushd media
235 %{cmake}
236 %make
237
238 popd
239
240 # Build java
241 pushd java
242 %{cmake}
243 %make
244 #cd ..
245 popd
246
247 %install
248 pushd build
249 %makeinstall_std
250 popd
251
252 pushd unix/xserver/hw/vnc
253 %makeinstall_std
254 popd
255
256 # Install desktop stuff
257 mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps
258
259 pushd media/icons
260 for s in 16 24 48; do
261 install -m644 tigervnc_$s.png %{buildroot}/%{_datadir}/icons/hicolor/${s}x$s/apps/tigervnc.png
262 done
263 popd
264
265 mkdir %{buildroot}/%{_datadir}/applications
266 desktop-file-install \
267 --dir %{buildroot}%{_datadir}/applications \
268 %{SOURCE6}
269
270 %find_lang %{name} %{name}.lang
271
272 # remove unwanted files
273 rm -f %{buildroot}/%{_libdir}/xorg/modules/extensions/libvnc.la
274
275 # Install Java applet
276
277 install -d -m 755 %{buildroot}%{_javadir}
278 install -d -m 755 %{buildroot}%{_datadir}/vnc/classes
279 pushd java/build
280
281 install -m 755 VncViewer.jar %{buildroot}%{_datadir}/vnc/classes/vncviewer-%{version}.jar
282 popd
283
284 pushd java
285 install -m 644 com/tigervnc/vncviewer/index.vnc %{buildroot}%{_datadir}/vnc/classes
286 popd
287
288 pushd %{buildroot}%{_datadir}/vnc/classes
289 mv vncviewer-%{version}.jar %{buildroot}%{_javadir}
290 ln -s %{_javadir}/vncviewer-%{version}.jar VncViewer.jar
291 popd
292
293 pushd %{buildroot}%{_javadir}
294 ln -s vncviewer-%{version}.jar vncviewer.jar
295 ln -s vncviewer-%{version}.jar VncViewer.jar
296 popd
297
298

  ViewVC Help
Powered by ViewVC 1.1.30