iozone.spec 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ##
  2. ## iozone.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_logic 3.53
  25. %define V_real 3_53
  26. # package information
  27. Name: iozone
  28. Summary: Filesystem Benchmark
  29. URL: http://www.iozone.org/
  30. Vendor: William D. Norcott
  31. Packager: The OpenPKG Project
  32. Distribution: OpenPKG [EXP]
  33. Group: Benchmark
  34. License: Open Source
  35. Version: %{V_logic}
  36. Release: %{l_branch}.0
  37. # list of sources
  38. Source0: http://www.iozone.org/src/current/iozone%{V_real}.tar
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 0.9-33, gcc, make
  43. PreReq: OpenPKG, openpkg >= 0.9-33
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. IOzone is a filesystem benchmark tool. The benchmark generates and
  48. measures a variety of file operations. Iozone has been ported to
  49. many machines and runs under many operating systems.
  50. %prep
  51. %setup -q -c
  52. %build
  53. PATH="%{l_prefix}/bin:$PATH"; export PATH
  54. cd src/current
  55. platform="generic"
  56. case "%{l_target}" in
  57. *-freebsd* ) platform="freebsd" ;;
  58. *-linux* ) platform="linux" ;;
  59. *-solaris* ) platform="Solaris" ;;
  60. esac
  61. %{l_make} %{l_mflags} \
  62. CC="%{l_cc}" CFLAGS="%{l_cflags -O}" \
  63. $platform
  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_shtool} install -c -s -m 755 \
  70. src/current/iozone $RPM_BUILD_ROOT%{l_prefix}/bin/
  71. %{l_shtool} install -c -m 644 \
  72. docs/iozone.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  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