rc.spec 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ##
  2. ## rc.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: rc
  26. Summary: The Plan9 Shell
  27. URL: http://www.star.le.ac.uk/~tjg/rc/
  28. Vendor: Byron Rakitzis
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: Converter
  32. License: GPL
  33. Version: 1.6c4
  34. Release: 20011121.0
  35. # list of sources
  36. Source0: http://www.star.le.ac.uk/~tjg/rc/beta/rc-%{version}.tar.gz
  37. Source1: http://www.star.le.ac.uk/~tjg/rc/misc/vrl-1.3.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 0.9-20011025.0
  42. PreReq: OpenPKG, openpkg >= 0.9-20011025.0
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. This is a reimplementation for Unix, by Byron Rakitzis, of the Plan
  47. 9 shell. rc offers much the same capabilities as a traditional
  48. Bourne shell, but with a much cleaner syntax.
  49. %prep
  50. %setup0 -q -c -a 0
  51. %setup1 -q -T -D -a 1
  52. %build
  53. ( cd vrl-1.3
  54. CC="%{l_cc}" \
  55. CFLAGS="%{l_cflags -O}" \
  56. ./configure \
  57. --prefix=%{l_prefix}
  58. %{l_make} %{l_mflags -O}
  59. )
  60. ( cd rc-%{version}
  61. CC="%{l_cc}" \
  62. CFLAGS="%{l_cflags -O} -I`pwd`/../vrl-1.3" \
  63. LDFLAGS="-L`pwd`/../vrl-1.3" \
  64. ./configure \
  65. --prefix=%{l_prefix} \
  66. --with-vrl
  67. %{l_make} %{l_mflags -O}
  68. )
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. ( cd rc-%{version}
  72. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  73. )
  74. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT