/[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 814997 - (hide annotations) (download)
Mon Feb 16 00:14:55 2015 UTC (9 years, 1 month 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 dmorgan 57067 Name: tigervnc
2 bersuit 612276 Version: 1.3.1
3 luigiwalser 814997 Release: %mkrel 6
4 dmorgan 57067 License: GPLv2+
5     URL: http://www.tigervnc.com/
6 bersuit 494273 Source0: %{name}-%{version}.tar.bz2
7     Source6: vncviewer.desktop
8 dmorgan 57067
9 bersuit 494273 #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 luigiwalser 668397 # Patch from openmdv to build
21 bersuit 494273 Patch10: tigervnc11-mdv-link.patch
22     Patch11: tigervnc11-mdv-strfmt.patch
23     Patch12: tigervnc11-mdv-buildir.patch
24 luigiwalser 668397 #Patches from fedora
25     Patch13: tigervnc-1.3.0-xserver-1.15.patch
26     Patch15: tigervnc-1.3.1-xserver-1.16.patch
27 bersuit 494273
28 luigiwalser 668393 # This is tigervnc-%{version}/unix/xserver114.patch rebased on the latest xorg
29     Patch14: tigervnc-xserver-1.14-rebased.patch
30 bersuit 494273
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     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 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     %patch2 -p1 -b .ldnow
163     %patch3 -p1 -b .gethomedir
164     %patch4 -p1 -b .rh692048
165     %patch11 -p1 -b .strfmt
166 dmorgan 180030
167 bersuit 494273
168    
169    
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 luigiwalser 668393 %patch14 -p1 -b .vnc
176 bersuit 494273
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     %patch5 -p1 -b .inetd-nowait
182 dmorgan 57067
183 bersuit 494273 %patch6 -p1 -b .setcursor-crash
184 bersuit 449506
185 bersuit 494273 # Synchronise manpages and --help output (bug #980870).
186     %patch7 -p1 -b .manpages
187 bersuit 449506
188 bersuit 494273 # libvnc.so: don't use unexported GetMaster function (bug #744881 again).
189     %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 bersuit 494273 %patch10 -p1 -b .link
195    
196 bersuit 612276 %patch13 -p1 -b .115
197 luigiwalser 668397 %patch15 -p1 -b .116
198 bersuit 612276
199    
200 dmorgan 57067 %build
201    
202 bersuit 494273 %{cmake}
203 dmorgan 57067 %make
204 bersuit 494273 cd ..
205 dmorgan 57067
206     pushd unix/xserver
207 bersuit 494273 rm -f configure
208 dmorgan 57067 autoreconf -fiv
209 bersuit 494273 %configure2_5x --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
210 luigiwalser 668397 --disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
211     --with-pic --disable-static --disable-xinerama \
212 bersuit 494273 --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 bersuit 612276 --enable-glx --disable-dri --enable-dri2 --disable-dri3 \
217 bersuit 494273 --disable-config-dbus \
218 bersuit 612276 --disable-wayland \
219     --disable-present \
220 bersuit 494273 --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 dmorgan 57067
228 bersuit 494273 %make
229 dmorgan 57067
230     popd
231    
232 bersuit 494273
233 dmorgan 57067 # Build icons
234     pushd media
235 bersuit 494273 %{cmake}
236 dmorgan 57067 %make
237 bersuit 494273
238 dmorgan 57067 popd
239    
240     # Build java
241 bersuit 494273 pushd java
242     %{cmake}
243     %make
244     #cd ..
245 dmorgan 57067 popd
246    
247     %install
248 bersuit 494273 pushd build
249 dmorgan 57067 %makeinstall_std
250 bersuit 494273 popd
251 dmorgan 57067
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 bersuit 494273 --dir %{buildroot}%{_datadir}/applications \
268     %{SOURCE6}
269 dmorgan 57067
270     %find_lang %{name} %{name}.lang
271    
272     # remove unwanted files
273     rm -f %{buildroot}/%{_libdir}/xorg/modules/extensions/libvnc.la
274    
275 bersuit 494273 # Install Java applet
276 dmorgan 57067
277     install -d -m 755 %{buildroot}%{_javadir}
278 bersuit 449506 install -d -m 755 %{buildroot}%{_datadir}/vnc/classes
279 bersuit 494273 pushd java/build
280 bersuit 449506
281 bersuit 494273 install -m 755 VncViewer.jar %{buildroot}%{_datadir}/vnc/classes/vncviewer-%{version}.jar
282 dmorgan 57067 popd
283 bersuit 494273
284     pushd java
285     install -m 644 com/tigervnc/vncviewer/index.vnc %{buildroot}%{_datadir}/vnc/classes
286     popd
287    
288 bersuit 449506 pushd %{buildroot}%{_datadir}/vnc/classes
289 dmorgan 57067 mv vncviewer-%{version}.jar %{buildroot}%{_javadir}
290     ln -s %{_javadir}/vncviewer-%{version}.jar VncViewer.jar
291     popd
292 bersuit 494273
293 dmorgan 57067 pushd %{buildroot}%{_javadir}
294     ln -s vncviewer-%{version}.jar vncviewer.jar
295     ln -s vncviewer-%{version}.jar VncViewer.jar
296     popd
297 bersuit 494273
298    

  ViewVC Help
Powered by ViewVC 1.1.30