strace.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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: %{l_branch}.0
  37. # list of sources
  38. Source0: http://prdownloads.sourceforge.net/strace/strace_%{V_major}-%{V_minor}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 0.9-33
  43. PreReq: OpenPKG, openpkg >= 0.9-33
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Strace is a system call trace, i.e. a debugging tool which
  48. prints out a trace of all the system calls made by a another
  49. process/program. The program to be traced need not be recompiled for
  50. this, so you can use it on binaries for which you don't have source.
  51. System calls and signals are events that happen at the user/kernel
  52. interface. A close examination of this boundary is very useful
  53. for bug isolation, sanity checking and attempting to capture race
  54. conditions
  55. %prep
  56. %setup -q -n strace-%{V_major}
  57. %build
  58. CC="%{l_cc}" \
  59. CFLAGS="%{l_cflags -O}" \
  60. ./configure \
  61. --prefix=%{l_prefix} \
  62. --disable-nls
  63. %{l_make} %{l_mflags -O}
  64. %install
  65. rm -rf $RPM_BUILD_ROOT
  66. %{l_shtool} mkdir -f -p -m 755 \
  67. $RPM_BUILD_ROOT%{l_prefix}/bin \
  68. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  69. %{l_make} %{l_mflags} install \
  70. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  71. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  72. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  73. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  74. %files -f files
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT