rdesktop.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## rdesktop.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.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. %define V_major 1.1.0
  26. %define V_patch_here 19.8.4
  27. %define V_patch_real 19-8-4
  28. # package information
  29. Name: rdesktop
  30. Summary: Windows 2000 and Terminal Services RDP client.
  31. URL: http://www.rdesktop.org/
  32. Vendor: Matt Chapman
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EXP]
  35. Group: Terminal
  36. License: GPL
  37. Version: %{V_major}.%{V_patch_here}
  38. Release: 20020306
  39. # list of sources
  40. Source0: http://prdownloads.sourceforge.net/rdesktop/rdesktop-%{V_major}.tar.gz
  41. Patch0: http://bibl4.oru.se/projects/rdesktop/rdesktop-unified-patch%{V_patch_real}.bz2
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20020206, make, gcc, X11
  46. PreReq: OpenPKG, openpkg >= 20020206, X11
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. rdesktop is an open source client for Windows NT Terminal Server and
  51. Windows 2000 Terminal Services, capable of natively speaking Remote
  52. Desktop Protocol (RDP) in order to present the user's NT desktop.
  53. Unlike Citrix ICA, no server extensions are required.
  54. %prep
  55. %setup -q -n rdesktop-%{V_major}
  56. %patch -p2
  57. %build
  58. CC="%{l_cc}" \
  59. CFLAGS="%{l_cflags -O}" \
  60. ./configure \
  61. --prefix=$RPM_BUILD_ROOT%{l_prefix} \
  62. --with-openssl=%{l_prefix} \
  63. --with-ssl-includes=%{l_prefix}/include/openssl \
  64. --with-ssl-libs=%{l_prefix}/lib \
  65. --with-gui=xwin \
  66. --with-gui-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  67. --with-gui-libs=`%{l_prefix}/etc/rc --query x11_libdir`
  68. %{l_make} %{l_mflags} all
  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. %{l_shtool} install -c -s -m 755 \
  75. rdesktop $RPM_BUILD_ROOT%{l_prefix}/bin/
  76. %{l_shtool} install -c -m 644 \
  77. rdesktop.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  79. %files -f files
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT