]>
Commit | Line | Data |
---|---|---|
aced0e84 JR |
1 | # TODO: |
2 | # - tigervnc.init | |
25ea9235 | 3 | # - descriptions! |
aced0e84 | 4 | |
12ef4f37 JR |
5 | %define snap r4159 |
6 | %define xversion 1.9.0.901 | |
aced0e84 | 7 | |
25ea9235 JR |
8 | Summary: A TigerVNC remote display system |
9 | Summary(pl.UTF-8): System zdalnego dostępu TigerVNC | |
aced0e84 JR |
10 | Name: tigervnc |
11 | Version: 1.0.90 | |
12 | Release: 0.1 | |
13 | License: GPL v2 | |
14 | Group: X11/Applications/Networking | |
15 | #Source0: http://dl.sourceforge.net/tigervnc/%{name}-%{version}.tar.gz | |
16 | Source0: %{name}-%{version}-%{snap}.tar.bz2 | |
17 | # Source0-md5: bd83717c960fb9e585387948b5cb41e2 | |
18 | Source1: %{name}.desktop | |
19 | URL: http://www.tigervnc.com/ | |
20 | BuildRequires: cpp | |
21 | BuildRequires: libjpeg-devel | |
22 | BuildRequires: zlib-devel | |
12ef4f37 | 23 | BuildRequires: xorg-xserver-server-source = %{xversion} |
aced0e84 JR |
24 | # xserver BRs, should match xorg-xserver-server.spec |
25 | BuildRequires: Mesa-libGL-devel >= 7.8.1 | |
26 | # for glx headers | |
27 | BuildRequires: OpenGL-GLX-devel | |
28 | BuildRequires: autoconf >= 2.57 | |
29 | BuildRequires: automake | |
30 | BuildRequires: libdrm-devel >= 2.4.5 | |
31 | BuildRequires: libtool | |
32 | BuildRequires: ncurses-devel | |
33 | BuildRequires: pam-devel | |
34 | BuildRequires: perl-base | |
35 | BuildRequires: pixman-devel >= 0.16.0 | |
36 | BuildRequires: pkgconfig >= 1:0.19 | |
37 | BuildRequires: xorg-app-mkfontscale | |
38 | BuildRequires: xorg-font-font-util >= 1.1 | |
39 | BuildRequires: xorg-lib-libX11-devel | |
40 | BuildRequires: xorg-lib-libXau-devel | |
41 | BuildRequires: xorg-lib-libXaw-devel | |
42 | BuildRequires: xorg-lib-libXdamage-devel | |
43 | BuildRequires: xorg-lib-libXdmcp-devel | |
44 | BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4 | |
45 | BuildRequires: xorg-lib-libXfont-devel >= 1.4.2 | |
46 | BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1 | |
47 | BuildRequires: xorg-lib-libXmu-devel | |
48 | BuildRequires: xorg-lib-libXpm-devel | |
49 | BuildRequires: xorg-lib-libXrender-devel | |
50 | BuildRequires: xorg-lib-libXres-devel | |
51 | BuildRequires: xorg-lib-libXt-devel >= 1.0.0 | |
52 | BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2 | |
53 | BuildRequires: xorg-lib-libXv-devel | |
54 | BuildRequires: xorg-lib-libXxf86dga-devel | |
55 | BuildRequires: xorg-lib-libXxf86misc-devel | |
56 | BuildRequires: xorg-lib-libXxf86vm-devel | |
57 | BuildRequires: xorg-lib-libfontenc-devel | |
58 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.8.0 | |
59 | BuildRequires: xorg-lib-libxkbfile-devel | |
60 | BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2 | |
61 | BuildRequires: xorg-lib-xtrans-devel >= 1.2.2 | |
62 | BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0 | |
63 | BuildRequires: xorg-proto-damageproto-devel >= 1.1 | |
64 | BuildRequires: xorg-proto-fixesproto-devel >= 4.1 | |
65 | BuildRequires: xorg-proto-fontcacheproto-devel | |
66 | BuildRequires: xorg-proto-fontsproto-devel | |
67 | BuildRequires: xorg-proto-glproto-devel >= 1.4.10 | |
68 | BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902 | |
69 | BuildRequires: xorg-proto-kbproto-devel >= 1.0.3 | |
70 | BuildRequires: xorg-proto-printproto-devel | |
71 | BuildRequires: xorg-proto-randrproto-devel >= 1.2.99.3 | |
72 | %{?with_record:BuildRequires: xorg-proto-recordproto-devel} | |
73 | BuildRequires: xorg-proto-renderproto-devel >= 0.11 | |
74 | BuildRequires: xorg-proto-resourceproto-devel | |
75 | BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0 | |
76 | BuildRequires: xorg-proto-videoproto-devel | |
77 | BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0 | |
78 | BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3 | |
79 | BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0 | |
80 | BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1 | |
81 | BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0 | |
82 | BuildRequires: xorg-proto-xf86miscproto-devel | |
83 | BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1 | |
84 | BuildRequires: xorg-proto-xproto-devel >= 7.0.17 | |
85 | BuildRequires: xorg-util-util-macros >= 1.10 | |
86 | Provides: vnc-client | |
87 | Conflicts: vnc | |
88 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
89 | ||
90 | %description | |
91 | VNC is a great client/server software package allowing remote network | |
92 | access to graphical desktops. TightVNC is optimized to work over slow | |
93 | network connections such as low-speed modem links. While oroginal VNC | |
94 | may be verry slow when your connection is not fast enough, with | |
95 | TightVNC you can work remotely almost in real time in most | |
96 | environments. | |
97 | ||
98 | %description -l pl.UTF-8 | |
99 | VNC jest wspaniałym programem klient/serwer umożliwiającym zdalny | |
100 | dostęp do graficznych pulpitów. TightVNC jest zoptymalizowany do pracy | |
101 | przy wolniejszych połączeniach sieciowych takich jak połączenia | |
102 | modemowe. Oryginalne VNC może pracować wolno kiedy połączenie nie jest | |
103 | wystarczająco szybkie, natomiast z TightVNC możesz pracować zdalnie | |
104 | niemal w czasie rzeczywistym. | |
105 | ||
106 | %package server | |
25ea9235 JR |
107 | Summary: VNC X server - TigerVNC version |
108 | Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC | |
aced0e84 JR |
109 | Group: X11/Applications/Networking |
110 | Requires: xorg-app-rgb | |
111 | # for vncpasswd tool | |
112 | Requires: %{name}-utils = %{version}-%{release} | |
113 | # for mcookie | |
114 | Requires: util-linux | |
115 | Obsoletes: vnc-server | |
116 | ||
117 | %description server | |
118 | This package contains VNC X server in tightvnc version. | |
119 | ||
120 | %description server -l pl.UTF-8 | |
121 | Ten pakiet zawiera X serwer VNC w wersji tightvnc. | |
122 | ||
123 | %package utils | |
25ea9235 JR |
124 | Summary: Additional utilities for TigerVNC |
125 | Summary(pl.UTF-8): Dodatkowe narzędzia do TigerVNC | |
aced0e84 JR |
126 | Group: X11/Applications/Networking |
127 | Obsoletes: vnc-utils | |
128 | ||
129 | %description utils | |
130 | This package contains additional tightvnc utilities: vncconnect and | |
131 | vncpasswd. vncconnect tells Xvnc server to connect to a listening | |
132 | tightvnc viewer. vncpasswd generates password file (both on server and | |
133 | viewer side). | |
134 | ||
135 | %description utils -l pl.UTF-8 | |
136 | Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconnect i | |
137 | vncpasswd. vncconnect służy do połączenia serwera Xvnc z nasłuchującym | |
138 | vncviewerem. vncpasswd służy to tworzenia pliku z hasłem (zarówno po | |
139 | stronie serwera, jak i przeglądarki). | |
140 | ||
12ef4f37 JR |
141 | %package -n xorg-xserver-libvnc |
142 | Summary: TigerVNC module for X.org server | |
143 | Group: X11/Servers | |
144 | Requires: xorg-xserver-server = %{xversion} | |
145 | Provides: xorg-xserver-module(vnc) | |
146 | ||
147 | %description -n xorg-xserver-libvnc | |
148 | This package contains libvnc.so module for X.org server, | |
149 | allowing others to access the desktop on your machine. | |
150 | ||
aced0e84 JR |
151 | %prep |
152 | %setup -q -n %{name} | |
153 | %{__sed} -i -e 's|^po/Makefile.in||' configure.ac | |
154 | ||
12ef4f37 JR |
155 | cp -a %{_usrsrc}/xorg-xserver-server-%{xversion}/* unix/xserver |
156 | cd unix/xserver | |
157 | patch -p1 <../xserver19.patch | |
158 | #%patch11 -p1 | |
159 | ||
aced0e84 JR |
160 | %build |
161 | %{__gettextize} | |
162 | %{__libtoolize} | |
163 | %{__aclocal} | |
164 | %{__autoconf} | |
165 | %{__autoheader} | |
166 | %{__automake} | |
167 | ||
168 | %{configure} \ | |
169 | --with-system-jpeg | |
170 | ||
171 | %{__make} | |
172 | ||
12ef4f37 JR |
173 | cd unix/xserver |
174 | %{__automake} | |
175 | %{__autoconf} | |
176 | %configure \ | |
177 | --disable-xorg \ | |
178 | --disable-xnest \ | |
179 | --disable-xvfb \ | |
180 | --disable-dmx \ | |
181 | --disable-xwin \ | |
182 | --disable-xephyr \ | |
183 | --disable-kdrive \ | |
184 | --with-pic \ | |
185 | --disable-static \ | |
186 | --disable-xinerama \ | |
187 | --disable-composite \ | |
188 | --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \ | |
189 | --with-fontdir=%{_datadir}/X11/fonts \ | |
190 | --with-xkb-output=%{_localstatedir}/lib/xkb \ | |
191 | --enable-install-libxf86config \ | |
192 | --disable-dri2 \ | |
193 | --enable-glx \ | |
194 | --disable-config-dbus \ | |
195 | --disable-config-hal \ | |
196 | --disable-config-udev \ | |
197 | --with-dri-driver-path=%{_libdir}/dri \ | |
198 | --without-xmlto \ | |
199 | --without-fop \ | |
200 | --without-doxygen \ | |
201 | --disable-devel-docs \ | |
202 | --disable-builddocs | |
203 | ||
204 | %{__make} | |
205 | cd - | |
206 | ||
207 | # Build icons | |
208 | cd media | |
209 | %{__make} | |
210 | ||
aced0e84 JR |
211 | %install |
212 | rm -rf $RPM_BUILD_ROOT | |
213 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_sysconfdir}} | |
214 | ||
aced0e84 JR |
215 | %{__make} install \ |
216 | DESTDIR=$RPM_BUILD_ROOT | |
217 | ||
12ef4f37 JR |
218 | cd unix/xserver/hw/vnc |
219 | %{__make} install \ | |
220 | DESTDIR=$RPM_BUILD_ROOT | |
221 | cd - | |
222 | ||
aced0e84 JR |
223 | %clean |
224 | rm -rf $RPM_BUILD_ROOT | |
225 | ||
226 | %files | |
227 | %defattr(644,root,root,755) | |
228 | %doc doc/* | |
229 | %attr(755,root,root) %{_bindir}/vncviewer | |
230 | %{_mandir}/man1/vncviewer.1* | |
231 | %{_desktopdir}/tightvnc.desktop | |
232 | %{_pixmapsdir}/tightvnc.png | |
233 | ||
234 | %files server | |
235 | %defattr(644,root,root,755) | |
236 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tightvncserver.conf | |
12ef4f37 | 237 | %attr(755,root,root) %{_bindir}/Xvnc |
aced0e84 JR |
238 | %attr(755,root,root) %{_bindir}/x0vncserver |
239 | %attr(755,root,root) %{_bindir}/vncserver | |
240 | %{_datadir}/vnc | |
12ef4f37 | 241 | %{_mandir}/man1/Xvnc.1* |
aced0e84 JR |
242 | %{_mandir}/man1/x0vncserver.1* |
243 | %{_mandir}/man1/vncserver.1* | |
244 | ||
245 | %files utils | |
246 | %defattr(644,root,root,755) | |
aced0e84 | 247 | %attr(755,root,root) %{_bindir}/vncpasswd |
aced0e84 | 248 | %{_mandir}/man1/vncpasswd.1* |
12ef4f37 JR |
249 | |
250 | %files -n xorg-xserver-libvnc | |
251 | %defattr(644,root,root,755) | |
252 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libvnc.so |