dhtml.spec 7.7 KB

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