commons.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. ##
  2. ## commons.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://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. # package version
  25. %define V_beanutils 1.7.0
  26. %define V_cli 1.1
  27. %define V_collections 3.2
  28. %define V_configuration 1.4
  29. %define V_httpclient 3.1
  30. %define V_io 1.3.2
  31. %define V_lang 2.3
  32. %define V_launcher 1.1
  33. %define V_logging 1.1
  34. %define V_net 1.4.1
  35. # package information
  36. Name: commons
  37. Summary: Apache Java Commons Libraries
  38. URL: http://commons.apache.org/
  39. Vendor: Apache Software Foundation
  40. Packager: OpenPKG Foundation e.V.
  41. Distribution: OpenPKG Community
  42. Class: EVAL
  43. Group: Libraries
  44. License: Apache
  45. Version: 0
  46. Release: 20071119
  47. # list of sources
  48. Source0: http://www.apache.org/dist/commons/beanutils/binaries/commons-beanutils-%{V_beanutils}.tar.gz
  49. Source1: http://www.apache.org/dist/commons/cli/binaries/commons-cli-%{V_cli}.tar.gz
  50. Source2: http://www.apache.org/dist/commons/collections/binaries/commons-collections-%{V_collections}.tar.gz
  51. Source3: http://www.apache.org/dist/commons/configuration/binaries/commons-configuration-%{V_configuration}.tar.gz
  52. Source4: http://www.apache.org/dist/jakarta/httpcomponents/commons-httpclient-3.x/binary/commons-httpclient-%{V_httpclient}.tar.gz
  53. Source5: http://www.apache.org/dist/commons/io/binaries/commons-io-%{V_io}-bin.tar.gz
  54. Source6: http://www.apache.org/dist/commons/lang/binaries/commons-lang-%{V_lang}.tar.gz
  55. Source7: http://www.apache.org/dist/commons/launcher/binaries/commons-launcher-%{V_launcher}.tar.gz
  56. Source8: http://www.apache.org/dist/commons/logging/binaries/commons-logging-%{V_logging}.tar.gz
  57. Source9: http://www.apache.org/dist/commons/net/binaries/commons-net-%{V_net}.tar.gz
  58. # build information
  59. Prefix: %{l_prefix}
  60. BuildRoot: %{l_buildroot}
  61. BuildPreReq: OpenPKG, openpkg >= 20060823
  62. PreReq: OpenPKG, openpkg >= 20060823
  63. AutoReq: no
  64. AutoReqProv: no
  65. %description
  66. Apache Commons is a set of Java utility libraries.
  67. %track
  68. prog commons:beanutils = {
  69. version = %{V_beanutils}
  70. url = http://www.apache.org/dist/commons/beanutils/binaries/
  71. regex = commons-beanutils-(\d+\.\d+\.\d+)\.tar\.gz
  72. }
  73. prog commons:cli = {
  74. version = %{V_cli}
  75. url = http://www.apache.org/dist/commons/cli/binaries/
  76. regex = commons-cli-(__VER__)\.tar\.gz
  77. }
  78. prog commons:collections = {
  79. version = %{V_collections}
  80. url = http://www.apache.org/dist/commons/collections/binaries/
  81. regex = commons-collections-(__VER__)\.tar\.gz
  82. }
  83. prog commons:configuration = {
  84. version = %{V_configuration}
  85. url = http://www.apache.org/dist/commons/configuration/binaries/
  86. regex = commons-configuration-(__VER__)\.tar\.gz
  87. }
  88. prog commons:httpclient = {
  89. version = %{V_httpclient}
  90. url = http://www.apache.org/dist/jakarta/httpcomponents/commons-httpclient-3.x/binary/
  91. regex = commons-httpclient-(__VER__)\.tar\.gz
  92. }
  93. prog commons:io = {
  94. version = %{V_io}
  95. url = http://www.apache.org/dist/commons/io/binaries/
  96. regex = commons-io-(__VER__)-bin\.tar\.gz
  97. }
  98. prog commons:lang = {
  99. version = %{V_lang}
  100. url = http://www.apache.org/dist/commons/lang/binaries/
  101. regex = commons-lang-(__VER__)\.tar\.gz
  102. }
  103. prog commons:launcher = {
  104. version = %{V_launcher}
  105. url = http://www.apache.org/dist/commons/launcher/binaries/
  106. regex = commons-launcher-(__VER__)\.tar\.gz
  107. }
  108. prog commons:logging = {
  109. version = %{V_logging}
  110. url = http://www.apache.org/dist/commons/logging/binaries/
  111. regex = commons-logging-(__VER__)\.tar\.gz
  112. }
  113. prog commons:net = {
  114. version = %{V_net}
  115. url = http://www.apache.org/dist/commons/net/binaries/
  116. regex = commons-net-(__VER__)\.tar\.gz
  117. }
  118. %prep
  119. %setup -q -c
  120. %setup -q -T -D -a 1
  121. %setup -q -T -D -a 2
  122. %setup -q -T -D -a 3
  123. %setup -q -T -D -a 4
  124. %setup -q -T -D -a 5
  125. %setup -q -T -D -a 6
  126. %setup -q -T -D -a 7
  127. %setup -q -T -D -a 8
  128. %setup -q -T -D -a 9
  129. %build
  130. %install
  131. rm -rf $RPM_BUILD_ROOT
  132. %{l_shtool} mkdir -f -p -m 755 \
  133. $RPM_BUILD_ROOT%{l_prefix}/lib/commons
  134. %{l_shtool} install -c -m 644 \
  135. commons-*/commons-*.jar \
  136. commons-*/*/commons-*.jar \
  137. $RPM_BUILD_ROOT%{l_prefix}/lib/commons/
  138. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  139. %files -f files
  140. %clean
  141. rm -rf $RPM_BUILD_ROOT