commons.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. ##
  2. ## commons.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2020 OpenPKG Project <http://openpkg.org/>
  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.9.4
  25. %define V_cli 1.4
  26. %define V_collections 3.2.2
  27. %define V_configuration 1.6
  28. %define V_httpclient 3.1
  29. %define V_io 2.8.0
  30. %define V_lang 2.6
  31. %define V_launcher 1.1
  32. %define V_logging 1.2
  33. %define V_net 3.1
  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 Project
  40. Distribution: OpenPKG Community
  41. Class: EVAL
  42. Group: Libraries
  43. License: Apache
  44. Version: 0
  45. Release: 20200909
  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}-bin.tar.gz
  49. Source2: http://www.apache.org/dist/commons/collections/binaries/commons-collections-%{V_collections}-bin.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}-bin.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}-bin.tar.gz
  56. Source9: http://www.apache.org/dist/commons/net/binaries/commons-net-%{V_net}-bin.tar.gz
  57. # build information
  58. BuildPreReq: OpenPKG, openpkg >= 20160101
  59. PreReq: OpenPKG, openpkg >= 20160101
  60. %description
  61. Apache Commons is a set of Java utility libraries.
  62. %track
  63. prog commons:beanutils = {
  64. version = %{V_beanutils}
  65. url = http://www.apache.org/dist/commons/beanutils/binaries/
  66. regex = commons-beanutils-(\d+\.\d+\.\d+)-bin\.tar\.gz
  67. }
  68. prog commons:cli = {
  69. version = %{V_cli}
  70. url = http://www.apache.org/dist/commons/cli/binaries/
  71. regex = commons-cli-(__VER__)-bin\.tar\.gz
  72. }
  73. prog commons:collections = {
  74. version = %{V_collections}
  75. url = http://www.apache.org/dist/commons/collections/binaries/
  76. regex = commons-collections-(__VER__)-bin\.tar\.gz
  77. }
  78. prog commons:configuration = {
  79. version = %{V_configuration}
  80. url = http://www.apache.org/dist/commons/configuration/binaries/
  81. regex = commons-configuration-(__VER__)\.tar\.gz
  82. }
  83. prog commons:httpclient = {
  84. version = %{V_httpclient}
  85. url = http://www.apache.org/dist/httpcomponents/commons-httpclient/binary/
  86. regex = commons-httpclient-(__VER__)\.tar\.gz
  87. }
  88. prog commons:io = {
  89. version = %{V_io}
  90. url = http://www.apache.org/dist/commons/io/binaries/
  91. regex = commons-io-(__VER__)-bin\.tar\.gz
  92. }
  93. prog commons:lang = {
  94. version = %{V_lang}
  95. url = http://www.apache.org/dist/commons/lang/binaries/
  96. regex = commons-lang-(__VER__)-bin\.tar\.gz
  97. }
  98. prog commons:launcher = {
  99. version = %{V_launcher}
  100. url = http://www.apache.org/dist/commons/launcher/binaries/
  101. regex = commons-launcher-(__VER__)\.tar\.gz
  102. }
  103. prog commons:logging = {
  104. version = %{V_logging}
  105. url = http://www.apache.org/dist/commons/logging/binaries/
  106. regex = commons-logging-(__VER__)-bin\.tar\.gz
  107. }
  108. prog commons:net = {
  109. version = %{V_net}
  110. url = http://www.apache.org/dist/commons/net/binaries/
  111. regex = commons-net-(__VER__)\.tar\.gz
  112. }
  113. %prep
  114. %setup -q -c
  115. %setup -q -T -D -a 1
  116. %setup -q -T -D -a 2
  117. %setup -q -T -D -a 3
  118. %setup -q -T -D -a 4
  119. %setup -q -T -D -a 5
  120. %setup -q -T -D -a 6
  121. %setup -q -T -D -a 7
  122. %setup -q -T -D -a 8
  123. %setup -q -T -D -a 9
  124. %build
  125. %install
  126. %{l_shtool} mkdir -f -p -m 755 \
  127. $RPM_BUILD_ROOT%{l_prefix}/lib/commons
  128. %{l_shtool} install -c -m 644 \
  129. commons-*/commons-*.jar \
  130. commons-*/*/commons-*.jar \
  131. $RPM_BUILD_ROOT%{l_prefix}/lib/commons/
  132. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  133. %files -f files
  134. %clean