]> git.pld-linux.org Git - packages/tigervnc.git/blob - tigervnc.spec
- release 4 (by relup.sh)
[packages/tigervnc.git] / tigervnc.spec
1 %define         xversion        1.16.0
2
3 Summary:        A TigerVNC remote display system
4 Summary(pl.UTF-8):      System zdalnego dostępu TigerVNC
5 Name:           tigervnc
6 Version:        1.8.0
7 Release:        4
8 License:        GPL v2
9 Group:          X11/Applications/Networking
10 Source0:        https://github.com/TigerVNC/tigervnc/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
11 # Source0-md5:  5c9a80dd4b99b4eb19f535db5ce5830f
12 Source1:        %{name}.desktop
13 Source2:        vncserver.init
14 Source3:        vncserver.sysconfig
15 Source4:        vncserver.target
16 Source5:        vncserver-service-generator
17 Patch2:         %{name}-getmaster.patch
18 Patch3:         %{name}-utilize-system-crypto-policies.patch
19 Patch4:         %{name}-xstartup.patch
20 Patch5:         tigervnc-support-xorg120.patch
21 Patch100:       xserver.patch
22 URL:            http://www.tigervnc.com/
23 BuildRequires:  ImageMagick
24 BuildRequires:  ImageMagick-coder-png
25 BuildRequires:  ImageMagick-coder-svg
26 BuildRequires:  Mesa-libGL-devel >= 7.8.1
27 BuildRequires:  cpp
28 BuildRequires:  fltk-devel
29 BuildRequires:  gnutls-devel
30 BuildRequires:  libjpeg-turbo-devel
31 BuildRequires:  xorg-xserver-server-source >= %{xversion}
32 BuildRequires:  zlib-devel
33 # xserver BRs, should match xorg-xserver-server.spec
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
40 BuildRequires:  nasm
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
46 BuildRequires:  rpmbuild(macros) >= 1.647
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
54 BuildRequires:  xorg-lib-libXext-devel >= 1.0.99.4
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
68 BuildRequires:  xorg-lib-libpciaccess-devel >= 0.13
69 BuildRequires:  xorg-lib-libxkbfile-devel
70 BuildRequires:  xorg-lib-libxkbui-devel >= 1.0.2
71 BuildRequires:  xorg-lib-libxshmfence-devel >= 1.1
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
75 BuildRequires:  xorg-proto-dri3proto-devel >= 1.0
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
82 BuildRequires:  xorg-proto-presentproto-devel >= 1.0
83 BuildRequires:  xorg-proto-printproto-devel
84 BuildRequires:  xorg-proto-randrproto-devel >= 1.3
85 BuildRequires:  xorg-proto-recordproto-devel
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
97 BuildRequires:  xorg-proto-xproto-devel >= 7.0.22
98 BuildRequires:  xorg-util-util-macros >= 1.10
99 Requires(post,postun):  gtk-update-icon-cache
100 Requires(post,postun):  hicolor-icon-theme
101 Requires:       libjpeg-turbo
102 Provides:       vnc-client
103 Conflicts:      vnc
104 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
105
106 %define         _xserverver     %(LC_ALL=C rpm -q --qf '%{V}' xorg-xserver-server-source 2> /dev/null)
107
108 %description
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.
112
113 %description -l pl.UTF-8
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.
118
119 %package server
120 Summary:        VNC X server - TigerVNC version
121 Summary(pl.UTF-8):      X serwer VNC - wersja TigerVNC
122 Group:          X11/Applications/Networking
123 Requires(post,preun):   /sbin/chkconfig
124 Requires(post,preun,postun):    systemd-units >= 38
125 Requires:       xorg-app-rgb
126 # for vncpasswd tool
127 Requires:       %{name}-utils = %{version}-%{release}
128 # for mcookie
129 Requires:       libjpeg-turbo
130 Requires:       systemd-units >= 38
131 Requires:       util-linux
132 Requires:       xkeyboard-config
133 Requires:       xorg-app-xauth
134 Requires:       xorg-app-xkbcomp
135 Obsoletes:      vnc-server
136
137 %description server
138 This package contains VNC X server in TigerVNC version.
139
140 %description server -l pl.UTF-8
141 Ten pakiet zawiera X serwer VNC w wersji TigerVNC.
142
143 %package utils
144 Summary:        Additional utilities for TigerVNC
145 Summary(pl.UTF-8):      Dodatkowe narzędzia do TigerVNC
146 Group:          X11/Applications/Networking
147 Obsoletes:      vnc-utils
148
149 %description utils
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).
154
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
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).
161
162 %package -n xorg-xserver-libvnc
163 Summary:        TigerVNC module for X.org server
164 Summary(pl.UTF-8):      Moduł TigerVNC dla servera X.org
165 Group:          X11/Servers
166 %requires_eq_to xorg-xserver-server xorg-xserver-server-source
167 Provides:       xorg-xserver-module(vnc)
168
169 %description -n xorg-xserver-libvnc
170 This package contains libvnc.so module for X.org server, allowing
171 others to access the desktop on your machine.
172
173 %description -n xorg-xserver-libvnc -l pl.UTF-8
174 Ten pakiet zawiera moduł libvnc.so dla serwera X.org, pozwalający na
175 zdalny dostęp do pulpitu.
176
177 %prep
178 %setup -q
179 %patch2 -p1
180 %patch3 -p1
181 %patch4 -p1
182 %patch5 -p1
183
184 cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver
185 cd unix/xserver
186 %patch100 -p1
187
188 %build
189 %cmake .
190 %{__make} -j1
191
192 cd unix/xserver
193 %{__aclocal} -I m4
194 %{__autoconf}
195 %{__automake}
196 %configure \
197         --with-os-name="PLD/Linux" \
198         --with-os-vendor="PLD/Team" \
199         --disable-config-hal \
200         --disable-config-udev \
201         --without-dtrace \
202         --disable-devel-docs \
203         --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
204         --disable-xorg \
205         --disable-xnest \
206         --disable-xvfb \
207         --disable-dmx \
208         --disable-xwin \
209         --disable-xephyr \
210         --disable-kdrive \
211         --disable-dri \
212         --enable-dri2 \
213         --disable-dri3 \
214         --with-pic \
215         --disable-static \
216         --disable-wayland \
217         --enable-glx \
218         --enable-install-libxf86config \
219         --with-xkb-output=/var/lib/xkb \
220         --disable-unit-tests
221
222 %{__make} -j1
223 cd -
224
225 cd media
226 %{__make} -j1
227
228 %install
229 rm -rf $RPM_BUILD_ROOT
230 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48,scalable}/apps \
231         $RPM_BUILD_ROOT%{_desktopdir}
232
233 %{__make} install \
234         DESTDIR=$RPM_BUILD_ROOT
235
236 cd unix/xserver/hw/vnc
237 %{__make} install \
238         DESTDIR=$RPM_BUILD_ROOT
239 cd -
240
241 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
242
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
249
250 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
251 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver
252 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver
253
254 install -d $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdunitdir}-generators}
255 install -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/vncserver.target
256 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}-generators/vncserver-service-generator
257 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vncserver.service
258
259 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
260
261 %find_lang %{name}
262
263 %clean
264 rm -rf $RPM_BUILD_ROOT
265
266 %post
267 [ ! -x %{_bindir}/update-desktop-database ] || %update_desktop_database_post
268 %update_icon_cache hicolor
269
270 %postun
271 [ ! -x %{_bindir}/update-desktop-database ] || %update_desktop_database_postun
272 %update_icon_cache hicolor
273
274 %post server
275 /sbin/chkconfig --add vncserver
276 %service vncserver restart "VNC server"
277 NORESTART=1
278 %systemd_post vncserver.target
279
280 %preun server
281 if [ "$1" = "0" ]; then
282         %service vncserver stop
283         /sbin/chkconfig --del vncserver
284 fi
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
297
298 %files -f %{name}.lang
299 %defattr(644,root,root,755)
300 %doc README.txt doc/*
301 %attr(755,root,root) %{_bindir}/vncviewer
302 %{_mandir}/man1/vncviewer.1*
303 %{_desktopdir}/tigervnc.desktop
304 %{_desktopdir}/vncviewer.desktop
305 %{_iconsdir}/hicolor/*/apps/tigervnc.*
306
307 %files server
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_bindir}/Xvnc
310 %attr(755,root,root) %{_bindir}/vncserver
311 %attr(755,root,root) %{_bindir}/x0vncserver
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
314 %attr(755,root,root) %{systemdunitdir}-generators/vncserver-service-generator
315 %{systemdunitdir}/vncserver.target
316 %{systemdunitdir}/vncserver.service
317 %{_mandir}/man1/Xvnc.1*
318 %{_mandir}/man1/vncserver.1*
319 %{_mandir}/man1/x0vncserver.1*
320
321 %files utils
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_bindir}/vncconfig
324 %attr(755,root,root) %{_bindir}/vncpasswd
325 %{_mandir}/man1/vncconfig.1*
326 %{_mandir}/man1/vncpasswd.1*
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.173471 seconds and 3 git commands to generate.