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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 903930 - (hide annotations) (download)
Wed Nov 18 05:29:09 2015 UTC (8 years, 4 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 barjac 884385 Name: tigervnc
2     Version: 1.5.0
3 tv 903930 Release: %mkrel 3
4 barjac 884385 License: GPLv2+
5     URL: http://www.tigervnc.com/
6     Source0: %{name}-%{version}.tar.gz
7 bersuit 494273 Source6: vncviewer.desktop
8 dmorgan 57067
9 bersuit 494273 Patch1: tigervnc-cookie.patch
10 barjac 884915 Patch2: tigervnc-fix-reversed-logic.patch
11     Patch3: tigervnc-libvnc-os.patch
12     Patch4: tigervnc11-rh692048.patch
13 bersuit 494273 # Patch syncro fdr 20
14 barjac 884915 Patch5: tigervnc-fdr-inetd-nowait.patch
15     Patch7: tigervnc-fdr-manpages.patch
16     Patch8: tigervnc-fdr-getmaster.patch
17 bersuit 494273 Patch9: tigervnc-fdr-shebang.patch
18 barjac 884385 # Patch from openmdv to build
19 bersuit 494273 Patch10: tigervnc11-mdv-link.patch
20     Patch12: tigervnc11-mdv-buildir.patch
21 luigiwalser 668397 #Patches from fedora
22 barjac 884915 Patch13: tigervnc-xstartup.patch
23     Patch15: tigervnc-xserver118.patch
24 tv 903930 Patch17: tigervnc-xorg118-QueueKeyboardEvents.patch
25 bersuit 494273
26 tv 903930
27 barjac 884385 # This is tigervnc-%%{version}/unix/xserver114.patch rebased on the latest xorg
28 barjac 884915 #Patch14: tigervnc-xserver-1.14-rebased.patch
29     Patch14: tigervnc-xserver116-rebased.patch
30    
31 bersuit 449506 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 bersuit 612276 BuildRequires: desktop-file-utils
51 bersuit 494273 BuildRequires: jpackage-utils
52 barjac 884385 BuildRequires: fltk-devel
53 bersuit 494273 BuildRequires: libtool
54     BuildRequires: autoconf
55 barjac 884385 BuildRequires: libxi-devel
56 bersuit 494273 BuildRequires: libxinerama-devel
57     BuildRequires: freetype-devel
58     BuildRequires: libxdmcp-devel
59     BuildRequires: pam-devel
60     BuildRequires: libjpeg-devel
61     BuildRequires: cmake
62 dmorgan 57067
63 bersuit 494273
64    
65    
66 dmorgan 57067 #------------------------------------------------------------------------------
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 bersuit 494273 %_defaultdocdir/%{name}-%{version}/*
83 dmorgan 57067 %{_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 bersuit 449506 %{_datadir}/vnc
154 dmorgan 57067
155     #------------------------------------------------------------------------------
156    
157     %prep
158 dmorgan 180030 %setup -q -n %{name}-%{version}
159    
160 bersuit 494273 %patch12 -p1 -b .builddir
161     %patch1 -p1 -b .cookie
162 barjac 884915 %patch2 -p1 -b .tigervnc-fix-reversed-logic.patch
163     %patch3 -p1 -b .tigervnc-libvnc-os.patch
164     %patch4 -p1 -b .rh692048
165 dmorgan 180030
166 bersuit 494273
167    
168    
169 barjac 884915
170 dmorgan 57067 cp -r /usr/share/x11-server-source/* unix/xserver
171     pushd unix/xserver
172 dmorgan 180030 for all in `find . -type f -perm -001`; do
173     chmod -x "$all"
174     done
175 barjac 884915 #patch14 -p1 -b .tigervnc-xserver-1.14-rebased.patch
176     %patch14 -p1 -b .tigervnc-xserver116-rebased.patch
177 dmorgan 57067 popd
178    
179 bersuit 494273 # Applied Debian patch to fix busy loop when run from inetd in nowait
180     # mode (bug #920373).
181 barjac 884915 %patch5 -p1 -b .inetd-nowait
182 dmorgan 57067
183 barjac 884385 #patch6 -p1 -b .setcursor-crash
184 bersuit 449506
185 bersuit 494273 # Synchronise manpages and --help output (bug #980870).
186 barjac 884915 %patch7 -p1 -b .manpages
187 bersuit 449506
188 bersuit 494273 # libvnc.so: don't use unexported GetMaster function (bug #744881 again).
189 barjac 884915 %patch8 -p1 -b .getmaster
190 bersuit 449506
191 bersuit 494273 # Don't use shebang in vncserver script.
192     %patch9 -p1 -b .shebang
193 dmorgan 57067
194 barjac 884915 # Clearer xstartup file (bug #923655).
195     %patch13 -p1 -b .xstartup
196    
197 bersuit 494273 %patch10 -p1 -b .link
198    
199 barjac 884385 #patch13 -p1 -b .115
200 barjac 884915 %patch15 -p1 -b .tigervnc-xserver118.patch
201 tv 903930 %patch17 -p1 -b .xorg118-QueueKeyboardEvents
202 bersuit 612276
203    
204 dmorgan 57067 %build
205    
206 barjac 884915 %cmake
207 dmorgan 57067 %make
208 bersuit 494273 cd ..
209 dmorgan 57067
210     pushd unix/xserver
211 bersuit 494273 rm -f configure
212 dmorgan 57067 autoreconf -fiv
213 bersuit 494273 %configure2_5x --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
214 luigiwalser 668397 --disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
215     --with-pic --disable-static --disable-xinerama \
216 bersuit 494273 --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 bersuit 612276 --enable-glx --disable-dri --enable-dri2 --disable-dri3 \
221 bersuit 494273 --disable-config-dbus \
222 bersuit 612276 --disable-wayland \
223     --disable-present \
224 bersuit 494273 --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 dmorgan 57067
232 bersuit 494273 %make
233 dmorgan 57067
234     popd
235    
236 bersuit 494273
237 dmorgan 57067 # Build icons
238     pushd media
239 barjac 884385 %cmake
240 dmorgan 57067 %make
241 bersuit 494273
242 dmorgan 57067 popd
243    
244     # Build java
245 bersuit 494273 pushd java
246     %{cmake}
247     %make
248     #cd ..
249 dmorgan 57067 popd
250    
251     %install
252 bersuit 494273 pushd build
253 dmorgan 57067 %makeinstall_std
254 bersuit 494273 popd
255 dmorgan 57067
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 bersuit 494273 --dir %{buildroot}%{_datadir}/applications \
272     %{SOURCE6}
273 dmorgan 57067
274     %find_lang %{name} %{name}.lang
275    
276     # remove unwanted files
277     rm -f %{buildroot}/%{_libdir}/xorg/modules/extensions/libvnc.la
278    
279 bersuit 494273 # Install Java applet
280 dmorgan 57067
281     install -d -m 755 %{buildroot}%{_javadir}
282 bersuit 449506 install -d -m 755 %{buildroot}%{_datadir}/vnc/classes
283 bersuit 494273 pushd java/build
284 bersuit 449506
285 bersuit 494273 install -m 755 VncViewer.jar %{buildroot}%{_datadir}/vnc/classes/vncviewer-%{version}.jar
286 dmorgan 57067 popd
287 bersuit 494273
288     pushd java
289     install -m 644 com/tigervnc/vncviewer/index.vnc %{buildroot}%{_datadir}/vnc/classes
290     popd
291    
292 bersuit 449506 pushd %{buildroot}%{_datadir}/vnc/classes
293 dmorgan 57067 mv vncviewer-%{version}.jar %{buildroot}%{_javadir}
294     ln -s %{_javadir}/vncviewer-%{version}.jar VncViewer.jar
295     popd
296 bersuit 494273
297 dmorgan 57067 pushd %{buildroot}%{_javadir}
298     ln -s vncviewer-%{version}.jar vncviewer.jar
299     ln -s vncviewer-%{version}.jar VncViewer.jar
300     popd
301 bersuit 494273
302    

  ViewVC Help
Powered by ViewVC 1.1.30