tomcat4-adapter.spec 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ##
  2. ## tomcat-adapter4.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 information
  26. Name: tomcat4-adapter
  27. Summary: Apache Jakarta Tomcat Webserver Adapter
  28. URL: http://jakarta.apache.org/
  29. Vendor: Apache Software Foundation
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: Web
  33. License: Apache Software License 1.1
  34. Version: 4.1.18
  35. Release: 20030114
  36. # list of sources
  37. Source0: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v%{version}/src/jakarta-tomcat-connectors-%{version}-src.tar.gz
  38. Source1: tomcat4-adapter.conf
  39. Patch0: tomcat4-adapter.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20020206, apr, autoconf, libtool, gcc
  44. PreReq: OpenPKG, openpkg >= 20020206
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. Apache Jakarta Tomcat Webserver Adapter %{version} is a glue code
  49. between the Apache webserver and Tomcat.
  50. %prep
  51. %setup -q -n jakarta-tomcat-connectors-%{version}-src
  52. %patch0 -p0
  53. %build
  54. # create installation tree
  55. cd webapp
  56. ./support/buildconf.sh
  57. ./configure \
  58. --prefix=%{l_prefix} \
  59. --disable-java \
  60. --without-ant \
  61. --with-apr=%{l_prefix}
  62. %{l_make} %{l_mflags -O}
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. # create installation tree
  66. %{l_shtool} mkdir -f -p -m 755 \
  67. $RPM_BUILD_ROOT%{l_prefix}/etc/tomcat4-adapter \
  68. $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat4-adapter \
  69. $RPM_BUILD_ROOT%{l_prefix}/var/tomcat4-adapter
  70. # install config
  71. %{l_shtool} install -c -m 644 \
  72. -e 's;@l_prefix@;%{l_prefix};g' \
  73. %{SOURCE tomcat4-adapter.conf} \
  74. $RPM_BUILD_ROOT%{l_prefix}/etc/tomcat4-adapter/
  75. # install DSO
  76. %{l_shtool} install -c -m 755 \
  77. webapp/build/mod_webapp.so \
  78. $RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat4-adapter
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT