tightvnc.spec 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## tightvnc.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: tightvnc
  27. Summary: Enhanced Virtual Network Computing (VNC)
  28. URL: http://www.tightvnc.org/
  29. Vendor: Constantin Kaplinsky
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: XWindow
  33. License: GPL
  34. Version: 1.2.9
  35. Release: 20030801
  36. # list of sources
  37. Source0: http://osdn.dl.sourceforge.net/vnc-tight/tightvnc-%{version}_unixsrc.tar.bz2
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20030103, X11, make, gcc
  42. PreReq: OpenPKG, openpkg >= 20030103, X11
  43. BuildPreReq: zlib, jpeg
  44. PreReq: zlib, jpeg
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. TightVNC is a free remote control package derived from the popular
  49. Virtual Network Computing (VNC) software. With TightVNC, you can see
  50. the desktop of a remote machine and control it with your local mouse
  51. and keyboard, just like you would do it sitting in the front of that
  52. computer. This packages provides the VNC client only.
  53. %prep
  54. %setup -q -n vnc_unixsrc
  55. %build
  56. %{l_shtool} subst \
  57. -e 's;^\(ZLIB_INC =\).*;\1 %{l_cppflags};' \
  58. -e 's;^\(ZLIB_LIB =\).*;\1 %{l_ldflags} -lz;' \
  59. -e 's;^\(JPEG_INC =\).*;\1 %{l_cppflags};' \
  60. -e 's;^\(JPEG_LIB =\).*;\1 %{l_ldflags} -ljpeg;' \
  61. -e 's;-I/usr/include;;' \
  62. vncviewer/Imakefile
  63. PATH="$PATH:`%{l_prefix}/etc/rc --query x11_bindir`"
  64. x11config=`%{l_prefix}/etc/rc --query x11_libdir`/X11/config
  65. imake -DHasGcc2 -UHasSunC -DUseInstalled -I$x11config
  66. %{l_make} Makefiles IMAKE_DEFINES="-DHasGcc2 -UHasSunC"
  67. %{l_make} includes
  68. %{l_make}
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. %{l_shtool} mkdir -f -p -m 755 \
  72. $RPM_BUILD_ROOT%{l_prefix}/bin \
  73. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  74. for f in vncviewer vncpasswd; do
  75. %{l_shtool} install -c -m 755 \
  76. $f/$f $RPM_BUILD_ROOT%{l_prefix}/bin/$f
  77. %{l_shtool} install -c -m 644 \
  78. $f/$f.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/$f.1
  79. done
  80. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT