dhtml.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. ##
  2. ## dhtml.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 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_prototype 1.3.1
  26. %define V_scriptaculous 1.5_rc4
  27. %define V_rico 1.1b2
  28. %define V_mktree 20051017
  29. %define V_dol 20050215
  30. %define V_ie7 0_9
  31. %define V_tinymce 2_0RC4
  32. %define V_os3grid 0.6
  33. # package information
  34. Name: dhtml
  35. Summary: Dynamic HTML Libraries
  36. URL: http://www.openpkg.org/
  37. Vendor: OpenPKG
  38. Packager: OpenPKG
  39. Distribution: OpenPKG
  40. Class: EVAL
  41. Group: Web
  42. License: Open Source
  43. Version: 20051031
  44. Release: 20051031
  45. # list of sources
  46. Source0: http://prototype.conio.net/dist/prototype-%{V_prototype}.tar.gz
  47. Source1: http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.tar.gz
  48. Source2: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/mktree-%{V_mktree}.tar.gz
  49. Source3: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/rico-%{V_rico}.js
  50. Source4: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/DynamicOptionList-%{V_dol}.js
  51. Source5: http://osdn.dl.sourceforge.net/ie7/IE7_%{V_ie7}.zip
  52. Source6: http://osdn.dl.sourceforge.net/tinymce/tinymce_%{V_tinymce}.tgz
  53. Source7: http://osdn.dl.sourceforge.net/os3grid/os3grid-%{V_os3grid}.tar.bz2
  54. Source8: dhtml.txt
  55. # build information
  56. Prefix: %{l_prefix}
  57. BuildRoot: %{l_buildroot}
  58. BuildPreReq: OpenPKG, openpkg >= 20040130, infozip
  59. PreReq: OpenPKG, openpkg >= 20040130
  60. AutoReq: no
  61. AutoReqProv: no
  62. %description
  63. This is a collection of CSS and JavaScript based DHTML components
  64. which provide reusable WWW client-side extensions including IE7
  65. compatibility workarounds, AJAX support, dynamic widgets, etc.
  66. %track
  67. prog dhtml:prototype = {
  68. version = %{V_prototype}
  69. url = http://prototype.conio.net/dist/
  70. regex = prototype-(__VER__)\.tar\.gz
  71. }
  72. prog dhtml:scriptaculous = {
  73. version = %{V_scriptaculous}
  74. url = http://script.aculo.us/downloads
  75. regex = scriptaculous-js-(__VER__)\.tar\.gz
  76. }
  77. prog dhtml:rico = {
  78. version = %{V_rico}
  79. url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/
  80. regex = rico-(__VER__)\.js
  81. }
  82. prog dhtml:mktree = {
  83. version = %{V_mktree}
  84. url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/
  85. regex = mktree-(__VER__)\.tar\.gz
  86. }
  87. prog dhtml:dol = {
  88. version = %{V_dol}
  89. url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/
  90. regex = DynamicOptionList-(__VER__)\.js
  91. }
  92. prog dhtml:ie7 = {
  93. version = %{V_ie7}
  94. url = http://prdownloads.sourceforge.net/ie7/
  95. regex = IE7_(__VER__)\.zip
  96. }
  97. prog dhtml:tinymce = {
  98. version = %{V_tinymce}
  99. url = http://prdownloads.sourceforge.net/tinymce/
  100. regex = tinymce_(__VER__)\.tgz
  101. }
  102. prog dhtml:os3grid = {
  103. version = %{V_os3grid}
  104. url = http://prdownloads.sourceforge.net/os3grid/
  105. regex = os3grid-(__VER__)\.tar\.bz2
  106. }
  107. %prep
  108. %setup -q -c
  109. %setup -q -T -D -a 1
  110. %setup -q -T -D -a 2
  111. %setup -q -T -D -a 6
  112. %setup -q -T -D -a 7
  113. %{l_prefix}/bin/unzip -q -x %{SOURCE5}
  114. %build
  115. %install
  116. rm -rf $RPM_BUILD_ROOT
  117. %{l_shtool} mkdir -f -p -m 755 \
  118. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype \
  119. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/scriptaculous \
  120. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico \
  121. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mktree \
  122. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dol \
  123. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/tinymce \
  124. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/os3grid \
  125. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ie7
  126. %{l_shtool} install -c -m 644 \
  127. prototype-%{V_prototype}/dist/*.js \
  128. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype/
  129. %{l_shtool} install -c -m 644 \
  130. %{SOURCE rico-%{V_rico}.js} \
  131. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico/rico.js
  132. %{l_shtool} install -c -m 644 \
  133. scriptaculous-js-%{V_scriptaculous}/lib/* \
  134. scriptaculous-js-%{V_scriptaculous}/src/* \
  135. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/scriptaculous/
  136. %{l_shtool} install -c -m 644 \
  137. IE7_%{V_ie7}/ie7* \
  138. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ie7/
  139. %{l_shtool} install -c -m 644 \
  140. mktree/* \
  141. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mktree/
  142. %{l_shtool} install -c -m 644 \
  143. %{SOURCE DynamicOptionList-%{V_dol}.js} \
  144. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dol/dol.js
  145. cp -r tinymce/jscripts/tiny_mce/* \
  146. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/tinymce/
  147. %{l_shtool} install -c -m 644 \
  148. os3grid/os3grid.css os3grid/os3grid.js \
  149. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/os3grid/
  150. %{l_shtool} install -c -m 644 \
  151. %{SOURCE dhtml.txt} \
  152. $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/README
  153. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  154. %files -f files
  155. %clean
  156. rm -rf $RPM_BUILD_ROOT