/[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 138995 - (hide annotations) (download)
Mon Sep 5 23:24:09 2011 UTC (12 years, 7 months ago) by dmorgan
Original Path: cauldron/tigervnc/current/SPECS/tigervnc.spec
File size: 6724 byte(s)
Add desktop-file-utils as buildRequire
1 dmorgan 57067 # snapshotver is year-month-day-svnrevision, generated by "make dist"
2     %define snapshot 1
3 fwang 131477 %define snapshotversion 201106280527
4 dmorgan 57067 %define version 1.0.90
5 misc 138985 %define rel 2
6 dmorgan 57067
7     Name: tigervnc
8     Version: %{version}
9     %if %{snapshot}
10     Release: %mkrel 0.%{snapshotversion}.%{rel}
11     %else
12     Release: %mkrel %{rel}
13     %endif
14    
15     License: GPLv2+
16     URL: http://www.tigervnc.com/
17    
18     Source0: %{name}-%{version}.tar.gz
19     Source1: vncviewer.desktop
20     # Missing from "make dist":
21     Source2: %{name}-media.tar.gz
22    
23     BuildRequires: x11-server-source
24     BuildRequires: gettext-devel
25     BuildRequires: libx11-devel
26     BuildRequires: libxext-devel
27     BuildRequires: x11-font-util
28     BuildRequires: x11-util-macros
29     BuildRequires: x11-xtrans-devel
30     BuildRequires: mesagl-devel
31     BuildRequires: libxkbfile-devel
32     BuildRequires: libxfont-devel
33     BuildRequires: pixman-devel
34     BuildRequires: openssl-devel
35     BuildRequires: libpciaccess-devel
36     BuildRequires: libpam-devel
37     BuildRequires: libxtst-devel
38     BuildRequires: gnutls-devel
39     BuildRequires: imagemagick
40     BuildRequires: nasm
41     BuildRequires: java-devel
42 dmorgan 138995 BuildRequires: desktop-file-utils
43 dmorgan 57067
44     #------------------------------------------------------------------------------
45    
46     # package tigervnc
47    
48     Summary: Viewer for the VNC remote display system
49     Group: Networking/Remote access
50    
51     %description
52     Virtual Network Computing (VNC) is a remote display system which
53     allows you to view a computing 'desktop' environment not only on the
54     machine where it is running, but from anywhere on the Internet and
55     from a wide variety of machine architectures. This package contains a
56     client which will allow you to connect to other desktops running a VNC
57     server.
58    
59     %files -f %{name}.lang
60     %defattr(-,root,root,-)
61     %{_bindir}/vncviewer
62     %{_iconsdir}/*
63     %{_datadir}/applications/*
64     %{_mandir}/man1/vncviewer.1*
65    
66    
67     #------------------------------------------------------------------------------
68    
69     %package server
70    
71     Summary: Server for the VNC remote display system
72     Group: Networking/Remote access
73    
74     Requires: vnc-server-common
75    
76     %description server
77     The VNC system allows you to access the same desktop from a wide
78     variety of platforms. This package is a TigerVNC server, allowing
79     others to access the desktop on your machine.
80    
81     %files server
82     %defattr(-,root,root,-)
83     %{_bindir}/vncconfig
84     %{_bindir}/vncpasswd
85     %{_bindir}/x0vncserver
86     %{_bindir}/Xvnc
87     %{_bindir}/vncserver
88     %{_mandir}/man1/Xvnc.1*
89     %{_mandir}/man1/vncpasswd.1*
90     %{_mandir}/man1/vncconfig.1*
91     %{_mandir}/man1/vncserver.1*
92     %{_mandir}/man1/x0vncserver.1*
93    
94     #------------------------------------------------------------------------------
95    
96     %package server-module
97    
98     Summary: Xorg module for the VNC remote display system
99     Group: Networking/Remote access
100    
101     Requires: x11-server-xorg
102    
103     %description server-module
104     This package contains libvnc.so module to X server, allowing others
105     to access the desktop on your machine.
106    
107     %files server-module
108     %defattr(-,root,root,-)
109     %{_libdir}/xorg/modules/extensions/libvnc.so
110    
111     #------------------------------------------------------------------------------
112    
113     %package java
114    
115     Summary: Java viewer for the VNC remote display system
116     Group: Networking/Remote access
117    
118    
119     # "TightVNC-specific" is not a typo, see the README file located inside the
120     # java source tree
121     %description java
122     This distribution is based on the standard VNC source and includes new
123     TightVNC-specific features and fixes, such as additional low-bandwidth
124     optimizations, major GUI improvements, and more.
125    
126     There are three basic ways to use TigerVNC Java viewer:
127     1. Running applet as part of TigerVNC server installation.
128     2. Running applet hosted on a standalone Web server.
129     3. Running the viewer as a standalone application.
130    
131     %files java
132     %defattr(-,root,root)
133     %{_javadir}/*.jar
134     %{_datadir}/%{name}
135    
136     #------------------------------------------------------------------------------
137    
138     %prep
139     %setup -q
140 fwang 131477 %setup -q -a 2
141 dmorgan 57067 %apply_patches
142    
143     cp -r /usr/share/x11-server-source/* unix/xserver
144     pushd unix/xserver
145 fwang 131477 patch -p1 -b --suffix .vnc < ../xserver110.patch
146 dmorgan 57067 popd
147    
148    
149     # Use newer gettext
150     sed -i 's/AM_GNU_GETTEXT_VERSION.*/AM_GNU_GETTEXT_VERSION([0.17])/' \
151     configure.ac
152    
153     %build
154     # Temporary build with -fno-omit-frame-pointer, it causes problems
155     export CFLAGS="$RPM_OPT_FLAGS -fno-omit-frame-pointer"
156     export CXXFLAGS="$CFLAGS"
157    
158     autoreconf -fiv
159     %configure2_5x --disable-static --with-system-jpeg
160     %make
161    
162     # XXX: I'm not sure this define is actually needed
163     # Need this for shared objects that reference X Server, or other modules symbols
164     %define _disable_ld_no_undefined 1
165     # Search for modules in extra_module_dir before the default path.
166     # This will allow fglrx to install its modified modules in more cleaner way.
167     %define extra_module_dir %{_libdir}/xorg/extra-modules
168    
169     pushd unix/xserver
170     autoreconf -fiv
171    
172     # After the "--disable-config-hal", most options are just a paste from
173     # Mandriva's x11-server. We need to check what we can clean here (without
174     # reducing features)
175     %configure2_5x --disable-xorg \
176     --disable-xwin \
177     --disable-xvfb \
178     --disable-xnest \
179     --disable-dmx \
180     --disable-xfbdev \
181     --disable-xephyr \
182     --disable-kdrive \
183     --disable-config-dbus \
184     --disable-config-hal \
185     --with-log-dir=%{_logdir} \
186 misc 138984 --with-os-vendor="%distribution" \
187 misc 138978 --with-os-name="$(uname -s -r | sed -e s'/ /_/g')" \
188 dmorgan 57069 --with-vendor-web="http://bugs.mageia.org" \
189 dmorgan 57067 --with-extra-module-dir=%{extra_module_dir} \
190     --enable-xwrapper \
191     --enable-pam \
192     --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d"
193    
194 fwang 131477 make
195 dmorgan 57067 popd
196    
197     # Build icons
198     pushd media
199     %make
200     popd
201    
202     # Build java
203     pushd java/src/com/tigervnc/vncviewer
204     %make all
205     popd
206    
207     %install
208     rm -rf %{buildroot}
209     %makeinstall_std
210    
211     pushd unix/xserver/hw/vnc
212     %makeinstall_std
213     popd
214    
215     # Install desktop stuff
216     mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps
217    
218     pushd media/icons
219     for s in 16 24 48; do
220     install -m644 tigervnc_$s.png %{buildroot}/%{_datadir}/icons/hicolor/${s}x$s/apps/tigervnc.png
221     done
222     popd
223    
224     mkdir %{buildroot}/%{_datadir}/applications
225     desktop-file-install \
226     --dir %{buildroot}%{_datadir}/applications \
227     %{_sourcedir}/vncviewer.desktop
228    
229     %find_lang %{name} %{name}.lang
230    
231     # remove unwanted files
232     rm -f %{buildroot}/%{_libdir}/xorg/modules/extensions/libvnc.la
233    
234    
235     # java
236     install -d -m 755 %{buildroot}%{_javadir}
237     install -d -m 755 %{buildroot}%{_datadir}/%{name}/classes
238     pushd java/src/com/tigervnc/vncviewer
239     make install INSTALL_DIR=%{buildroot}%{_datadir}/%{name}/classes \
240     ARCHIVE=vncviewer-%{version}.jar
241     popd
242     pushd %{buildroot}%{_datadir}/%{name}/classes
243     mv vncviewer-%{version}.jar %{buildroot}%{_javadir}
244     ln -s %{_javadir}/vncviewer-%{version}.jar VncViewer.jar
245     popd
246     pushd %{buildroot}%{_javadir}
247     ln -s vncviewer-%{version}.jar vncviewer.jar
248     ln -s vncviewer-%{version}.jar VncViewer.jar
249     popd
250    
251    
252     %clean
253     rm -rf %{buildroot}
254    
255    
256    

  ViewVC Help
Powered by ViewVC 1.1.30