]> git.pld-linux.org Git - packages/tigervnc.git/blame - tigervnc.spec
- release 4 (by relup.sh)
[packages/tigervnc.git] / tigervnc.spec
CommitLineData
6bfe2ea4 1%define xversion 1.16.0
aced0e84 2
25ea9235
JR
3Summary: A TigerVNC remote display system
4Summary(pl.UTF-8): System zdalnego dostępu TigerVNC
aced0e84 5Name: tigervnc
377c2b5b 6Version: 1.8.0
03dba754 7Release: 4
aced0e84
JR
8License: GPL v2
9Group: X11/Applications/Networking
7004e522 10Source0: https://github.com/TigerVNC/tigervnc/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
377c2b5b 11# Source0-md5: 5c9a80dd4b99b4eb19f535db5ce5830f
aced0e84 12Source1: %{name}.desktop
d76ad120
MK
13Source2: vncserver.init
14Source3: vncserver.sysconfig
245ad2d3
JR
15Source4: vncserver.target
16Source5: vncserver-service-generator
7d6a554b
AM
17Patch2: %{name}-getmaster.patch
18Patch3: %{name}-utilize-system-crypto-policies.patch
19Patch4: %{name}-xstartup.patch
f3b4f89f 20Patch5: tigervnc-support-xorg120.patch
7d6a554b 21Patch100: xserver.patch
aced0e84 22URL: http://www.tigervnc.com/
7113a006 23BuildRequires: ImageMagick
7718ecda
JR
24BuildRequires: ImageMagick-coder-png
25BuildRequires: ImageMagick-coder-svg
d1286e0a 26BuildRequires: Mesa-libGL-devel >= 7.8.1
aced0e84 27BuildRequires: cpp
80f71334 28BuildRequires: fltk-devel
f6fa61b2 29BuildRequires: gnutls-devel
ea2b4c07 30BuildRequires: libjpeg-turbo-devel
7113a006 31BuildRequires: xorg-xserver-server-source >= %{xversion}
d1286e0a 32BuildRequires: zlib-devel
aced0e84 33# xserver BRs, should match xorg-xserver-server.spec
aced0e84
JR
34# for glx headers
35BuildRequires: OpenGL-GLX-devel
36BuildRequires: autoconf >= 2.57
37BuildRequires: automake
38BuildRequires: libdrm-devel >= 2.4.5
39BuildRequires: libtool
d31e009e 40BuildRequires: nasm
aced0e84
JR
41BuildRequires: ncurses-devel
42BuildRequires: pam-devel
43BuildRequires: perl-base
44BuildRequires: pixman-devel >= 0.16.0
45BuildRequires: pkgconfig >= 1:0.19
9f5ab5d2 46BuildRequires: rpmbuild(macros) >= 1.647
aced0e84
JR
47BuildRequires: xorg-app-mkfontscale
48BuildRequires: xorg-font-font-util >= 1.1
49BuildRequires: xorg-lib-libX11-devel
50BuildRequires: xorg-lib-libXau-devel
51BuildRequires: xorg-lib-libXaw-devel
52BuildRequires: xorg-lib-libXdamage-devel
53BuildRequires: xorg-lib-libXdmcp-devel
d1286e0a 54BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4
aced0e84
JR
55BuildRequires: xorg-lib-libXfont-devel >= 1.4.2
56BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1
57BuildRequires: xorg-lib-libXmu-devel
58BuildRequires: xorg-lib-libXpm-devel
59BuildRequires: xorg-lib-libXrender-devel
60BuildRequires: xorg-lib-libXres-devel
61BuildRequires: xorg-lib-libXt-devel >= 1.0.0
62BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2
63BuildRequires: xorg-lib-libXv-devel
64BuildRequires: xorg-lib-libXxf86dga-devel
65BuildRequires: xorg-lib-libXxf86misc-devel
66BuildRequires: xorg-lib-libXxf86vm-devel
67BuildRequires: xorg-lib-libfontenc-devel
7470b97a 68BuildRequires: xorg-lib-libpciaccess-devel >= 0.13
aced0e84
JR
69BuildRequires: xorg-lib-libxkbfile-devel
70BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2
aa94f70a 71BuildRequires: xorg-lib-libxshmfence-devel >= 1.1
aced0e84
JR
72BuildRequires: xorg-lib-xtrans-devel >= 1.2.2
73BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
74BuildRequires: xorg-proto-damageproto-devel >= 1.1
aa94f70a 75BuildRequires: xorg-proto-dri3proto-devel >= 1.0
aced0e84
JR
76BuildRequires: xorg-proto-fixesproto-devel >= 4.1
77BuildRequires: xorg-proto-fontcacheproto-devel
78BuildRequires: xorg-proto-fontsproto-devel
79BuildRequires: xorg-proto-glproto-devel >= 1.4.10
80BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902
81BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
2e5d6664 82BuildRequires: xorg-proto-presentproto-devel >= 1.0
aced0e84 83BuildRequires: xorg-proto-printproto-devel
470522f5 84BuildRequires: xorg-proto-randrproto-devel >= 1.3
7113a006 85BuildRequires: xorg-proto-recordproto-devel
aced0e84
JR
86BuildRequires: xorg-proto-renderproto-devel >= 0.11
87BuildRequires: xorg-proto-resourceproto-devel
88BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0
89BuildRequires: xorg-proto-videoproto-devel
90BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
91BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3
92BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0
93BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1
94BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0
95BuildRequires: xorg-proto-xf86miscproto-devel
96BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
470522f5 97BuildRequires: xorg-proto-xproto-devel >= 7.0.22
aced0e84 98BuildRequires: xorg-util-util-macros >= 1.10
d1286e0a
AF
99Requires(post,postun): gtk-update-icon-cache
100Requires(post,postun): hicolor-icon-theme
ea2b4c07 101Requires: libjpeg-turbo
aced0e84
JR
102Provides: vnc-client
103Conflicts: vnc
104BuildRoot: %{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
109TigerVNC is a suite of VNC servers and clients that have a focus on
110performance and remote display functionality. Originally this software
111was based on the (never released) VNC 4 branch of TightVNC.
aced0e84 112
203e0071 113%description -l pl.UTF-8
7d6a554b
AM
114TigerVNC to zestaw serwerów i klientów VNC, które koncentrują się na
115wydajności i funkcjonalności zdalnego wyświetlania. Pierwotnie
116oprogramowanie oparte było na (nigdy nie wydanej) gałęzi VNC 4
117TightVNC.
203e0071 118
aced0e84 119%package server
25ea9235
JR
120Summary: VNC X server - TigerVNC version
121Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC
aced0e84 122Group: X11/Applications/Networking
2dcb3511 123Requires(post,preun): /sbin/chkconfig
245ad2d3 124Requires(post,preun,postun): systemd-units >= 38
aced0e84
JR
125Requires: xorg-app-rgb
126# for vncpasswd tool
127Requires: %{name}-utils = %{version}-%{release}
128# for mcookie
ea2b4c07 129Requires: libjpeg-turbo
245ad2d3 130Requires: systemd-units >= 38
7d6a554b 131Requires: util-linux
7559c302 132Requires: xkeyboard-config
a511b5c2 133Requires: xorg-app-xauth
7559c302 134Requires: xorg-app-xkbcomp
aced0e84
JR
135Obsoletes: vnc-server
136
137%description server
7113a006 138This package contains VNC X server in TigerVNC version.
aced0e84
JR
139
140%description server -l pl.UTF-8
7113a006 141Ten pakiet zawiera X serwer VNC w wersji TigerVNC.
aced0e84
JR
142
143%package utils
25ea9235
JR
144Summary: Additional utilities for TigerVNC
145Summary(pl.UTF-8): Dodatkowe narzędzia do TigerVNC
aced0e84
JR
146Group: X11/Applications/Networking
147Obsoletes: vnc-utils
148
149%description utils
7113a006
JR
150This package contains additional TigerVNC utilities: vncconfig and
151vncpasswd. vncconfig is used to configure and control a running
152instance of Xvnc, or any other X server with the VNC extension.
153vncpasswd generates password file (both on server and viewer side).
aced0e84 154
203e0071
JR
155%description utils -l pl.UTF-8
156Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconfig i
157vncpasswd. vncconfig służy do konfigurowania i kontroli działającej
7d6a554b
AM
158instancji Xvnc lub innego serwera X z rozszerzeniem VNC. vncpasswd
159służy to tworzenia pliku z hasłem (zarówno po stronie serwera, jak i
160przeglądarki).
203e0071 161
12ef4f37
JR
162%package -n xorg-xserver-libvnc
163Summary: TigerVNC module for X.org server
203e0071 164Summary(pl.UTF-8): Moduł TigerVNC dla servera X.org
12ef4f37 165Group: X11/Servers
7d6a554b 166%requires_eq_to xorg-xserver-server xorg-xserver-server-source
12ef4f37
JR
167Provides: xorg-xserver-module(vnc)
168
169%description -n xorg-xserver-libvnc
7d6a554b
AM
170This package contains libvnc.so module for X.org server, allowing
171others to access the desktop on your machine.
12ef4f37 172
203e0071 173%description -n xorg-xserver-libvnc -l pl.UTF-8
7d6a554b
AM
174Ten pakiet zawiera moduł libvnc.so dla serwera X.org, pozwalający na
175zdalny 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 184cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver
12ef4f37 185cd unix/xserver
7d6a554b 186%patch100 -p1
12ef4f37 187
aced0e84 188%build
7470b97a 189%cmake .
5cd27197 190%{__make} -j1
aced0e84 191
12ef4f37 192cd 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
223cd -
224
12ef4f37 225cd media
5cd27197 226%{__make} -j1
12ef4f37 227
aced0e84
JR
228%install
229rm -rf $RPM_BUILD_ROOT
7113a006
JR
230install -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
236cd unix/xserver/hw/vnc
237%{__make} install \
238 DESTDIR=$RPM_BUILD_ROOT
239cd -
240
7d6a554b 241cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
7113a006 242
7d6a554b
AM
243cp -p media/icons/tigervnc_16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/tigervnc.png
244cp -p media/icons/tigervnc_22.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps/tigervnc.png
245cp -p media/icons/tigervnc_24.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/tigervnc.png
246cp -p media/icons/tigervnc_32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/tigervnc.png
247cp -p media/icons/tigervnc_48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/tigervnc.png
248cp -p media/icons/tigervnc.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/tigervnc.svg
7113a006 249
d76ad120 250install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
7d6a554b
AM
251cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver
252cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver
d76ad120 253
7d6a554b 254install -d $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdunitdir}-generators}
245ad2d3 255install -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/vncserver.target
7d6a554b 256install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}-generators/vncserver-service-generator
245ad2d3
JR
257ln -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
264rm -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 277NORESTART=1
245ad2d3 278%systemd_post vncserver.target
2dcb3511
MK
279
280%preun server
281if [ "$1" = "0" ]; then
282 %service vncserver stop
283 /sbin/chkconfig --del vncserver
284fi
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
293export SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog
294if [ "$(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 || :
296fi
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
This page took 0.142224 seconds and 4 git commands to generate.