]> git.pld-linux.org Git - packages/tigervnc.git/blame - tigervnc.spec
Release 7 (by relup.sh)
[packages/tigervnc.git] / tigervnc.spec
CommitLineData
10862a87 1%define xversion 1.21.0
aced0e84 2
25ea9235
JR
3Summary: A TigerVNC remote display system
4Summary(pl.UTF-8): System zdalnego dostępu TigerVNC
aced0e84 5Name: tigervnc
d051c192 6Version: 1.12.0
b987b186 7Release: 7
aced0e84
JR
8License: GPL v2
9Group: X11/Applications/Networking
d051c192 10#Source0Download: https://github.com/TigerVNC/tigervnc/releases
3f505847 11Source0: https://github.com/TigerVNC/tigervnc/archive/v%{version}/%{name}-%{version}.tar.gz
d051c192 12# Source0-md5: e92945f43654e2a120f2c9d8b3a9b869
aced0e84 13Source1: %{name}.desktop
d76ad120
MK
14Source2: vncserver.init
15Source3: vncserver.sysconfig
9a7ff7b8 16Patch4: %{name}-shebang.patch
10862a87 17Patch5: xserver-1.21.patch
7d6a554b 18Patch100: xserver.patch
aced0e84 19URL: http://www.tigervnc.com/
7113a006 20BuildRequires: ImageMagick
7718ecda
JR
21BuildRequires: ImageMagick-coder-png
22BuildRequires: ImageMagick-coder-svg
56d5128f 23BuildRequires: Mesa-dri-devel >= 7.8.1
d1286e0a 24BuildRequires: Mesa-libGL-devel >= 7.8.1
aced0e84 25BuildRequires: cpp
d051c192 26BuildRequires: cmake >= 3.4.0
80f71334 27BuildRequires: fltk-devel
d051c192 28BuildRequires: gettext-tools
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
56d5128f 55BuildRequires: xorg-lib-libXfont2-devel >= 2.0.0
aced0e84
JR
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
aced0e84
JR
65BuildRequires: xorg-lib-libXxf86vm-devel
66BuildRequires: xorg-lib-libfontenc-devel
7470b97a 67BuildRequires: xorg-lib-libpciaccess-devel >= 0.13
56d5128f 68BuildRequires: xorg-lib-libxcvt-devel
aced0e84 69BuildRequires: xorg-lib-libxkbfile-devel
aa94f70a 70BuildRequires: xorg-lib-libxshmfence-devel >= 1.1
aced0e84
JR
71BuildRequires: xorg-lib-xtrans-devel >= 1.2.2
72BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
73BuildRequires: xorg-proto-damageproto-devel >= 1.1
aa94f70a 74BuildRequires: xorg-proto-dri3proto-devel >= 1.0
aced0e84
JR
75BuildRequires: xorg-proto-fixesproto-devel >= 4.1
76BuildRequires: xorg-proto-fontcacheproto-devel
77BuildRequires: xorg-proto-fontsproto-devel
78BuildRequires: xorg-proto-glproto-devel >= 1.4.10
79BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902
80BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
2e5d6664 81BuildRequires: xorg-proto-presentproto-devel >= 1.0
aced0e84 82BuildRequires: xorg-proto-printproto-devel
470522f5 83BuildRequires: xorg-proto-randrproto-devel >= 1.3
7113a006 84BuildRequires: xorg-proto-recordproto-devel
aced0e84
JR
85BuildRequires: xorg-proto-renderproto-devel >= 0.11
86BuildRequires: xorg-proto-resourceproto-devel
87BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0
88BuildRequires: xorg-proto-videoproto-devel
89BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
90BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3
91BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0
92BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1
93BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0
94BuildRequires: xorg-proto-xf86miscproto-devel
95BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
470522f5 96BuildRequires: xorg-proto-xproto-devel >= 7.0.22
aced0e84 97BuildRequires: xorg-util-util-macros >= 1.10
d1286e0a
AF
98Requires(post,postun): gtk-update-icon-cache
99Requires(post,postun): hicolor-icon-theme
ea2b4c07 100Requires: libjpeg-turbo
aced0e84
JR
101Provides: vnc-client
102Conflicts: vnc
103BuildRoot: %{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
108TigerVNC is a suite of VNC servers and clients that have a focus on
109performance and remote display functionality. Originally this software
110was based on the (never released) VNC 4 branch of TightVNC.
aced0e84 111
203e0071 112%description -l pl.UTF-8
7d6a554b
AM
113TigerVNC to zestaw serwerów i klientów VNC, które koncentrują się na
114wydajności i funkcjonalności zdalnego wyświetlania. Pierwotnie
115oprogramowanie oparte było na (nigdy nie wydanej) gałęzi VNC 4
116TightVNC.
203e0071 117
aced0e84 118%package server
25ea9235
JR
119Summary: VNC X server - TigerVNC version
120Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC
aced0e84 121Group: X11/Applications/Networking
2dcb3511 122Requires(post,preun): /sbin/chkconfig
245ad2d3 123Requires(post,preun,postun): systemd-units >= 38
aced0e84
JR
124Requires: xorg-app-rgb
125# for vncpasswd tool
126Requires: %{name}-utils = %{version}-%{release}
127# for mcookie
ea2b4c07 128Requires: libjpeg-turbo
245ad2d3 129Requires: systemd-units >= 38
7d6a554b 130Requires: util-linux
7559c302 131Requires: xkeyboard-config
a511b5c2 132Requires: xorg-app-xauth
7559c302 133Requires: xorg-app-xkbcomp
aced0e84
JR
134Obsoletes: vnc-server
135
136%description server
7113a006 137This package contains VNC X server in TigerVNC version.
aced0e84
JR
138
139%description server -l pl.UTF-8
7113a006 140Ten pakiet zawiera X serwer VNC w wersji TigerVNC.
aced0e84
JR
141
142%package utils
25ea9235
JR
143Summary: Additional utilities for TigerVNC
144Summary(pl.UTF-8): Dodatkowe narzędzia do TigerVNC
aced0e84
JR
145Group: X11/Applications/Networking
146Obsoletes: vnc-utils
147
148%description utils
7113a006
JR
149This package contains additional TigerVNC utilities: vncconfig and
150vncpasswd. vncconfig is used to configure and control a running
151instance of Xvnc, or any other X server with the VNC extension.
152vncpasswd generates password file (both on server and viewer side).
aced0e84 153
203e0071
JR
154%description utils -l pl.UTF-8
155Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconfig i
156vncpasswd. vncconfig służy do konfigurowania i kontroli działającej
7d6a554b
AM
157instancji Xvnc lub innego serwera X z rozszerzeniem VNC. vncpasswd
158służy to tworzenia pliku z hasłem (zarówno po stronie serwera, jak i
159przeglądarki).
203e0071 160
12ef4f37
JR
161%package -n xorg-xserver-libvnc
162Summary: TigerVNC module for X.org server
203e0071 163Summary(pl.UTF-8): Moduł TigerVNC dla servera X.org
12ef4f37 164Group: X11/Servers
7d6a554b 165%requires_eq_to xorg-xserver-server xorg-xserver-server-source
12ef4f37
JR
166Provides: xorg-xserver-module(vnc)
167
168%description -n xorg-xserver-libvnc
7d6a554b
AM
169This package contains libvnc.so module for X.org server, allowing
170others to access the desktop on your machine.
12ef4f37 171
203e0071 172%description -n xorg-xserver-libvnc -l pl.UTF-8
7d6a554b
AM
173Ten pakiet zawiera moduł libvnc.so dla serwera X.org, pozwalający na
174zdalny dostęp do pulpitu.
203e0071 175
aced0e84 176%prep
d31e009e 177%setup -q
7d6a554b 178%patch4 -p1
aced0e84 179
7113a006 180cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver
10862a87 181%patch5 -p1
12ef4f37 182cd 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 190cd 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
216cd -
217
d051c192 218%{__make} -C media
12ef4f37 219
aced0e84
JR
220%install
221rm -rf $RPM_BUILD_ROOT
7113a006
JR
222install -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 233cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
7113a006 234
7d6a554b
AM
235cp -p media/icons/tigervnc_16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/tigervnc.png
236cp -p media/icons/tigervnc_22.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps/tigervnc.png
237cp -p media/icons/tigervnc_24.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/tigervnc.png
238cp -p media/icons/tigervnc_32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/tigervnc.png
239cp -p media/icons/tigervnc_48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/tigervnc.png
240cp -p media/icons/tigervnc.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/tigervnc.svg
7113a006 241
d76ad120 242install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
7d6a554b
AM
243cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver
244cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver
d76ad120 245
10862a87 246ln -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
253rm -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
268if [ "$1" = "0" ]; then
269 %service vncserver stop
270 /sbin/chkconfig --del vncserver
271fi
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
This page took 0.155464 seconds and 4 git commands to generate.