webalizer.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ##
  2. ## webalizer.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 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. # package version
  26. %define V_real 2.01-10
  27. %define V_here 2.01.10
  28. # package information
  29. Name: webalizer
  30. Summary: Graphical Web Statistics Program
  31. URL: http://www.mrunix.net/webalizer/
  32. Vendor: Bradford L. Barrett
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EVAL]
  35. Group: Web
  36. License: GPL
  37. Version: %{V_here}
  38. Release: 20021022
  39. # list of sources
  40. Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20020206, gd, png, zlib, db >= 4.1.24
  45. PreReq: OpenPKG, openpkg >= 20020206
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. The Webalizer is a fast, free web server log file analysis program.
  50. It produces highly detailed, easily configurable usage reports in
  51. HTML format, for viewing with a standard web browser.
  52. %options
  53. %prep
  54. %setup -q -n webalizer-%{V_real}
  55. %build
  56. CC="%{l_cc}" \
  57. CFLAGS="%{l_cflags -O}" \
  58. ./configure \
  59. --prefix=%{l_prefix} \
  60. --with-etcdir=%{l_prefix}/etc/webalizer \
  61. --with-gdlib=%{l_prefix}/lib \
  62. --with-gd=%{l_prefix}/include \
  63. --with-z-inc=%{l_prefix}/include \
  64. --with-zlib=%{l_prefix}/lib \
  65. --with-png-inc=%{l_prefix}/include \
  66. --with-png=%{l_prefix}/lib \
  67. --with-db=%{l_prefix}/include \
  68. --with-dblib=%{l_prefix}/lib
  69. %{l_make} %{l_mflags -O}
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. %{l_shtool} mkdir -f -p -m 755 \
  73. $RPM_BUILD_ROOT%{l_prefix}/bin \
  74. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  75. $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer
  76. %{l_shtool} install -c -s -m 755 \
  77. webalizer $RPM_BUILD_ROOT%{l_prefix}/bin/
  78. %{l_shtool} install -c -m 644 \
  79. webalizer.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  80. %{l_shtool} install -c -m 644 \
  81. sample.conf $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer/webalizer.conf
  82. ln $RPM_BUILD_ROOT%{l_prefix}/bin/webalizer \
  83. $RPM_BUILD_ROOT%{l_prefix}/bin/webazolver
  84. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT