dhtml.spec 6.7 KB

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