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