]> git.pld-linux.org Git - packages/tigervnc.git/blame - tigervnc.spec
- clean default xstartup + moved vncconfig startup, release 3
[packages/tigervnc.git] / tigervnc.spec
CommitLineData
5bd16a60 1%define xversion 1.14.0
aced0e84 2
25ea9235
JR
3Summary: A TigerVNC remote display system
4Summary(pl.UTF-8): System zdalnego dostępu TigerVNC
aced0e84 5Name: tigervnc
ea73831e 6Version: 1.3.0
bd5cb60a 7Release: 3
aced0e84
JR
8License: GPL v2
9Group: X11/Applications/Networking
ea73831e
MK
10Source0: http://download.sourceforge.net/tigervnc/%{name}-%{version}.tar.bz2
11# Source0-md5: a5158228e64d14496821a39bf3851f1b
aced0e84 12Source1: %{name}.desktop
d76ad120
MK
13Source2: vncserver.init
14Source3: vncserver.sysconfig
d1286e0a
AF
15Patch0: %{name}-cookie.patch
16Patch1: %{name}-ldnow.patch
17Patch2: %{name}-rh102434.patch
ea73831e
MK
18Patch3: %{name}-as-needed.patch
19Patch4: %{name}-ipv6.patch
20Patch5: %{name}-rh692048.patch
21Patch6: no-bashizm.patch
22Patch7: format-security.patch
23Patch8: %{name}-typecast.patch
bd5cb60a
MK
24Patch9: tigervnc-xstartup.patch
25Patch10: xserver.patch
aced0e84 26URL: http://www.tigervnc.com/
7113a006 27BuildRequires: ImageMagick
7718ecda
JR
28BuildRequires: ImageMagick-coder-png
29BuildRequires: ImageMagick-coder-svg
d1286e0a 30BuildRequires: Mesa-libGL-devel >= 7.8.1
aced0e84 31BuildRequires: cpp
80f71334 32BuildRequires: fltk-devel
f6fa61b2 33BuildRequires: gnutls-devel
ea2b4c07 34BuildRequires: libjpeg-turbo-devel
7113a006 35BuildRequires: xorg-xserver-server-source >= %{xversion}
d1286e0a 36BuildRequires: zlib-devel
aced0e84 37# xserver BRs, should match xorg-xserver-server.spec
aced0e84
JR
38# for glx headers
39BuildRequires: OpenGL-GLX-devel
40BuildRequires: autoconf >= 2.57
41BuildRequires: automake
42BuildRequires: libdrm-devel >= 2.4.5
43BuildRequires: libtool
d31e009e 44BuildRequires: nasm
aced0e84
JR
45BuildRequires: ncurses-devel
46BuildRequires: pam-devel
47BuildRequires: perl-base
48BuildRequires: pixman-devel >= 0.16.0
49BuildRequires: pkgconfig >= 1:0.19
50BuildRequires: xorg-app-mkfontscale
51BuildRequires: xorg-font-font-util >= 1.1
52BuildRequires: xorg-lib-libX11-devel
53BuildRequires: xorg-lib-libXau-devel
54BuildRequires: xorg-lib-libXaw-devel
55BuildRequires: xorg-lib-libXdamage-devel
56BuildRequires: xorg-lib-libXdmcp-devel
d1286e0a 57BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4
aced0e84
JR
58BuildRequires: xorg-lib-libXfont-devel >= 1.4.2
59BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1
60BuildRequires: xorg-lib-libXmu-devel
61BuildRequires: xorg-lib-libXpm-devel
62BuildRequires: xorg-lib-libXrender-devel
63BuildRequires: xorg-lib-libXres-devel
64BuildRequires: xorg-lib-libXt-devel >= 1.0.0
65BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2
66BuildRequires: xorg-lib-libXv-devel
67BuildRequires: xorg-lib-libXxf86dga-devel
68BuildRequires: xorg-lib-libXxf86misc-devel
69BuildRequires: xorg-lib-libXxf86vm-devel
70BuildRequires: xorg-lib-libfontenc-devel
7470b97a 71BuildRequires: xorg-lib-libpciaccess-devel >= 0.13
aced0e84
JR
72BuildRequires: xorg-lib-libxkbfile-devel
73BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2
74BuildRequires: xorg-lib-xtrans-devel >= 1.2.2
75BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
76BuildRequires: xorg-proto-damageproto-devel >= 1.1
77BuildRequires: xorg-proto-fixesproto-devel >= 4.1
78BuildRequires: xorg-proto-fontcacheproto-devel
79BuildRequires: xorg-proto-fontsproto-devel
80BuildRequires: xorg-proto-glproto-devel >= 1.4.10
81BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902
82BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
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
JR
113%description -l pl.UTF-8
114TigerVNC to zestaw serwerów i klientów VNC, które koncentrują się
115na wydajności i funkcjonalności zdalnego wyświetlania. Pierwotnie
116oprogramowanie oparte było na (nigdy nie wydanej)
117gałęzi VNC 4 TightVNC.
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
aced0e84
JR
124Requires: xorg-app-rgb
125# for vncpasswd tool
126Requires: %{name}-utils = %{version}-%{release}
127# for mcookie
128Requires: util-linux
ea2b4c07 129Requires: libjpeg-turbo
7559c302 130Requires: xkeyboard-config
a511b5c2 131Requires: xorg-app-xauth
7559c302 132Requires: xorg-app-xkbcomp
aced0e84
JR
133Obsoletes: vnc-server
134
135%description server
7113a006 136This package contains VNC X server in TigerVNC version.
aced0e84
JR
137
138%description server -l pl.UTF-8
7113a006 139Ten pakiet zawiera X serwer VNC w wersji TigerVNC.
aced0e84
JR
140
141%package utils
25ea9235
JR
142Summary: Additional utilities for TigerVNC
143Summary(pl.UTF-8): Dodatkowe narzędzia do TigerVNC
aced0e84
JR
144Group: X11/Applications/Networking
145Obsoletes: vnc-utils
146
147%description utils
7113a006
JR
148This package contains additional TigerVNC utilities: vncconfig and
149vncpasswd. vncconfig is used to configure and control a running
150instance of Xvnc, or any other X server with the VNC extension.
151vncpasswd generates password file (both on server and viewer side).
aced0e84 152
203e0071
JR
153%description utils -l pl.UTF-8
154Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconfig i
155vncpasswd. vncconfig służy do konfigurowania i kontroli działającej
156instancji Xvnc lub innego serwera X z rozszerzeniem VNC.
157vncpasswd służy to tworzenia pliku z hasłem (zarówno po
158stronie serwera, jak i przeglądarki).
159
12ef4f37
JR
160%package -n xorg-xserver-libvnc
161Summary: TigerVNC module for X.org server
203e0071 162Summary(pl.UTF-8): Moduł TigerVNC dla servera X.org
12ef4f37 163Group: X11/Servers
7113a006 164%requires_eq_to xorg-xserver-server xorg-xserver-server-source
12ef4f37
JR
165Provides: xorg-xserver-module(vnc)
166
167%description -n xorg-xserver-libvnc
168This package contains libvnc.so module for X.org server,
169allowing others to access the desktop on your machine.
170
203e0071
JR
171%description -n xorg-xserver-libvnc -l pl.UTF-8
172Ten pakiet zawiera moduł libvnc.so dla serwera X.org,
173pozwalający na zdalny dostęp do pulpitu.
174
aced0e84 175%prep
d31e009e 176%setup -q
7113a006
JR
177%patch0 -p1
178%patch1 -p1
179%patch2 -p1
ea73831e
MK
180%patch3 -p1
181%patch4 -p0
182%patch5 -p1
183%patch6 -p1
2c7d78a4 184%patch7 -p1
7470b97a 185%patch8 -p1
bd5cb60a 186%patch9 -p1
aced0e84 187
7113a006 188cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver
ea73831e 189
12ef4f37 190cd unix/xserver
bd5cb60a 191patch -p1 <%{PATCH10}
d31e009e 192cd -
12ef4f37 193
aced0e84 194%build
7470b97a 195%cmake .
aced0e84
JR
196%{__make}
197
12ef4f37 198cd unix/xserver
7470b97a 199%{__aclocal} -I m4
12ef4f37 200%{__autoconf}
7470b97a
JR
201%{__automake}
202export CXXFLAGS="%{rpmcxxflags} -fpermissive"
12ef4f37 203%configure \
7113a006
JR
204 --with-os-name="PLD/Linux" \
205 --with-os-vendor="PLD/Team" \
206 --disable-config-dbus \
207 --disable-config-hal \
208 --disable-config-udev \
7113a006
JR
209 --without-xmlto \
210 --without-fop \
211 --without-doxygen \
212 --disable-devel-docs \
213 --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
12ef4f37
JR
214 --disable-xorg \
215 --disable-xnest \
216 --disable-xvfb \
217 --disable-dmx \
218 --disable-xwin \
219 --disable-xephyr \
220 --disable-kdrive \
7113a006 221 --disable-xfbdev \
7470b97a 222 --disable-dri \
2c7d78a4 223 --enable-dri2 \
12ef4f37
JR
224 --with-pic \
225 --disable-static \
226 --disable-xinerama \
227 --disable-composite \
12ef4f37 228 --enable-glx \
7113a006
JR
229 --enable-glx-tls \
230 --enable-aiglx \
231 --enable-dga \
232 --enable-glx-tls \
233 --enable-install-libxf86config \
234 --enable-record \
7113a006
JR
235 --disable-xfake \
236 --enable-secure-rpc \
2c7d78a4
JR
237 --with-xkb-output=/var/lib/xkb \
238 --disable-unit-tests
12ef4f37
JR
239
240%{__make}
241cd -
242
12ef4f37
JR
243cd media
244%{__make}
245
aced0e84
JR
246%install
247rm -rf $RPM_BUILD_ROOT
7113a006
JR
248install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48,scalable}/apps \
249 $RPM_BUILD_ROOT%{_desktopdir}
aced0e84 250
aced0e84
JR
251%{__make} install \
252 DESTDIR=$RPM_BUILD_ROOT
253
12ef4f37
JR
254cd unix/xserver/hw/vnc
255%{__make} install \
256 DESTDIR=$RPM_BUILD_ROOT
257cd -
258
7113a006
JR
259install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
260
261install media/icons/tigervnc_16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/tigervnc.png
262install media/icons/tigervnc_22.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps/tigervnc.png
263install media/icons/tigervnc_24.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/tigervnc.png
264install media/icons/tigervnc_32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/tigervnc.png
265install media/icons/tigervnc_48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/tigervnc.png
266install media/icons/tigervnc.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/tigervnc.svg
267
d76ad120
MK
268install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
269install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver
270install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver
271
a5f2294f
JR
272%{__rm} -r $RPM_BUILD_ROOT%{_docdir}
273
7113a006
JR
274%find_lang %{name}
275
aced0e84
JR
276%clean
277rm -rf $RPM_BUILD_ROOT
278
145f00de
JR
279%post
280[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
d1286e0a 281%update_icon_cache hicolor
145f00de
JR
282
283%postun
284[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
d1286e0a 285%update_icon_cache hicolor
145f00de 286
2dcb3511
MK
287%post server
288/sbin/chkconfig --add vncserver
289%service vncserver restart "VNC server"
290
291%preun server
292if [ "$1" = "0" ]; then
293 %service vncserver stop
294 /sbin/chkconfig --del vncserver
295fi
296
7113a006 297%files -f %{name}.lang
aced0e84 298%defattr(644,root,root,755)
a5f2294f 299%doc README.txt doc/*
aced0e84
JR
300%attr(755,root,root) %{_bindir}/vncviewer
301%{_mandir}/man1/vncviewer.1*
7113a006
JR
302%{_desktopdir}/tigervnc.desktop
303%{_iconsdir}/hicolor/*/apps/tigervnc.*
aced0e84
JR
304
305%files server
306%defattr(644,root,root,755)
12ef4f37 307%attr(755,root,root) %{_bindir}/Xvnc
aced0e84 308%attr(755,root,root) %{_bindir}/vncserver
7113a006 309%attr(755,root,root) %{_bindir}/x0vncserver
d76ad120
MK
310%attr(754,root,root) /etc/rc.d/init.d/vncserver
311%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vncserver
12ef4f37 312%{_mandir}/man1/Xvnc.1*
aced0e84 313%{_mandir}/man1/vncserver.1*
7113a006 314%{_mandir}/man1/x0vncserver.1*
aced0e84
JR
315
316%files utils
317%defattr(644,root,root,755)
7113a006 318%attr(755,root,root) %{_bindir}/vncconfig
aced0e84 319%attr(755,root,root) %{_bindir}/vncpasswd
7113a006 320%{_mandir}/man1/vncconfig.1*
aced0e84 321%{_mandir}/man1/vncpasswd.1*
12ef4f37
JR
322
323%files -n xorg-xserver-libvnc
324%defattr(644,root,root,755)
325%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libvnc.so
This page took 0.114511 seconds and 4 git commands to generate.