As I've explained to Russ before, I still object to adding an Xvnc server
to the JDS consolidation, as it will make it harder to coordinate work
that has to happen across all X servers, such as security fixes.

This Xvnc will also be missing support for various Solaris features
supported by the X servers built out of the X consolidation, including:
  - the extensions needed for GNOME Accessibility (Section 508)
  - support for Solaris Trusted Extensions
  - the Xserver DTrace probes
  - Extensions used by JDS such as X Render (and anything else added in
    the decade since this source was forked from XFree86).

        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Laszlo (Laca) Peter wrote:
> Attached are 2 spec files:
>  - SUNWvncserver includes the server bits from tightvnc
>  - SUNWvncviewer includes the viewer bits from realvnc
> 
> As requested by the Xen team.
> 
> Laca
> 
> 
> 
> ------------------------------------------------------------------------
> 
> #
> # spec file for package SUNWvncserver
> #
> # includes module(s): tightvnc (server only)
> #
> # Copyright 2007 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: laca
> #
> %include Solaris.inc
> 
> Name:                    SUNWvncserver
> Summary:                 VNC - remote control software - server (tightvnc)
> Version:                 1.3.9
> Source:                  
> http://mesh.dl.sourceforge.net/sourceforge/vnc-tight/tightvnc-%{version}_unixsrc.tar.bz2
> SUNW_BaseDir:            %{_basedir}
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
> %include default-depend.inc
> Requires: SUNWjpg
> Requires: SUNWlibmsr
> Requires: SUNWperl584core
> Requires: SUNWxwplt
> Requires: SUNWzlib
> BuildRequires: SUNWxwopt
> 
> %prep
> %setup -q -n vnc_unixsrc
> 
> %build
> CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
> if test "x$CPUS" = "x" -o $CPUS = 0; then
>     CPUS=1
> fi
> 
> #correct cc path
> cc_dir=`dirname $CC`
> perl -pi -e "s,/opt/SUNWspro/bin,${cc_dir},g" \
>     Xvnc/config/cf/sun.cf
> 
> export CC_include=`find $cc_dir/.. -name "CC"|grep include|head -1`
> perl -pi -e "s,/opt/SUNWspro/SC3.0/include/CC,${CC_include},g" \
>     Xvnc/config/cf/sun.cf
> 
> 
> export PATH=/usr/openwin/bin:${PATH}
> export LDFLAGS="%{_ldflags}"
> export CFLAGS="%optflags"
> xmkmf
> make World
> cd Xvnc
> ./configure 
> # parallel build fails sometimes
> make
> 
> %install
> mkdir -p $RPM_BUILD_ROOT%{_bindir}
> mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
> ./vncinstall $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}
> 
> # delete the viewer bits -- this package only includes the server
> # -f needed because the files are read-only
> rm -f $RPM_BUILD_ROOT%{_bindir}/vncviewer
> rm -f $RPM_BUILD_ROOT%{_mandir}/man1/vncviewer.1
> 
> %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c 
> "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date 
> +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
> 
> %clean
> rm -rf $RPM_BUILD_ROOT
> 
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_bindir}
> %{_bindir}/vncconnect
> %{_bindir}/vncpasswd
> %{_bindir}/vncserver
> %{_bindir}/Xvnc
> %dir %attr (0755, root, sys) %{_datadir}
> %dir %attr(0755, root, bin) %{_mandir}
> %dir %attr(0755, root, bin) %{_mandir}/man1
> %{_mandir}/man1/*
> 
> %changelog
> * Mon Jun 11 2007 - laca at sun.com
> - copy from SFE, rename from SFEtightvnc to SUNWvncserver and delete
>   the viewer from the package
> * Thu Mar 22 2007 - nonsea at users.sourceforge.net
> - Add Requires/BuildRequries after check-deps.pl run.
> * Mon Mar 05 2007 - nonsea at users.sourceforge.net
> - Bump to 1.3.8.
> * Mon Jan 22 2007 - daymobrew at users.sourceforge.net
> - Add -n so that the viewer pkg is SFEvncviewer not SFEtightvnc-SFEvncviewer.
> * Fri Jan 19 2007 - daymobrew at users.sourceforge.net
> - Use $CC instead of `which cc`. Remove '-j $CPUS' from 'make' call as it
>   breaks the build.
> * Thu Jan 18 2007 - halton.huo at sun.com
> - Make it can be built when SunStudio is not installed under /opt/SUNWspro
> - Fix build and install error
> - Add package SFEvncviewer
> * Fri Jan 12 2007 - daymobrew at users.sourceforge.net
> - Initial spec
> 
> 
> 
> ------------------------------------------------------------------------
> 
> #
> # spec file for package SUNWvncviewer
> #
> # includes module(s): realvnc (viewer only)
> #
> # Copyright 2007 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: laca
> #
> %include Solaris.inc
> 
> Name:                    SUNWvncviewer
> Summary:                 VNC - remote control software - viewer (realvnc)
> Version:                 4.1.2
> %define tarball_version  4_1_2
> # download the source manually from 
> http://www.realvnc.com/cgi-bin/download.cgi
> Source:                  vnc-%{tarball_version}-unixsrc.tar.gz
> SUNW_BaseDir:            %{_basedir}
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
> %include default-depend.inc
> Requires: SUNWxwplt
> Requires: SUNWzlib
> Requires: SUNWjpg
> Requires: SUNWlibmsr
> 
> %prep
> %setup -q -n vnc-%{tarball_version}-unixsrc
> 
> %build
> CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
> if test "x$CPUS" = "x" -o $CPUS = 0; then
>     CPUS=1
> fi
> 
> export CFLAGS="%optflags"
> export LDFLAGS="%_ldflags"
> cd unix
> ./configure \
>     --prefix=%{_prefix} \
>     --with-installed-zlib \
>     --with-x
> make -j $CPUS
> 
> %install
> rm -rf $RPM_BUILD_ROOT
> cd unix
> mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}/man1
> ./vncinstall $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}
> # delete the vncserver bits -- this package only delivers the viewer
> # -f needed because files are read-only
> rm -f $RPM_BUILD_ROOT%{_bindir}/vncpasswd
> rm -f $RPM_BUILD_ROOT%{_bindir}/vncserver
> rm -f $RPM_BUILD_ROOT%{_bindir}/vncconfig
> rm -f $RPM_BUILD_ROOT%{_bindir}/x0vncserver
> rm -f $RPM_BUILD_ROOT%{_mandir}/man1/vncconfig.1
> rm -f $RPM_BUILD_ROOT%{_mandir}/man1/vncserver.1
> rm -f $RPM_BUILD_ROOT%{_mandir}/man1/vncpasswd.1
> rm -f $RPM_BUILD_ROOT%{_mandir}/man1/x0vncserver.1
> 
> %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c 
> "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date 
> +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
> 
> %clean
> rm -rf $RPM_BUILD_ROOT
> 
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_bindir}
> %{_bindir}/vncviewer
> %dir %attr (0755, root, sys) %{_datadir}
> %dir %attr(0755, root, bin) %{_mandir}
> %dir %attr(0755, root, bin) %{_mandir}/man1
> %{_mandir}/man1/*
> 
> %changelog
> * Sun Jun 10 2007 - laca at sun.com
> - Initial spec

Reply via email to