X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=tigervnc.spec;h=cd9c64bc3f03f95fbe737d10b2e7ccc068553661;hb=a5f2294fd721db65c93c74abf2342bdb75433be3;hp=81e8112a952d0e72843f66036026120fc813dfc4;hpb=92c2e1326172a1b99bca80ef7be953ad9a292eeb;p=packages%2Ftigervnc.git diff --git a/tigervnc.spec b/tigervnc.spec index 81e8112..cd9c64b 100644 --- a/tigervnc.spec +++ b/tigervnc.spec @@ -1,30 +1,34 @@ -# TODO: -# - tigervnc.init - -%define xversion 1.10.0 +%define xversion 1.14.0 Summary: A TigerVNC remote display system Summary(pl.UTF-8): System zdalnego dostępu TigerVNC Name: tigervnc -Version: 1.1.0 -Release: 4 +Version: 1.3.0 +Release: 2 License: GPL v2 Group: X11/Applications/Networking -Source0: http://dl.sourceforge.net/tigervnc/1.1.0/%{name}-%{version}.tar.gz -# Source0-md5: 1a5598b4a2ac530fb51411438959e11e +Source0: http://download.sourceforge.net/tigervnc/%{name}-%{version}.tar.bz2 +# Source0-md5: a5158228e64d14496821a39bf3851f1b Source1: %{name}.desktop +Source2: vncserver.init +Source3: vncserver.sysconfig Patch0: %{name}-cookie.patch Patch1: %{name}-ldnow.patch Patch2: %{name}-rh102434.patch -Patch3: %{name}-viewer-reparent.patch -Patch4: %{name}-as-needed.patch -Patch5: %{name}-ipv6.patch +Patch3: %{name}-as-needed.patch +Patch4: %{name}-ipv6.patch +Patch5: %{name}-rh692048.patch +Patch6: no-bashizm.patch +Patch7: format-security.patch +Patch8: %{name}-typecast.patch +Patch9: xserver.patch URL: http://www.tigervnc.com/ BuildRequires: ImageMagick BuildRequires: ImageMagick-coder-png BuildRequires: ImageMagick-coder-svg BuildRequires: Mesa-libGL-devel >= 7.8.1 BuildRequires: cpp +BuildRequires: fltk-devel BuildRequires: gnutls-devel BuildRequires: libjpeg-turbo-devel BuildRequires: xorg-xserver-server-source >= %{xversion} @@ -63,7 +67,7 @@ BuildRequires: xorg-lib-libXxf86dga-devel BuildRequires: xorg-lib-libXxf86misc-devel BuildRequires: xorg-lib-libXxf86vm-devel BuildRequires: xorg-lib-libfontenc-devel -BuildRequires: xorg-lib-libpciaccess-devel >= 0.8.0 +BuildRequires: xorg-lib-libpciaccess-devel >= 0.13 BuildRequires: xorg-lib-libxkbfile-devel BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2 BuildRequires: xorg-lib-xtrans-devel >= 1.2.2 @@ -76,7 +80,7 @@ BuildRequires: xorg-proto-glproto-devel >= 1.4.10 BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902 BuildRequires: xorg-proto-kbproto-devel >= 1.0.3 BuildRequires: xorg-proto-printproto-devel -BuildRequires: xorg-proto-randrproto-devel >= 1.2.99.3 +BuildRequires: xorg-proto-randrproto-devel >= 1.3 BuildRequires: xorg-proto-recordproto-devel BuildRequires: xorg-proto-renderproto-devel >= 0.11 BuildRequires: xorg-proto-resourceproto-devel @@ -89,7 +93,7 @@ BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1 BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0 BuildRequires: xorg-proto-xf86miscproto-devel BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1 -BuildRequires: xorg-proto-xproto-devel >= 7.0.17 +BuildRequires: xorg-proto-xproto-devel >= 7.0.22 BuildRequires: xorg-util-util-macros >= 1.10 Requires(post,postun): gtk-update-icon-cache Requires(post,postun): hicolor-icon-theme @@ -121,6 +125,9 @@ Requires: %{name}-utils = %{version}-%{release} # for mcookie Requires: util-linux Requires: libjpeg-turbo +Requires: xkeyboard-config +Requires: xorg-app-xauth +Requires: xorg-app-xkbcomp Obsoletes: vnc-server %description server @@ -169,30 +176,27 @@ pozwalający na zdalny dostęp do pulpitu. %patch1 -p1 %patch2 -p1 %patch3 -p1 -%patch4 -p1 -%patch5 -p0 +%patch4 -p0 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver + cd unix/xserver -patch -p1 <../xserver110.patch +patch -p1 <%{PATCH9} cd - %build -%{__gettextize} -%{__libtoolize} -%{__aclocal} -%{__autoconf} -%{__autoheader} -%{__automake} - -%{configure} \ - --with-system-jpeg - +%cmake . %{__make} cd unix/xserver -%{__automake} +%{__aclocal} -I m4 %{__autoconf} +%{__automake} +export CXXFLAGS="%{rpmcxxflags} -fpermissive" %configure \ --with-os-name="PLD/Linux" \ --with-os-vendor="PLD/Team" \ @@ -212,7 +216,8 @@ cd unix/xserver --disable-xephyr \ --disable-kdrive \ --disable-xfbdev \ - --disable-dri2 \ + --disable-dri \ + --enable-dri2 \ --with-pic \ --disable-static \ --disable-xinerama \ @@ -226,7 +231,8 @@ cd unix/xserver --enable-record \ --disable-xfake \ --enable-secure-rpc \ - --with-xkb-output=/var/lib/xkb + --with-xkb-output=/var/lib/xkb \ + --disable-unit-tests %{__make} cd - @@ -256,6 +262,12 @@ install media/icons/tigervnc_32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/ap install media/icons/tigervnc_48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/tigervnc.png install media/icons/tigervnc.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/tigervnc.svg +install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} +install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver +install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver + +%{__rm} -r $RPM_BUILD_ROOT%{_docdir} + %find_lang %{name} %clean @@ -271,7 +283,7 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) -%doc doc/* +%doc README.txt doc/* %attr(755,root,root) %{_bindir}/vncviewer %{_mandir}/man1/vncviewer.1* %{_desktopdir}/tigervnc.desktop @@ -282,6 +294,8 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/Xvnc %attr(755,root,root) %{_bindir}/vncserver %attr(755,root,root) %{_bindir}/x0vncserver +%attr(754,root,root) /etc/rc.d/init.d/vncserver +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vncserver %{_mandir}/man1/Xvnc.1* %{_mandir}/man1/vncserver.1* %{_mandir}/man1/x0vncserver.1*