tightvnc/tightvnc.spec

changeset 13
cb59d6afeb61
child 15
0b0ffb65d705
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tightvnc/tightvnc.spec	Tue Jan 06 23:40:39 2009 +0100
     1.3 @@ -0,0 +1,101 @@
     1.4 +##
     1.5 +##  tightvnc.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package information
    1.28 +Name:         tightvnc
    1.29 +Summary:      Enhanced Virtual Network Computing (VNC)
    1.30 +URL:          http://www.tightvnc.org/
    1.31 +Vendor:       Constantin Kaplinsky
    1.32 +Packager:     OpenPKG Foundation e.V.
    1.33 +Distribution: OpenPKG Community
    1.34 +Class:        EVAL
    1.35 +Group:        XWindow
    1.36 +License:      GPL
    1.37 +Version:      1.3.9
    1.38 +Release:      20080101
    1.39 +
    1.40 +#   list of sources
    1.41 +Source0:      http://switch.dl.sourceforge.net/vnc-tight/tightvnc-%{version}_unixsrc.tar.bz2
    1.42 +
    1.43 +#   build information
    1.44 +Prefix:       %{l_prefix}
    1.45 +BuildRoot:    %{l_buildroot}
    1.46 +BuildPreReq:  OpenPKG, openpkg >= 20040130, X11, make, gcc
    1.47 +PreReq:       OpenPKG, openpkg >= 20040130, X11
    1.48 +BuildPreReq:  zlib, jpeg
    1.49 +PreReq:       zlib, jpeg
    1.50 +AutoReq:      no
    1.51 +AutoReqProv:  no
    1.52 +
    1.53 +%description
    1.54 +    TightVNC is a free remote control package derived from the popular
    1.55 +    Virtual Network Computing (VNC) software. With TightVNC, you can see
    1.56 +    the desktop of a remote machine and control it with your local mouse
    1.57 +    and keyboard, just like you would do it sitting in the front of that
    1.58 +    computer. This packages provides the VNC client only.
    1.59 +
    1.60 +%track
    1.61 +    prog tightvnc = {
    1.62 +        version   = %{version}
    1.63 +        url       = http://prdownloads.sourceforge.net/vnc-tight/
    1.64 +        regex     = tightvnc-(__VER__)_unixsrc\.tar\.bz2
    1.65 +    }
    1.66 +
    1.67 +%prep
    1.68 +    %setup -q -n vnc_unixsrc
    1.69 +
    1.70 +%build
    1.71 +    %{l_shtool} subst \
    1.72 +        -e 's;^\(ZLIB_INC =\).*;\1 %{l_cppflags};' \
    1.73 +        -e 's;^\(ZLIB_LIB =\).*;\1 %{l_ldflags} -lz;' \
    1.74 +        -e 's;^\(JPEG_INC =\).*;\1 %{l_cppflags};' \
    1.75 +        -e 's;^\(JPEG_LIB =\).*;\1 %{l_ldflags} -ljpeg;' \
    1.76 +        -e 's;-I/usr/include;;' \
    1.77 +        vncviewer/Imakefile
    1.78 +    rm -f Makefile */Makefile
    1.79 +    PATH="$PATH:`%{l_rc} --query x11_bindir`"
    1.80 +    x11config=`%{l_rc} --query x11_libdir`/X11/config
    1.81 +    imake -DHasGcc2 -UHasSunC -DUseInstalled -I$x11config
    1.82 +    %{l_make} Makefiles IMAKE_DEFINES="-DHasGcc2 -UHasSunC"
    1.83 +    %{l_make} includes
    1.84 +    %{l_make} all CC="%{l_cc}"
    1.85 +
    1.86 +%install
    1.87 +    rm -rf $RPM_BUILD_ROOT
    1.88 +    %{l_shtool} mkdir -f -p -m 755 \
    1.89 +        $RPM_BUILD_ROOT%{l_prefix}/bin \
    1.90 +        $RPM_BUILD_ROOT%{l_prefix}/man/man1
    1.91 +    for f in vncviewer vncpasswd; do
    1.92 +        %{l_shtool} install -c -m 755 \
    1.93 +            $f/$f $RPM_BUILD_ROOT%{l_prefix}/bin/$f
    1.94 +        %{l_shtool} install -c -m 644 \
    1.95 +            $f/$f.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/$f.1
    1.96 +    done
    1.97 +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    1.98 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.99 +
   1.100 +%files -f files
   1.101 +
   1.102 +%clean
   1.103 +    rm -rf $RPM_BUILD_ROOT
   1.104 +

mercurial