]>
Commit | Line | Data |
---|---|---|
10862a87 | 1 | %define xversion 1.21.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 |
d051c192 | 6 | Version: 1.12.0 |
b987b186 | 7 | Release: 7 |
aced0e84 JR |
8 | License: GPL v2 |
9 | Group: X11/Applications/Networking | |
d051c192 | 10 | #Source0Download: https://github.com/TigerVNC/tigervnc/releases |
3f505847 | 11 | Source0: https://github.com/TigerVNC/tigervnc/archive/v%{version}/%{name}-%{version}.tar.gz |
d051c192 | 12 | # Source0-md5: e92945f43654e2a120f2c9d8b3a9b869 |
aced0e84 | 13 | Source1: %{name}.desktop |
d76ad120 MK |
14 | Source2: vncserver.init |
15 | Source3: vncserver.sysconfig | |
9a7ff7b8 | 16 | Patch4: %{name}-shebang.patch |
10862a87 | 17 | Patch5: xserver-1.21.patch |
7d6a554b | 18 | Patch100: xserver.patch |
aced0e84 | 19 | URL: http://www.tigervnc.com/ |
7113a006 | 20 | BuildRequires: ImageMagick |
7718ecda JR |
21 | BuildRequires: ImageMagick-coder-png |
22 | BuildRequires: ImageMagick-coder-svg | |
56d5128f | 23 | BuildRequires: Mesa-dri-devel >= 7.8.1 |
d1286e0a | 24 | BuildRequires: Mesa-libGL-devel >= 7.8.1 |
aced0e84 | 25 | BuildRequires: cpp |
d051c192 | 26 | BuildRequires: cmake >= 3.4.0 |
80f71334 | 27 | BuildRequires: fltk-devel |
d051c192 | 28 | BuildRequires: gettext-tools |
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 |
56d5128f | 55 | BuildRequires: xorg-lib-libXfont2-devel >= 2.0.0 |
aced0e84 JR |
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 | |
aced0e84 JR |
65 | BuildRequires: xorg-lib-libXxf86vm-devel |
66 | BuildRequires: xorg-lib-libfontenc-devel | |
7470b97a | 67 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.13 |
56d5128f | 68 | BuildRequires: xorg-lib-libxcvt-devel |
aced0e84 | 69 | BuildRequires: xorg-lib-libxkbfile-devel |
aa94f70a | 70 | BuildRequires: xorg-lib-libxshmfence-devel >= 1.1 |
aced0e84 JR |
71 | BuildRequires: xorg-lib-xtrans-devel >= 1.2.2 |
72 | BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0 | |
73 | BuildRequires: xorg-proto-damageproto-devel >= 1.1 | |
aa94f70a | 74 | BuildRequires: xorg-proto-dri3proto-devel >= 1.0 |
aced0e84 JR |
75 | BuildRequires: xorg-proto-fixesproto-devel >= 4.1 |
76 | BuildRequires: xorg-proto-fontcacheproto-devel | |
77 | BuildRequires: xorg-proto-fontsproto-devel | |
78 | BuildRequires: xorg-proto-glproto-devel >= 1.4.10 | |
79 | BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902 | |
80 | BuildRequires: xorg-proto-kbproto-devel >= 1.0.3 | |
2e5d6664 | 81 | BuildRequires: xorg-proto-presentproto-devel >= 1.0 |
aced0e84 | 82 | BuildRequires: xorg-proto-printproto-devel |
470522f5 | 83 | BuildRequires: xorg-proto-randrproto-devel >= 1.3 |
7113a006 | 84 | BuildRequires: xorg-proto-recordproto-devel |
aced0e84 JR |
85 | BuildRequires: xorg-proto-renderproto-devel >= 0.11 |
86 | BuildRequires: xorg-proto-resourceproto-devel | |
87 | BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0 | |
88 | BuildRequires: xorg-proto-videoproto-devel | |
89 | BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0 | |
90 | BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3 | |
91 | BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0 | |
92 | BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1 | |
93 | BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0 | |
94 | BuildRequires: xorg-proto-xf86miscproto-devel | |
95 | BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1 | |
470522f5 | 96 | BuildRequires: xorg-proto-xproto-devel >= 7.0.22 |
aced0e84 | 97 | BuildRequires: xorg-util-util-macros >= 1.10 |
d1286e0a AF |
98 | Requires(post,postun): gtk-update-icon-cache |
99 | Requires(post,postun): hicolor-icon-theme | |
ea2b4c07 | 100 | Requires: libjpeg-turbo |
aced0e84 JR |
101 | Provides: vnc-client |
102 | Conflicts: vnc | |
103 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
104 | ||
e11ecd59 | 105 | %define _xserverver %(LC_ALL=C rpm -q --qf '%{V}' xorg-xserver-server-source 2> /dev/null) |
7113a006 | 106 | |
aced0e84 | 107 | %description |
7113a006 JR |
108 | TigerVNC is a suite of VNC servers and clients that have a focus on |
109 | performance and remote display functionality. Originally this software | |
110 | was based on the (never released) VNC 4 branch of TightVNC. | |
aced0e84 | 111 | |
203e0071 | 112 | %description -l pl.UTF-8 |
7d6a554b AM |
113 | TigerVNC to zestaw serwerów i klientów VNC, które koncentrują się na |
114 | wydajności i funkcjonalności zdalnego wyświetlania. Pierwotnie | |
115 | oprogramowanie oparte było na (nigdy nie wydanej) gałęzi VNC 4 | |
116 | TightVNC. | |
203e0071 | 117 | |
aced0e84 | 118 | %package server |
25ea9235 JR |
119 | Summary: VNC X server - TigerVNC version |
120 | Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC | |
aced0e84 | 121 | Group: X11/Applications/Networking |
2dcb3511 | 122 | Requires(post,preun): /sbin/chkconfig |
245ad2d3 | 123 | Requires(post,preun,postun): systemd-units >= 38 |
aced0e84 JR |
124 | Requires: xorg-app-rgb |
125 | # for vncpasswd tool | |
126 | Requires: %{name}-utils = %{version}-%{release} | |
127 | # for mcookie | |
ea2b4c07 | 128 | Requires: libjpeg-turbo |
245ad2d3 | 129 | Requires: systemd-units >= 38 |
7d6a554b | 130 | Requires: util-linux |
7559c302 | 131 | Requires: xkeyboard-config |
a511b5c2 | 132 | Requires: xorg-app-xauth |
7559c302 | 133 | Requires: xorg-app-xkbcomp |
aced0e84 JR |
134 | Obsoletes: vnc-server |
135 | ||
136 | %description server | |
7113a006 | 137 | This package contains VNC X server in TigerVNC version. |
aced0e84 JR |
138 | |
139 | %description server -l pl.UTF-8 | |
7113a006 | 140 | Ten pakiet zawiera X serwer VNC w wersji TigerVNC. |
aced0e84 JR |
141 | |
142 | %package utils | |
25ea9235 JR |
143 | Summary: Additional utilities for TigerVNC |
144 | Summary(pl.UTF-8): Dodatkowe narzędzia do TigerVNC | |
aced0e84 JR |
145 | Group: X11/Applications/Networking |
146 | Obsoletes: vnc-utils | |
147 | ||
148 | %description utils | |
7113a006 JR |
149 | This package contains additional TigerVNC utilities: vncconfig and |
150 | vncpasswd. vncconfig is used to configure and control a running | |
151 | instance of Xvnc, or any other X server with the VNC extension. | |
152 | vncpasswd generates password file (both on server and viewer side). | |
aced0e84 | 153 | |
203e0071 JR |
154 | %description utils -l pl.UTF-8 |
155 | Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconfig i | |
156 | vncpasswd. vncconfig służy do konfigurowania i kontroli działającej | |
7d6a554b AM |
157 | instancji Xvnc lub innego serwera X z rozszerzeniem VNC. vncpasswd |
158 | służy to tworzenia pliku z hasłem (zarówno po stronie serwera, jak i | |
159 | przeglądarki). | |
203e0071 | 160 | |
12ef4f37 JR |
161 | %package -n xorg-xserver-libvnc |
162 | Summary: TigerVNC module for X.org server | |
203e0071 | 163 | Summary(pl.UTF-8): Moduł TigerVNC dla servera X.org |
12ef4f37 | 164 | Group: X11/Servers |
7d6a554b | 165 | %requires_eq_to xorg-xserver-server xorg-xserver-server-source |
12ef4f37 JR |
166 | Provides: xorg-xserver-module(vnc) |
167 | ||
168 | %description -n xorg-xserver-libvnc | |
7d6a554b AM |
169 | This package contains libvnc.so module for X.org server, allowing |
170 | others to access the desktop on your machine. | |
12ef4f37 | 171 | |
203e0071 | 172 | %description -n xorg-xserver-libvnc -l pl.UTF-8 |
7d6a554b AM |
173 | Ten pakiet zawiera moduł libvnc.so dla serwera X.org, pozwalający na |
174 | zdalny dostęp do pulpitu. | |
203e0071 | 175 | |
aced0e84 | 176 | %prep |
d31e009e | 177 | %setup -q |
7d6a554b | 178 | %patch4 -p1 |
aced0e84 | 179 | |
7113a006 | 180 | cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver |
10862a87 | 181 | %patch5 -p1 |
12ef4f37 | 182 | cd unix/xserver |
7d6a554b | 183 | %patch100 -p1 |
12ef4f37 | 184 | |
aced0e84 | 185 | %build |
10862a87 JR |
186 | %cmake . \ |
187 | -DCMAKE_INSTALL_UNITDIR=%{systemdunitdir} | |
3f505847 | 188 | %{__make} |
aced0e84 | 189 | |
12ef4f37 | 190 | cd unix/xserver |
7470b97a | 191 | %{__aclocal} -I m4 |
12ef4f37 | 192 | %{__autoconf} |
7470b97a | 193 | %{__automake} |
12ef4f37 | 194 | %configure \ |
7113a006 JR |
195 | --disable-config-hal \ |
196 | --disable-config-udev \ | |
377c2b5b | 197 | --without-dtrace \ |
7113a006 JR |
198 | --disable-devel-docs \ |
199 | --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \ | |
12ef4f37 JR |
200 | --disable-xorg \ |
201 | --disable-xnest \ | |
202 | --disable-xvfb \ | |
12ef4f37 JR |
203 | --disable-xwin \ |
204 | --disable-xephyr \ | |
205 | --disable-kdrive \ | |
7470b97a | 206 | --disable-dri \ |
2c7d78a4 | 207 | --enable-dri2 \ |
f3b4f89f | 208 | --disable-dri3 \ |
12ef4f37 JR |
209 | --with-pic \ |
210 | --disable-static \ | |
12ef4f37 | 211 | --enable-glx \ |
2c7d78a4 JR |
212 | --with-xkb-output=/var/lib/xkb \ |
213 | --disable-unit-tests | |
12ef4f37 | 214 | |
3f505847 | 215 | %{__make} |
12ef4f37 JR |
216 | cd - |
217 | ||
d051c192 | 218 | %{__make} -C media |
12ef4f37 | 219 | |
aced0e84 JR |
220 | %install |
221 | rm -rf $RPM_BUILD_ROOT | |
7113a006 JR |
222 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48,scalable}/apps \ |
223 | $RPM_BUILD_ROOT%{_desktopdir} | |
aced0e84 | 224 | |
aced0e84 JR |
225 | %{__make} install \ |
226 | DESTDIR=$RPM_BUILD_ROOT | |
227 | ||
d051c192 | 228 | %{__make} -C unix/xserver/hw/vnc install \ |
12ef4f37 | 229 | DESTDIR=$RPM_BUILD_ROOT |
d051c192 JB |
230 | |
231 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libvnc.la | |
12ef4f37 | 232 | |
7d6a554b | 233 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
7113a006 | 234 | |
7d6a554b AM |
235 | cp -p media/icons/tigervnc_16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/tigervnc.png |
236 | cp -p media/icons/tigervnc_22.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps/tigervnc.png | |
237 | cp -p media/icons/tigervnc_24.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/tigervnc.png | |
238 | cp -p media/icons/tigervnc_32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/tigervnc.png | |
239 | cp -p media/icons/tigervnc_48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/tigervnc.png | |
240 | cp -p media/icons/tigervnc.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/tigervnc.svg | |
7113a006 | 241 | |
d76ad120 | 242 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
7d6a554b AM |
243 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver |
244 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver | |
d76ad120 | 245 | |
10862a87 | 246 | ln -sr $RPM_BUILD_ROOT{%{_libexecdir},%{_bindir}}/vncserver |
245ad2d3 | 247 | |
a5f2294f JR |
248 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
249 | ||
7113a006 JR |
250 | %find_lang %{name} |
251 | ||
aced0e84 JR |
252 | %clean |
253 | rm -rf $RPM_BUILD_ROOT | |
254 | ||
145f00de | 255 | %post |
7d6a554b | 256 | [ ! -x %{_bindir}/update-desktop-database ] || %update_desktop_database_post |
d1286e0a | 257 | %update_icon_cache hicolor |
145f00de JR |
258 | |
259 | %postun | |
7d6a554b | 260 | [ ! -x %{_bindir}/update-desktop-database ] || %update_desktop_database_postun |
d1286e0a | 261 | %update_icon_cache hicolor |
145f00de | 262 | |
2dcb3511 MK |
263 | %post server |
264 | /sbin/chkconfig --add vncserver | |
265 | %service vncserver restart "VNC server" | |
266 | ||
267 | %preun server | |
268 | if [ "$1" = "0" ]; then | |
269 | %service vncserver stop | |
270 | /sbin/chkconfig --del vncserver | |
271 | fi | |
245ad2d3 JR |
272 | |
273 | %postun server | |
274 | %systemd_reload | |
275 | ||
7113a006 | 276 | %files -f %{name}.lang |
aced0e84 | 277 | %defattr(644,root,root,755) |
3f505847 | 278 | %doc README.rst doc/* |
aced0e84 JR |
279 | %attr(755,root,root) %{_bindir}/vncviewer |
280 | %{_mandir}/man1/vncviewer.1* | |
7113a006 | 281 | %{_desktopdir}/tigervnc.desktop |
377c2b5b | 282 | %{_desktopdir}/vncviewer.desktop |
7113a006 | 283 | %{_iconsdir}/hicolor/*/apps/tigervnc.* |
aced0e84 JR |
284 | |
285 | %files server | |
286 | %defattr(644,root,root,755) | |
12ef4f37 | 287 | %attr(755,root,root) %{_bindir}/Xvnc |
aced0e84 | 288 | %attr(755,root,root) %{_bindir}/vncserver |
7113a006 | 289 | %attr(755,root,root) %{_bindir}/x0vncserver |
10862a87 JR |
290 | %attr(755,root,root) %{_sbindir}/vncsession |
291 | %attr(755,root,root) %{_libexecdir}/vncserver | |
292 | %attr(755,root,root) %{_libexecdir}/vncsession-start | |
d76ad120 MK |
293 | %attr(754,root,root) /etc/rc.d/init.d/vncserver |
294 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vncserver | |
10862a87 JR |
295 | %dir %{_sysconfdir}/tigervnc |
296 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tigervnc/vncserver-config-defaults | |
297 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tigervnc/vncserver-config-mandatory | |
298 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tigervnc/vncserver.users | |
299 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/tigervnc | |
300 | %{systemdunitdir}/vncserver@.service | |
12ef4f37 | 301 | %{_mandir}/man1/Xvnc.1* |
7113a006 | 302 | %{_mandir}/man1/x0vncserver.1* |
10862a87 JR |
303 | %{_mandir}/man8/vncserver.8* |
304 | %{_mandir}/man8/vncsession.8* | |
aced0e84 JR |
305 | |
306 | %files utils | |
307 | %defattr(644,root,root,755) | |
7113a006 | 308 | %attr(755,root,root) %{_bindir}/vncconfig |
aced0e84 | 309 | %attr(755,root,root) %{_bindir}/vncpasswd |
7113a006 | 310 | %{_mandir}/man1/vncconfig.1* |
aced0e84 | 311 | %{_mandir}/man1/vncpasswd.1* |
12ef4f37 JR |
312 | |
313 | %files -n xorg-xserver-libvnc | |
314 | %defattr(644,root,root,755) | |
315 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libvnc.so |