iozone.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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: ?
  31. Packager: The OpenPKG Project
  32. Distribution: OpenPKG [EXP]
  33. Group: Benchmark
  34. License: ?
  35. Version: %{V_logic}
  36. Release: 2
  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, openssl
  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. cd src/current
  54. platform="generic"
  55. case "%{l_target}" in
  56. *-freebsd* ) platform="freebsd" ;;
  57. *-linux* ) platform="linux" ;;
  58. *-solaris* ) platform="solaris" ;;
  59. esac
  60. %{l_make} %{l_mflags -O} \
  61. CC="%{l_cc}" CFLAGS="%{l_cflags -O}" \
  62. $platform
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/bin \
  67. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  68. %{l_shtool} install -c -s -m 755 \
  69. src/current/iozone $RPM_BUILD_ROOT%{l_prefix}/bin/
  70. %{l_shtool} install -c -m 644 \
  71. docs/iozone.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  72. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  73. %files -f files
  74. %clean
  75. rm -rf $RPM_BUILD_ROOT