strace.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##
  2. ## strace.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. %define V_major 4.4
  25. %define V_minor 1
  26. # package information
  27. Name: strace
  28. Summary: System Call Tracing
  29. URL: http://www.liacs.nl/~wichert/strace/
  30. Vendor: Rick Sladkey
  31. Packager: The OpenPKG Project
  32. Distribution: OpenPKG [EXP]
  33. Group: Development
  34. License: GPL
  35. Version: %{V_major}
  36. Release: 20011124.0
  37. # list of sources
  38. Source0: http://prdownloads.sourceforge.net/strace/strace_%{V_major}-%{V_minor}.tar.gz
  39. Patch0: strace-%{V_major}.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 0.9-20011025.0
  44. PreReq: OpenPKG, openpkg >= 0.9-20011025.0
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. Strace is a system call trace, i.e. a debugging tool which
  49. prints out a trace of all the system calls made by a another
  50. process/program. The program to be traced need not be recompiled for
  51. this, so you can use it on binaries for which you don't have source.
  52. System calls and signals are events that happen at the user/kernel
  53. interface. A close examination of this boundary is very useful
  54. for bug isolation, sanity checking and attempting to capture race
  55. conditions
  56. %prep
  57. %setup -q -n strace-%{V_major}
  58. %patch -p0
  59. %build
  60. CC="%{l_cc}" \
  61. CFLAGS="%{l_cflags -O}" \
  62. ./configure \
  63. --prefix=%{l_prefix} \
  64. --disable-nls
  65. %{l_make} %{l_mflags -O}
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/bin \
  70. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  71. %{l_make} %{l_mflags} install \
  72. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  73. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  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