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

  ViewVC Help
Powered by ViewVC 1.1.30