commons.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ##
  2. ## commons.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package version
  24. %define V_beanutils 1.8.0
  25. %define V_cli 1.1
  26. %define V_collections 3.2
  27. %define V_configuration 1.5
  28. %define V_httpclient 3.1
  29. %define V_io 1.4
  30. %define V_lang 2.3
  31. %define V_launcher 1.1
  32. %define V_logging 1.1
  33. %define V_net 2.0
  34. # package information
  35. Name: commons
  36. Summary: Apache Java Commons Libraries
  37. URL: http://commons.apache.org/
  38. Vendor: Apache Software Foundation
  39. Packager: OpenPKG Foundation e.V.
  40. Distribution: OpenPKG Community
  41. Class: EVAL
  42. Group: Libraries
  43. License: Apache
  44. Version: 0
  45. Release: 20081129
  46. # list of sources
  47. Source0: http://www.apache.org/dist/commons/beanutils/binaries/commons-beanutils-%{V_beanutils}-bin.tar.gz
  48. Source1: http://www.apache.org/dist/commons/cli/binaries/commons-cli-%{V_cli}.tar.gz
  49. Source2: http://www.apache.org/dist/commons/collections/binaries/commons-collections-%{V_collections}.tar.gz
  50. Source3: http://www.apache.org/dist/commons/configuration/binaries/commons-configuration-%{V_configuration}.tar.gz
  51. Source4: http://www.apache.org/dist/httpcomponents/commons-httpclient/binary/commons-httpclient-%{V_httpclient}.tar.gz
  52. Source5: http://www.apache.org/dist/commons/io/binaries/commons-io-%{V_io}-bin.tar.gz
  53. Source6: http://www.apache.org/dist/commons/lang/binaries/commons-lang-%{V_lang}.tar.gz
  54. Source7: http://www.apache.org/dist/commons/launcher/binaries/commons-launcher-%{V_launcher}.tar.gz
  55. Source8: http://www.apache.org/dist/commons/logging/binaries/commons-logging-%{V_logging}.tar.gz
  56. Source9: http://www.apache.org/dist/commons/net/binaries/commons-net-%{V_net}-bin.tar.gz
  57. # build information
  58. Prefix: %{l_prefix}
  59. BuildRoot: %{l_buildroot}
  60. BuildPreReq: OpenPKG, openpkg >= 20060823
  61. PreReq: OpenPKG, openpkg >= 20060823
  62. AutoReq: no
  63. AutoReqProv: no
  64. %description
  65. Apache Commons is a set of Java utility libraries.
  66. %track
  67. prog commons:beanutils = {
  68. version = %{V_beanutils}
  69. url = http://www.apache.org/dist/commons/beanutils/binaries/
  70. regex = commons-beanutils-(\d+\.\d+\.\d+)-bin\.tar\.gz
  71. }
  72. prog commons:cli = {
  73. version = %{V_cli}
  74. url = http://www.apache.org/dist/commons/cli/binaries/
  75. regex = commons-cli-(__VER__)\.tar\.gz
  76. }
  77. prog commons:collections = {
  78. version = %{V_collections}
  79. url = http://www.apache.org/dist/commons/collections/binaries/
  80. regex = commons-collections-(__VER__)-bin\.tar\.gz
  81. }
  82. prog commons:configuration = {
  83. version = %{V_configuration}
  84. url = http://www.apache.org/dist/commons/configuration/binaries/
  85. regex = commons-configuration-(__VER__)\.tar\.gz
  86. }
  87. prog commons:httpclient = {
  88. version = %{V_httpclient}
  89. url = http://www.apache.org/dist/httpcomponents/commons-httpclient/binary/
  90. regex = commons-httpclient-(__VER__)\.tar\.gz
  91. }
  92. prog commons:io = {
  93. version = %{V_io}
  94. url = http://www.apache.org/dist/commons/io/binaries/
  95. regex = commons-io-(__VER__)-bin\.tar\.gz
  96. }
  97. prog commons:lang = {
  98. version = %{V_lang}
  99. url = http://www.apache.org/dist/commons/lang/binaries/
  100. regex = commons-lang-(__VER__)-bin\.tar\.gz
  101. }
  102. prog commons:launcher = {
  103. version = %{V_launcher}
  104. url = http://www.apache.org/dist/commons/launcher/binaries/
  105. regex = commons-launcher-(__VER__)\.tar\.gz
  106. }
  107. prog commons:logging = {
  108. version = %{V_logging}
  109. url = http://www.apache.org/dist/commons/logging/binaries/
  110. regex = commons-logging-(__VER__)-bin\.tar\.gz
  111. }
  112. prog commons:net = {
  113. version = %{V_net}
  114. url = http://www.apache.org/dist/commons/net/binaries/
  115. regex = commons-net-(__VER__)\.tar\.gz
  116. }
  117. %prep
  118. %setup -q -c
  119. %setup -q -T -D -a 1
  120. %setup -q -T -D -a 2
  121. %setup -q -T -D -a 3
  122. %setup -q -T -D -a 4
  123. %setup -q -T -D -a 5
  124. %setup -q -T -D -a 6
  125. %setup -q -T -D -a 7
  126. %setup -q -T -D -a 8
  127. %setup -q -T -D -a 9
  128. %build
  129. %install
  130. rm -rf $RPM_BUILD_ROOT
  131. %{l_shtool} mkdir -f -p -m 755 \
  132. $RPM_BUILD_ROOT%{l_prefix}/lib/commons
  133. %{l_shtool} install -c -m 644 \
  134. commons-*/commons-*.jar \
  135. commons-*/*/commons-*.jar \
  136. $RPM_BUILD_ROOT%{l_prefix}/lib/commons/
  137. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  138. %files -f files
  139. %clean
  140. rm -rf $RPM_BUILD_ROOT