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

  ViewVC Help
Powered by ViewVC 1.1.30