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