]>
Commit | Line | Data |
---|---|---|
6bfe2ea4 | 1 | %define xversion 1.16.0 |
aced0e84 | 2 | |
25ea9235 JR |
3 | Summary: A TigerVNC remote display system |
4 | Summary(pl.UTF-8): System zdalnego dostępu TigerVNC | |
aced0e84 | 5 | Name: tigervnc |
377c2b5b | 6 | Version: 1.8.0 |
03dba754 | 7 | Release: 4 |
aced0e84 JR |
8 | License: GPL v2 |
9 | Group: X11/Applications/Networking | |
7004e522 | 10 | Source0: https://github.com/TigerVNC/tigervnc/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz |
377c2b5b | 11 | # Source0-md5: 5c9a80dd4b99b4eb19f535db5ce5830f |
aced0e84 | 12 | Source1: %{name}.desktop |
d76ad120 MK |
13 | Source2: vncserver.init |
14 | Source3: vncserver.sysconfig | |
245ad2d3 JR |
15 | Source4: vncserver.target |
16 | Source5: vncserver-service-generator | |
7d6a554b AM |
17 | Patch2: %{name}-getmaster.patch |
18 | Patch3: %{name}-utilize-system-crypto-policies.patch | |
19 | Patch4: %{name}-xstartup.patch | |
f3b4f89f | 20 | Patch5: tigervnc-support-xorg120.patch |
7d6a554b | 21 | Patch100: xserver.patch |
aced0e84 | 22 | URL: http://www.tigervnc.com/ |
7113a006 | 23 | BuildRequires: ImageMagick |
7718ecda JR |
24 | BuildRequires: ImageMagick-coder-png |
25 | BuildRequires: ImageMagick-coder-svg | |
d1286e0a | 26 | BuildRequires: Mesa-libGL-devel >= 7.8.1 |
aced0e84 | 27 | BuildRequires: cpp |
80f71334 | 28 | BuildRequires: fltk-devel |
f6fa61b2 | 29 | BuildRequires: gnutls-devel |
ea2b4c07 | 30 | BuildRequires: libjpeg-turbo-devel |
7113a006 | 31 | BuildRequires: xorg-xserver-server-source >= %{xversion} |
d1286e0a | 32 | BuildRequires: zlib-devel |
aced0e84 | 33 | # xserver BRs, should match xorg-xserver-server.spec |
aced0e84 JR |
34 | # for glx headers |
35 | BuildRequires: OpenGL-GLX-devel | |
36 | BuildRequires: autoconf >= 2.57 | |
37 | BuildRequires: automake | |
38 | BuildRequires: libdrm-devel >= 2.4.5 | |
39 | BuildRequires: libtool | |
d31e009e | 40 | BuildRequires: nasm |
aced0e84 JR |
41 | BuildRequires: ncurses-devel |
42 | BuildRequires: pam-devel | |
43 | BuildRequires: perl-base | |
44 | BuildRequires: pixman-devel >= 0.16.0 | |
45 | BuildRequires: pkgconfig >= 1:0.19 | |
9f5ab5d2 | 46 | BuildRequires: rpmbuild(macros) >= 1.647 |
aced0e84 JR |
47 | BuildRequires: xorg-app-mkfontscale |
48 | BuildRequires: xorg-font-font-util >= 1.1 | |
49 | BuildRequires: xorg-lib-libX11-devel | |
50 | BuildRequires: xorg-lib-libXau-devel | |
51 | BuildRequires: xorg-lib-libXaw-devel | |
52 | BuildRequires: xorg-lib-libXdamage-devel | |
53 | BuildRequires: xorg-lib-libXdmcp-devel | |
d1286e0a | 54 | BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4 |
aced0e84 JR |
55 | BuildRequires: xorg-lib-libXfont-devel >= 1.4.2 |
56 | BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1 | |
57 | BuildRequires: xorg-lib-libXmu-devel | |
58 | BuildRequires: xorg-lib-libXpm-devel | |
59 | BuildRequires: xorg-lib-libXrender-devel | |
60 | BuildRequires: xorg-lib-libXres-devel | |
61 | BuildRequires: xorg-lib-libXt-devel >= 1.0.0 | |
62 | BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2 | |
63 | BuildRequires: xorg-lib-libXv-devel | |
64 | BuildRequires: xorg-lib-libXxf86dga-devel | |
65 | BuildRequires: xorg-lib-libXxf86misc-devel | |
66 | BuildRequires: xorg-lib-libXxf86vm-devel | |
67 | BuildRequires: xorg-lib-libfontenc-devel | |
7470b97a | 68 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.13 |
aced0e84 JR |
69 | BuildRequires: xorg-lib-libxkbfile-devel |
70 | BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2 | |
aa94f70a | 71 | BuildRequires: xorg-lib-libxshmfence-devel >= 1.1 |
aced0e84 JR |
72 | BuildRequires: xorg-lib-xtrans-devel >= 1.2.2 |
73 | BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0 | |
74 | BuildRequires: xorg-proto-damageproto-devel >= 1.1 | |
aa94f70a | 75 | BuildRequires: xorg-proto-dri3proto-devel >= 1.0 |
aced0e84 JR |
76 | BuildRequires: xorg-proto-fixesproto-devel >= 4.1 |
77 | BuildRequires: xorg-proto-fontcacheproto-devel | |
78 | BuildRequires: xorg-proto-fontsproto-devel | |
79 | BuildRequires: xorg-proto-glproto-devel >= 1.4.10 | |
80 | BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902 | |
81 | BuildRequires: xorg-proto-kbproto-devel >= 1.0.3 | |
2e5d6664 | 82 | BuildRequires: xorg-proto-presentproto-devel >= 1.0 |
aced0e84 | 83 | BuildRequires: xorg-proto-printproto-devel |
470522f5 | 84 | BuildRequires: xorg-proto-randrproto-devel >= 1.3 |
7113a006 | 85 | BuildRequires: xorg-proto-recordproto-devel |
aced0e84 JR |
86 | BuildRequires: xorg-proto-renderproto-devel >= 0.11 |
87 | BuildRequires: xorg-proto-resourceproto-devel | |
88 | BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0 | |
89 | BuildRequires: xorg-proto-videoproto-devel | |
90 | BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0 | |
91 | BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3 | |
92 | BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0 | |
93 | BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1 | |
94 | BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0 | |
95 | BuildRequires: xorg-proto-xf86miscproto-devel | |
96 | BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1 | |
470522f5 | 97 | BuildRequires: xorg-proto-xproto-devel >= 7.0.22 |
aced0e84 | 98 | BuildRequires: xorg-util-util-macros >= 1.10 |
d1286e0a AF |
99 | Requires(post,postun): gtk-update-icon-cache |
100 | Requires(post,postun): hicolor-icon-theme | |
ea2b4c07 | 101 | Requires: libjpeg-turbo |
aced0e84 JR |
102 | Provides: vnc-client |
103 | Conflicts: vnc | |
104 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
105 | ||
e11ecd59 | 106 | %define _xserverver %(LC_ALL=C rpm -q --qf '%{V}' xorg-xserver-server-source 2> /dev/null) |
7113a006 | 107 | |
aced0e84 | 108 | %description |
7113a006 JR |
109 | TigerVNC is a suite of VNC servers and clients that have a focus on |
110 | performance and remote display functionality. Originally this software | |
111 | was based on the (never released) VNC 4 branch of TightVNC. | |
aced0e84 | 112 | |
203e0071 | 113 | %description -l pl.UTF-8 |
7d6a554b AM |
114 | TigerVNC to zestaw serwerów i klientów VNC, które koncentrują się na |
115 | wydajności i funkcjonalności zdalnego wyświetlania. Pierwotnie | |
116 | oprogramowanie oparte było na (nigdy nie wydanej) gałęzi VNC 4 | |
117 | TightVNC. | |
203e0071 | 118 | |
aced0e84 | 119 | %package server |
25ea9235 JR |
120 | Summary: VNC X server - TigerVNC version |
121 | Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC | |
aced0e84 | 122 | Group: X11/Applications/Networking |
2dcb3511 | 123 | Requires(post,preun): /sbin/chkconfig |
245ad2d3 | 124 | Requires(post,preun,postun): systemd-units >= 38 |
aced0e84 JR |
125 | Requires: xorg-app-rgb |
126 | # for vncpasswd tool | |
127 | Requires: %{name}-utils = %{version}-%{release} | |
128 | # for mcookie | |
ea2b4c07 | 129 | Requires: libjpeg-turbo |
245ad2d3 | 130 | Requires: systemd-units >= 38 |
7d6a554b | 131 | Requires: util-linux |
7559c302 | 132 | Requires: xkeyboard-config |
a511b5c2 | 133 | Requires: xorg-app-xauth |
7559c302 | 134 | Requires: xorg-app-xkbcomp |
aced0e84 JR |
135 | Obsoletes: vnc-server |
136 | ||
137 | %description server | |
7113a006 | 138 | This package contains VNC X server in TigerVNC version. |
aced0e84 JR |
139 | |
140 | %description server -l pl.UTF-8 | |
7113a006 | 141 | Ten pakiet zawiera X serwer VNC w wersji TigerVNC. |
aced0e84 JR |
142 | |
143 | %package utils | |
25ea9235 JR |
144 | Summary: Additional utilities for TigerVNC |
145 | Summary(pl.UTF-8): Dodatkowe narzędzia do TigerVNC | |
aced0e84 JR |
146 | Group: X11/Applications/Networking |
147 | Obsoletes: vnc-utils | |
148 | ||
149 | %description utils | |
7113a006 JR |
150 | This package contains additional TigerVNC utilities: vncconfig and |
151 | vncpasswd. vncconfig is used to configure and control a running | |
152 | instance of Xvnc, or any other X server with the VNC extension. | |
153 | vncpasswd generates password file (both on server and viewer side). | |
aced0e84 | 154 | |
203e0071 JR |
155 | %description utils -l pl.UTF-8 |
156 | Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconfig i | |
157 | vncpasswd. vncconfig służy do konfigurowania i kontroli działającej | |
7d6a554b AM |
158 | instancji Xvnc lub innego serwera X z rozszerzeniem VNC. vncpasswd |
159 | służy to tworzenia pliku z hasłem (zarówno po stronie serwera, jak i | |
160 | przeglądarki). | |
203e0071 | 161 | |
12ef4f37 JR |
162 | %package -n xorg-xserver-libvnc |
163 | Summary: TigerVNC module for X.org server | |
203e0071 | 164 | Summary(pl.UTF-8): Moduł TigerVNC dla servera X.org |
12ef4f37 | 165 | Group: X11/Servers |
7d6a554b | 166 | %requires_eq_to xorg-xserver-server xorg-xserver-server-source |
12ef4f37 JR |
167 | Provides: xorg-xserver-module(vnc) |
168 | ||
169 | %description -n xorg-xserver-libvnc | |
7d6a554b AM |
170 | This package contains libvnc.so module for X.org server, allowing |
171 | others to access the desktop on your machine. | |
12ef4f37 | 172 | |
203e0071 | 173 | %description -n xorg-xserver-libvnc -l pl.UTF-8 |
7d6a554b AM |
174 | Ten pakiet zawiera moduł libvnc.so dla serwera X.org, pozwalający na |
175 | zdalny dostęp do pulpitu. | |
203e0071 | 176 | |
aced0e84 | 177 | %prep |
d31e009e | 178 | %setup -q |
7d6a554b | 179 | %patch2 -p1 |
ea73831e | 180 | %patch3 -p1 |
7d6a554b | 181 | %patch4 -p1 |
f3b4f89f | 182 | %patch5 -p1 |
aced0e84 | 183 | |
7113a006 | 184 | cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver |
12ef4f37 | 185 | cd unix/xserver |
7d6a554b | 186 | %patch100 -p1 |
12ef4f37 | 187 | |
aced0e84 | 188 | %build |
7470b97a | 189 | %cmake . |
5cd27197 | 190 | %{__make} -j1 |
aced0e84 | 191 | |
12ef4f37 | 192 | cd unix/xserver |
7470b97a | 193 | %{__aclocal} -I m4 |
12ef4f37 | 194 | %{__autoconf} |
7470b97a | 195 | %{__automake} |
12ef4f37 | 196 | %configure \ |
7113a006 JR |
197 | --with-os-name="PLD/Linux" \ |
198 | --with-os-vendor="PLD/Team" \ | |
7113a006 JR |
199 | --disable-config-hal \ |
200 | --disable-config-udev \ | |
377c2b5b | 201 | --without-dtrace \ |
7113a006 JR |
202 | --disable-devel-docs \ |
203 | --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \ | |
12ef4f37 JR |
204 | --disable-xorg \ |
205 | --disable-xnest \ | |
206 | --disable-xvfb \ | |
207 | --disable-dmx \ | |
208 | --disable-xwin \ | |
209 | --disable-xephyr \ | |
210 | --disable-kdrive \ | |
7470b97a | 211 | --disable-dri \ |
2c7d78a4 | 212 | --enable-dri2 \ |
f3b4f89f | 213 | --disable-dri3 \ |
12ef4f37 JR |
214 | --with-pic \ |
215 | --disable-static \ | |
aa94f70a | 216 | --disable-wayland \ |
12ef4f37 | 217 | --enable-glx \ |
7113a006 | 218 | --enable-install-libxf86config \ |
2c7d78a4 JR |
219 | --with-xkb-output=/var/lib/xkb \ |
220 | --disable-unit-tests | |
12ef4f37 | 221 | |
5cd27197 | 222 | %{__make} -j1 |
12ef4f37 JR |
223 | cd - |
224 | ||
12ef4f37 | 225 | cd media |
5cd27197 | 226 | %{__make} -j1 |
12ef4f37 | 227 | |
aced0e84 JR |
228 | %install |
229 | rm -rf $RPM_BUILD_ROOT | |
7113a006 JR |
230 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48,scalable}/apps \ |
231 | $RPM_BUILD_ROOT%{_desktopdir} | |
aced0e84 | 232 | |
aced0e84 JR |
233 | %{__make} install \ |
234 | DESTDIR=$RPM_BUILD_ROOT | |
235 | ||
12ef4f37 JR |
236 | cd unix/xserver/hw/vnc |
237 | %{__make} install \ | |
238 | DESTDIR=$RPM_BUILD_ROOT | |
239 | cd - | |
240 | ||
7d6a554b | 241 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
7113a006 | 242 | |
7d6a554b AM |
243 | cp -p media/icons/tigervnc_16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/tigervnc.png |
244 | cp -p media/icons/tigervnc_22.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps/tigervnc.png | |
245 | cp -p media/icons/tigervnc_24.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/tigervnc.png | |
246 | cp -p media/icons/tigervnc_32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/tigervnc.png | |
247 | cp -p media/icons/tigervnc_48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/tigervnc.png | |
248 | cp -p media/icons/tigervnc.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/tigervnc.svg | |
7113a006 | 249 | |
d76ad120 | 250 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
7d6a554b AM |
251 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver |
252 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver | |
d76ad120 | 253 | |
7d6a554b | 254 | install -d $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdunitdir}-generators} |
245ad2d3 | 255 | install -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/vncserver.target |
7d6a554b | 256 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}-generators/vncserver-service-generator |
245ad2d3 JR |
257 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vncserver.service |
258 | ||
a5f2294f JR |
259 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
260 | ||
7113a006 JR |
261 | %find_lang %{name} |
262 | ||
aced0e84 JR |
263 | %clean |
264 | rm -rf $RPM_BUILD_ROOT | |
265 | ||
145f00de | 266 | %post |
7d6a554b | 267 | [ ! -x %{_bindir}/update-desktop-database ] || %update_desktop_database_post |
d1286e0a | 268 | %update_icon_cache hicolor |
145f00de JR |
269 | |
270 | %postun | |
7d6a554b | 271 | [ ! -x %{_bindir}/update-desktop-database ] || %update_desktop_database_postun |
d1286e0a | 272 | %update_icon_cache hicolor |
145f00de | 273 | |
2dcb3511 MK |
274 | %post server |
275 | /sbin/chkconfig --add vncserver | |
276 | %service vncserver restart "VNC server" | |
9f5ab5d2 | 277 | NORESTART=1 |
245ad2d3 | 278 | %systemd_post vncserver.target |
2dcb3511 MK |
279 | |
280 | %preun server | |
281 | if [ "$1" = "0" ]; then | |
282 | %service vncserver stop | |
283 | /sbin/chkconfig --del vncserver | |
284 | fi | |
245ad2d3 JR |
285 | %systemd_preun vncserver.target |
286 | ||
287 | %postun server | |
288 | %systemd_reload | |
289 | ||
290 | %triggerpostun server -- tigervnc-server < 1.3.0-5 | |
291 | [ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm | |
292 | [ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ] && return 1 | |
293 | export SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog | |
294 | if [ "$(echo /etc/rc.d/rc[0-6].d/S[0-9][0-9]vncserver)" != "/etc/rc.d/rc[0-6].d/S[0-9][0-9]vncserver" ]; then | |
295 | /bin/systemctl --quiet enable vncserver.target || : | |
296 | fi | |
2dcb3511 | 297 | |
7113a006 | 298 | %files -f %{name}.lang |
aced0e84 | 299 | %defattr(644,root,root,755) |
a5f2294f | 300 | %doc README.txt doc/* |
aced0e84 JR |
301 | %attr(755,root,root) %{_bindir}/vncviewer |
302 | %{_mandir}/man1/vncviewer.1* | |
7113a006 | 303 | %{_desktopdir}/tigervnc.desktop |
377c2b5b | 304 | %{_desktopdir}/vncviewer.desktop |
7113a006 | 305 | %{_iconsdir}/hicolor/*/apps/tigervnc.* |
aced0e84 JR |
306 | |
307 | %files server | |
308 | %defattr(644,root,root,755) | |
12ef4f37 | 309 | %attr(755,root,root) %{_bindir}/Xvnc |
aced0e84 | 310 | %attr(755,root,root) %{_bindir}/vncserver |
7113a006 | 311 | %attr(755,root,root) %{_bindir}/x0vncserver |
d76ad120 MK |
312 | %attr(754,root,root) /etc/rc.d/init.d/vncserver |
313 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vncserver | |
7d6a554b | 314 | %attr(755,root,root) %{systemdunitdir}-generators/vncserver-service-generator |
245ad2d3 JR |
315 | %{systemdunitdir}/vncserver.target |
316 | %{systemdunitdir}/vncserver.service | |
12ef4f37 | 317 | %{_mandir}/man1/Xvnc.1* |
aced0e84 | 318 | %{_mandir}/man1/vncserver.1* |
7113a006 | 319 | %{_mandir}/man1/x0vncserver.1* |
aced0e84 JR |
320 | |
321 | %files utils | |
322 | %defattr(644,root,root,755) | |
7113a006 | 323 | %attr(755,root,root) %{_bindir}/vncconfig |
aced0e84 | 324 | %attr(755,root,root) %{_bindir}/vncpasswd |
7113a006 | 325 | %{_mandir}/man1/vncconfig.1* |
aced0e84 | 326 | %{_mandir}/man1/vncpasswd.1* |
12ef4f37 JR |
327 | |
328 | %files -n xorg-xserver-libvnc | |
329 | %defattr(644,root,root,755) | |
330 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libvnc.so |