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