strace.spec 3.1 KB

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