Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

95 строки
3.5 KiB

##
## tightvnc.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package information
Name: tightvnc
Summary: Enhanced Virtual Network Computing (VNC)
URL: http://www.tightvnc.org/
Vendor: Constantin Kaplinsky
Packager: The OpenPKG Project
Distribution: OpenPKG [EVAL]
Group: XWindow
License: GPL
Version: 1.2.9
Release: 20030814
# list of sources
Source0: http://osdn.dl.sourceforge.net/vnc-tight/tightvnc-%{version}_unixsrc.tar.bz2
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20030103, X11, make, gcc
PreReq: OpenPKG, openpkg >= 20030103, X11
BuildPreReq: zlib, jpeg
PreReq: zlib, jpeg
AutoReq: no
AutoReqProv: no
%description
TightVNC is a free remote control package derived from the popular
Virtual Network Computing (VNC) software. With TightVNC, you can see
the desktop of a remote machine and control it with your local mouse
and keyboard, just like you would do it sitting in the front of that
computer. This packages provides the VNC client only.
%prep
%setup -q -n vnc_unixsrc
%build
%{l_shtool} subst \
-e 's;^\(ZLIB_INC =\).*;\1 %{l_cppflags};' \
-e 's;^\(ZLIB_LIB =\).*;\1 %{l_ldflags} -lz;' \
-e 's;^\(JPEG_INC =\).*;\1 %{l_cppflags};' \
-e 's;^\(JPEG_LIB =\).*;\1 %{l_ldflags} -ljpeg;' \
-e 's;-I/usr/include;;' \
vncviewer/Imakefile
rm -f Makefile */Makefile
PATH="$PATH:`%{l_prefix}/etc/rc --query x11_bindir`"
x11config=`%{l_prefix}/etc/rc --query x11_libdir`/X11/config
imake -DHasGcc2 -UHasSunC -DUseInstalled -I$x11config
%{l_make} Makefiles IMAKE_DEFINES="-DHasGcc2 -UHasSunC"
%{l_make} includes
%{l_make} all CC="%{l_cc}"
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/man/man1
for f in vncviewer vncpasswd; do
%{l_shtool} install -c -m 755 \
$f/$f $RPM_BUILD_ROOT%{l_prefix}/bin/$f
%{l_shtool} install -c -m 644 \
$f/$f.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/$f.1
done
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT