diff -r 333964c621f1 -r cb59d6afeb61 tightvnc/tightvnc.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tightvnc/tightvnc.spec Tue Jan 06 23:40:39 2009 +0100 @@ -0,0 +1,101 @@ +## +## tightvnc.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. +## +## 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: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: XWindow +License: GPL +Version: 1.3.9 +Release: 20080101 + +# list of sources +Source0: http://switch.dl.sourceforge.net/vnc-tight/tightvnc-%{version}_unixsrc.tar.bz2 + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130, X11, make, gcc +PreReq: OpenPKG, openpkg >= 20040130, 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. + +%track + prog tightvnc = { + version = %{version} + url = http://prdownloads.sourceforge.net/vnc-tight/ + regex = tightvnc-(__VER__)_unixsrc\.tar\.bz2 + } + +%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_rc} --query x11_bindir`" + x11config=`%{l_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 +