Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
1 ##
2 ## dhtml.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2012 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 ##
24 # package version
25 %define V_prototype 1.7.1.0
26 %define V_rico 1.1.2
27 %define V_rico_prototype 1.4
28 %define V_scriptaculous 1.9.0
29 %define V_mktree 20051017
30 %define V_dol 20050215
31 %define V_ie7 0_9
32 %define V_tinymce 3_3_9
33 %define V_os3grid 0.6
34 %define V_toolman 0.2
35 %define V_behaviour 1.1
36 %define V_wikiwyg 0.12
37 %define V_jsan 0.10
38 %define V_jsan_digestmd5 0.01
39 %define V_jsan_listutils 0.03
40 %define V_jsan_domevents 0.02
41 %define V_jsan_domutils 0.02
42 %define V_jsan_domelement 0.02
43 %define V_jsan_dominsert 0.02
44 %define V_jsan_functionbind 0.02
45 %define V_jsan_filebasename 0.03
46 %define V_jsan_widgetsortabletable 0.22
47 %define V_jsan_widgetselect 0.01
48 %define V_jsan_jsmodule 0.11
49 %define V_jsan_httprequest 0.03
50 %define V_jsan_httppush 0.04
51 %define V_jsan_httpcookies 1.11
52 %define V_jsan_httpquery 0.03
53 %define V_jsan_csschange 0.02
54 %define V_jsan_display 0.06
55 %define V_jsolait 2006-07-12
56 %define V_yui 3.3.0pr3
57 %define V_cssquery 2.0.2
58 %define V_ajaxslt 0.4
59 %define V_spry p1-6-1_022508
60 %define V_dojo 1.7.3
61 %define V_mochikit 1.4.2
62 %define V_ffjs 1.11
63 %define V_jquery 1.8.0
64 %define V_jquery_mobile 1.1.1
65 %define V_jquery_interface 1.2
66 %define V_excanvas 20090130
67 %define V_oat 2.8
68 %define V_extjs 4.1.1
69 %define V_sentch 2.0.1.1
70 %define V_raphael 2.1.0
71 %define V_svgweb 20110226
72 %define V_canto 0.15
73 %define V_mootools 1.4.5
74 %define V_mochaui 0.9.7
75 %define V_pure bc00883
76 %define V_ddbelatedpng 0.0.8a
77 %define V_skywriter 0.9a2
78 %define V_philogl 1.5.1
79 %define V_mathjax 1.1-0-g5a7e4d7
81 # package information
82 Name: dhtml
83 Summary: Dynamic HTML Libraries
84 URL: http://www.openpkg.org/
85 Vendor: OpenPKG
86 Packager: OpenPKG Foundation e.V.
87 Distribution: OpenPKG Community
88 Class: BASE
89 Group: HTML
90 License: Open Source
91 Version: 0
92 Release: 20120800
94 # list of sources
95 #Source0: http://download.openpkg.org/components/versioned/dhtml/prototype-%{V_prototype}.js
96 Source0: http://ajax.googleapis.com/ajax/libs/prototype/%{V_prototype}/prototype.js
97 Source1: http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.zip
98 Source2: http://download.openpkg.org/components/versioned/dhtml/mktree-%{V_mktree}.tar.gz
99 Source3: http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}.js
100 Source4: http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}-prototype-%{V_rico_prototype}.js
101 Source5: http://download.openpkg.org/components/versioned/dhtml/DynamicOptionList-%{V_dol}.js
102 Source6: http://switch.dl.sourceforge.net/ie7/IE7_%{V_ie7}.zip
103 Source7: http://switch.dl.sourceforge.net/tinymce/tinymce_%{V_tinymce}.zip
104 Source8: http://switch.dl.sourceforge.net/os3grid/os3grid-%{V_os3grid}.tar.bz2
105 Source9: http://tool-man.org/examples/ToolManDHTML-%{V_toolman}.zip
106 Source10: http://download.openpkg.org/components/versioned/dhtml/behaviour-%{V_behaviour}.js
107 Source11: http://openjsan.org/dist/i/in/ingy/Wikiwyg-%{V_wikiwyg}.tar.gz
108 Source12: http://openjsan.org/dist/c/cw/cwest/JSAN-%{V_jsan}.tar.gz
109 Source13: http://openjsan.org/dist/c/cw/cwest/Digest.MD5-%{V_jsan_digestmd5}.tar.gz
110 Source14: http://openjsan.org/dist/p/pr/prefiks/List.Utils-%{V_jsan_listutils}.tar.gz
111 Source15: http://openjsan.org/dist/g/go/goflyapig/DOM.Events-%{V_jsan_domevents}.tar.gz
112 Source16: http://openjsan.org/dist/r/rk/rkinyon/DOM-Utils-%{V_jsan_domutils}.tar.gz
113 Source17: http://openjsan.org/dist/r/rk/rkinyon/DOM-Element-%{V_jsan_domelement}.tar.gz
114 Source18: http://openjsan.org/dist/r/rk/rkinyon/DOM-Insert-%{V_jsan_dominsert}.tar.gz
115 Source19: http://openjsan.org/dist/r/rk/rkinyon/Function-bind-%{V_jsan_functionbind}.tar.gz
116 Source20: http://openjsan.org/dist/l/le/lecar_red/File.Basename-%{V_jsan_filebasename}.tar.gz
117 Source21: http://openjsan.org/dist/a/au/autarch/Widget.SortableTable-%{V_jsan_widgetsortabletable}.tar.gz
118 Source22: http://openjsan.org/dist/t/th/thilo/Widget.Select-%{V_jsan_widgetselect}.tar.gz
119 Source23: http://openjsan.org/dist/a/ad/adurdin/JSModule-%{V_jsan_jsmodule}.tar.gz
120 Source24: http://openjsan.org/dist/r/rk/rkinyon/HTTP-Request-%{V_jsan_httprequest}.tar.gz
121 Source25: http://openjsan.org/dist/f/fu/fuzzynerd/HTTP.Push-%{V_jsan_httppush}.tar.gz
122 Source26: http://openjsan.org/dist/b/bu/burak/HTTP.Cookies-%{V_jsan_httpcookies}.tar.gz
123 Source27: http://openjsan.org/dist/t/th/theory/HTTP.Query-%{V_jsan_httpquery}.tar.gz
124 Source28: http://openjsan.org/dist/t/ty/typester/CSS.Change-%{V_jsan_csschange}.tar.gz
125 Source29: http://openjsan.org/dist/a/ad/adamk/Display-%{V_jsan_display}.tar.gz
126 Source30: http://jsolait.net/download/jsolait.%{V_jsolait}.small.zip
127 Source31: http://yuilibrary.com/downloads/yui3/yui_%{V_yui}.zip
128 Source32: http://download.openpkg.org/components/versioned/dhtml/cssQuery-%{V_cssquery}.zip
129 Source33: http://switch.dl.sourceforge.net/goog-ajaxslt/ajaxslt-%{V_ajaxslt}.tar.gz
130 Source34: http://download.openpkg.org/components/versioned/dhtml/spry_%{V_spry}.zip
131 Source35: http://download.dojotoolkit.org/release-%{V_dojo}/dojo-release-%{V_dojo}.tar.gz
132 Source36: http://mochikit.com/dist/MochiKit-%{V_mochikit}.zip
133 Source37: http://fforw.de/static/files/ffjs-r%{V_ffjs}.zip
134 Source38: http://code.jquery.com/jquery-%{V_jquery}.min.js
135 Source39: http://code.jquery.com/mobile/%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.zip
136 Source40: http://interface.eyecon.ro/interface/interface_%{V_jquery_interface}.zip
137 Source41: http://download.openpkg.org/components/versioned/dhtml/excanvas-%{V_excanvas}.js
138 Source42: http://switch.dl.sourceforge.net/oat/oat-%{V_oat}.tar.gz
139 Source43: http://cdn.sencha.com/extjs-%{V_extjs}-gpl.zip
140 Source44: http://cdn.sencha.io/touch/sencha-touch-%{V_sentch}-gpl.zip
141 Source45: http://download.openpkg.org/components/versioned/dhtml/raphael-%{V_raphael}.js
142 Source46: http://download.openpkg.org/components/versioned/dhtml/svgweb-%{V_svgweb}.tar.gz
143 Source47: http://canto-js.googlecode.com/files/canto-%{V_canto}.js
144 Source48: http://mootools.net/download/get/mootools-core-%{V_mootools}-full-nocompat-yc.js
145 Source49: http://github.com/downloads/mui/mochaui/mochaui-%{V_mochaui}.zip
146 Source50: http://download.github.com/pure-pure-%{V_pure}.zip
147 Source51: http://www.dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_%{V_ddbelatedpng}.js
148 Source52: http://ftp.mozilla.org/pub/mozilla.org/labs/bespin/Embedded/BespinEmbedded-%{V_skywriter}.tar.gz
149 Source53: http://senchalabs.github.com/philogl/downloads/PhiloGL-%{V_philogl}.zip
150 Source54: https://download.github.com/mathjax-MathJax-v%{V_mathjax}.zip
151 Source55: dhtml.txt
153 # build information
154 BuildPreReq: OpenPKG, openpkg >= 20100101, infozip
155 PreReq: OpenPKG, openpkg >= 20100101
157 %description
158 This is a collection of CSS and JavaScript based DHTML components
159 which provide reusable WWW client-side extensions including IE7
160 compatibility workarounds, AJAX support, dynamic widgets, etc.
162 %track
163 prog dhtml:prototype = {
164 version = %{V_prototype}
165 url = http://www.prototypejs.org/download
166 regex = version—(\d+\.\d+(?:\.\d+)+)\s+
167 }
168 prog dhtml:scriptaculous = {
169 version = %{V_scriptaculous}
170 url = http://script.aculo.us/downloads
171 regex = scriptaculous-js-(__VER__)\.zip
172 }
173 prog dhtml:rico-prototype = {
174 version = %{V_rico_prototype}
175 url = http://download.openpkg.org/components/versioned/dhtml/
176 regex = rico-%{V_rico}-prototype-(__VER__)\.js
177 }
178 prog dhtml:rico = {
179 version = %{V_rico}
180 url = http://download.openpkg.org/components/versioned/dhtml/
181 regex = rico-(\d+\.\d+\.\d)\.js
182 }
183 prog dhtml:mktree = {
184 version = %{V_mktree}
185 url = http://download.openpkg.org/components/versioned/dhtml/
186 regex = mktree-(__VER__)\.tar\.gz
187 }
188 prog dhtml:dol = {
189 version = %{V_dol}
190 url = http://download.openpkg.org/components/versioned/dhtml/
191 regex = DynamicOptionList-(__VER__)\.js
192 }
193 prog dhtml:ie7 = {
194 version = %{V_ie7}
195 url = http://sourceforge.net/projects/ie7/files/
196 regex = IE7_(__VER__)\.zip
197 }
198 prog dhtml:tinymce = {
199 version = %{V_tinymce}
200 url = http://sourceforge.net/projects/tinymce/files/
201 regex = tinymce_(\d+_\d+_\d+)\.zip
202 }
203 prog dhtml:os3grid = {
204 version = %{V_os3grid}
205 url = http://sourceforge.net/projects/os3grid/files/
206 regex = os3grid-(__VER__)\.tar\.bz2
207 }
208 prog dhtml:toolman = {
209 version = %{V_toolman}
210 url = http://tool-man.org/examples/
211 regex = ToolManDHTML-(__VER__)\.zip
212 }
213 prog dhtml:behaviour = {
214 version = %{V_behaviour}
215 url = http://download.openpkg.org/components/versioned/dhtml/
216 regex = behaviour-(__VER__)\.js
217 }
218 prog dhtml:wikiwyg = {
219 version = %{V_wikiwyg}
220 url = http://openjsan.org/dist/i/in/ingy/
221 regex = Wikiwyg-(__VER__)\.tar\.gz
222 }
223 prog dhtml:jsan = {
224 version = %{V_jsan}
225 url = http://openjsan.org/dist/c/cw/cwest/
226 regex = JSAN-(__VER__)\.tar\.gz
227 }
228 prog dhtml:jsan-digestmd5 = {
229 version = %{V_jsan_digestmd5}
230 url = http://openjsan.org/dist/c/cw/cwest/
231 regex = Digest\.MD5-(__VER__)\.tar\.gz
232 }
233 prog dhtml:jsan-listutils = {
234 version = %{V_jsan_listutils}
235 url = http://openjsan.org/dist/p/pr/prefiks/
236 regex = List\.Utils-(__VER__)\.tar\.gz
237 }
238 prog dhtml:jsan-domevents = {
239 version = %{V_jsan_domevents}
240 url = http://openjsan.org/dist/g/go/goflyapig/
241 regex = DOM\.Events-(__VER__)\.tar\.gz
242 }
243 prog dhtml:jsan-domutils = {
244 version = %{V_jsan_domutils}
245 url = http://openjsan.org/dist/r/rk/rkinyon/
246 regex = DOM-Utils-(__VER__)\.tar\.gz
247 }
248 prog dhtml:jsan-domelement = {
249 version = %{V_jsan_domelement}
250 url = http://openjsan.org/dist/r/rk/rkinyon/
251 regex = DOM-Element-(__VER__)\.tar\.gz
252 }
253 prog dhtml:jsan-dominsert = {
254 version = %{V_jsan_dominsert}
255 url = http://openjsan.org/dist/r/rk/rkinyon/
256 regex = DOM-Insert-(__VER__)\.tar\.gz
257 }
258 prog dhtml:jsan-functionbind = {
259 version = %{V_jsan_functionbind}
260 url = http://openjsan.org/dist/r/rk/rkinyon/
261 regex = Function-bind-(__VER__)\.tar\.gz
262 }
263 prog dhtml:jsan-filebasename = {
264 version = %{V_jsan_filebasename}
265 url = http://openjsan.org/dist/l/le/lecar_red/
266 regex = File\.Basename-(__VER__)\.tar\.gz
267 }
268 prog dhtml:jsan-widgetsortabletable = {
269 version = %{V_jsan_widgetsortabletable}
270 url = http://openjsan.org/dist/a/au/autarch/
271 regex = Widget\.SortableTable-(__VER__)\.tar\.gz
272 }
273 prog dhtml:jsan-widgetselect = {
274 version = %{V_jsan_widgetselect}
275 url = http://openjsan.org/dist/t/th/thilo/
276 regex = Widget\.Select-(__VER__)\.tar\.gz
277 }
278 prog dhtml:jsan-jsmodule = {
279 version = %{V_jsan_jsmodule}
280 url = http://openjsan.org/dist/a/ad/adurdin/
281 regex = JSModule-(__VER__)\.tar\.gz
282 }
283 prog dhtml:jsan-httprequest = {
284 version = %{V_jsan_httprequest}
285 url = http://openjsan.org/dist/r/rk/rkinyon/
286 regex = HTTP-Request-(__VER__)\.tar\.gz
287 }
288 prog dhtml:jsan-httppush = {
289 version = %{V_jsan_httppush}
290 url = http://openjsan.org/dist/f/fu/fuzzynerd/
291 regex = HTTP\.Push-(__VER__)\.tar\.gz
292 }
293 prog dhtml:jsan-httpcookies = {
294 version = %{V_jsan_httpcookies}
295 url = http://openjsan.org/dist/b/bu/burak/
296 regex = HTTP\.Cookies-(__VER__)\.tar\.gz
297 }
298 prog dhtml:jsan-httpquery = {
299 version = %{V_jsan_httpquery}
300 url = http://openjsan.org/dist/t/th/theory/
301 regex = HTTP\.Query-(__VER__)\.tar\.gz
302 }
303 prog dhtml:jsan-csschange = {
304 version = %{V_jsan_csschange}
305 url = http://openjsan.org/dist/t/ty/typester/
306 regex = CSS\.Change-(__VER__)\.tar\.gz
307 }
308 prog dhtml:jsan-display = {
309 version = %{V_jsan_display}
310 url = http://openjsan.org/dist/a/ad/adamk/
311 regex = Display-(__VER__)\.tar\.gz
312 }
313 prog dhtml:jsolait = {
314 version = %{V_jsolait}
315 url = http://jsolait.net/download/
316 regex = jsolait\.(__VER__)\.small\.zip
317 }
318 prog dhtml:yui = {
319 version = %{V_yui}
320 url = http://yuilibrary.com/downloads/
321 regex = yui_(\d+\.\d+\.\d+)\.zip
322 }
323 prog dhtml:cssquery = {
324 version = %{V_cssquery}
325 url = http://download.openpkg.org/components/versioned/dhtml/
326 regex = cssQuery-(__VER__)\.zip
327 }
328 prog dhtml:ajaxslt = {
329 version = %{V_ajaxslt}
330 url = http://sourceforge.net/projects/goog-ajaxslt/files/
331 regex = ajaxslt-(__VER__)\.tar\.gz
332 }
333 prog dhtml:spry = {
334 version = %{V_spry}
335 url = http://download.openpkg.org/components/versioned/dhtml/
336 regex = spry_(__VER__)\.zip
337 }
338 prog dhtml:dojo = {
339 version = %{V_dojo}
340 url = http://download.dojotoolkit.org/
341 regex = release-(\d+\.\d+\.\d+)/
342 }
343 prog dhtml:mochikit = {
344 version = %{V_mochikit}
345 url = http://mochikit.com/download.html
346 regex = MochiKit-(__VER__)\.zip
347 }
348 prog dhtml:ffjs = {
349 version = %{V_ffjs}
350 url = http://fforw.de/ffjs/
351 regex = ffjs-r(__VER__)\.zip
352 }
353 prog dhtml:jquery = {
354 version = %{V_jquery}
355 url = http://jquery.com/
356 regex = jquery-(\d+\.\d+(\.\d+)?)\.min\.js
357 }
358 prog dhtml:jquerymobile = {
359 version = %{V_jquery_mobile}
360 url = http://code.jquery.com/mobile/
361 regex = \d+\.\d+(\.\d+)?)/jquery\.mobile-(__VER__)\.zip
362 }
363 prog dhtml:jquery-interface = {
364 version = %{V_jquery_interface}
365 url = http://interface.eyecon.ro/download
366 regex = interface_(__VER__)\.zip
367 }
368 prog dhtml:excanvas = {
369 version = %{V_excanvas}
370 url = http://download.openpkg.org/components/versioned/dhtml/
371 regex = excanvas-(__VER__)\.js
372 }
373 prog dhtml:oat = {
374 version = %{V_oat}
375 url = http://sourceforge.net/projects/oat/files/
376 regex = oat-(__VER__)\.tar\.gz
377 }
378 prog dhtml:extjs = {
379 version = %{V_extjs}
380 url = http://www.sencha.com/products/js/download.php
381 regex = Ext\s+JS\s+(\d+\.\d+\.\d+)
382 }
383 prog dhtml:sentch = {
384 version = %{V_sentch}
385 url = http://cdn.sencha.io/touch/
386 regex = sencha-touch-(\d+\.\d+\.\d+\.\d+)-gpl\.zip
387 }
388 prog dhtml:raphael = {
389 version = %{V_raphael}
390 url = http://raphaeljs.com/
391 regex = Download\s+v\.\ (__VER__)
392 }
393 prog dhtml:svgweb = {
394 version = %{V_svgweb}
395 url = http://download.openpkg.org/components/versioned/dhtml/
396 regex = svgweb-(\d+)\.tar\.gz
397 }
398 prog dhtml:canto = {
399 version = %{V_canto}
400 url = http://code.google.com/p/canto-js/downloads/list
401 regex = canto-(__VER__)\.js
402 }
403 prog dhtml:mootools = {
404 version = %{V_mootools}
405 url = http://mootools.net/download
406 regex = mootools-core-(__VER__)-full-nocompat-yc\.js
407 }
408 prog dhtml:mochaui = {
409 version = %{V_mochaui}
410 url = http://github.com/mui/mochaui/downloads
411 regex = mochaui-(__VER__)\.zip
412 }
413 prog dhtml:pure = {
414 version = %{V_pure}
415 url = http://beebole.com/pure/documentation/pure-with-your-js-library/
416 regex = pure-pure-(__VER__)\.zip
417 }
418 prog dhtml:ddbelatedpng = {
419 version = %{V_ddbelatedpng}
420 url = http://www.dillerdesign.com/experiment/DD_belatedPNG/
421 regex = DD_belartedPNG_(__VER__)\.js
422 }
423 prog dhtml:skywriter = {
424 version = %{V_skywriter}
425 url = http://mozillalabs.com/skywriter/
426 regex = BespinEmbedded-(__VER__)\.tar\.gz
427 }
428 prog dhtml:philogl = {
429 version = %{V_philogl}
430 url = http://senchalabs.github.com/philogl/
431 regex = PhiloGL-(__VER__)\.zip
432 }
433 prog dhtml:mathjax = {
434 version = %{V_mathjax}
435 url = https://github.com/mathjax/MathJax/archives/master
436 regex = mathjax-Mathjax-(__VER__)\.zip
437 }
439 %prep
440 %setup -q -c -T
441 %setup -q -T -D -a 2
442 mkdir tinymce-%{V_tinymce}
443 ( cd tinymce-%{V_tinymce}; %{l_prefix}/bin/unzip -q -x %{SOURCE7} ) || exit $?
444 %setup -q -T -D -a 8
445 %setup -q -T -D -a 11
446 %setup -q -T -D -a 12
447 %setup -q -T -D -a 13
448 %setup -q -T -D -a 14
449 %setup -q -T -D -a 15
450 %setup -q -T -D -a 16
451 %setup -q -T -D -a 17
452 %setup -q -T -D -a 18
453 %setup -q -T -D -a 19
454 %setup -q -T -D -a 20
455 %setup -q -T -D -a 21
456 %setup -q -T -D -a 22
457 %setup -q -T -D -a 23
458 %setup -q -T -D -a 24
459 %setup -q -T -D -a 25
460 %setup -q -T -D -a 26
461 %setup -q -T -D -a 27
462 %setup -q -T -D -a 28
463 %setup -q -T -D -a 29
464 %{l_prefix}/bin/unzip -q -x %{SOURCE1}
465 %{l_prefix}/bin/unzip -q -x %{SOURCE6}
466 %{l_prefix}/bin/unzip -q -x %{SOURCE9}
467 %{l_prefix}/bin/unzip -q -x %{SOURCE30}
468 %{l_prefix}/bin/unzip -q -x %{SOURCE31}
469 %{l_prefix}/bin/unzip -q -x %{SOURCE32}
470 %setup -q -T -D -a 33
471 %{l_prefix}/bin/unzip -q -x %{SOURCE34}
472 %setup -q -T -D -a 35
473 %{l_prefix}/bin/unzip -q -x %{SOURCE36}
474 %{l_prefix}/bin/unzip -q -x %{SOURCE37}
475 %{l_prefix}/bin/unzip -q -x %{SOURCE39}
476 %{l_prefix}/bin/unzip -q -x %{SOURCE40}
477 %setup -q -T -D -a 42
478 %{l_prefix}/bin/unzip -q -x %{SOURCE43}
479 %{l_prefix}/bin/unzip -q -x %{SOURCE44}
480 chmod -R a+r MochiKit-%{V_mochikit}
481 %setup -q -T -D -a 46
482 %{l_prefix}/bin/unzip -q -x %{SOURCE49}
483 %{l_prefix}/bin/unzip -q -x %{SOURCE50}
484 %setup -q -T -D -a 52
485 mkdir philogl-%{V_philogl}
486 ( cd philogl-%{V_philogl}; %{l_prefix}/bin/unzip -q -x %{SOURCE53} ) || exit $?
487 %setup -q -T -D -a 54
489 %build
491 %install
492 %{l_shtool} mkdir -f -p -m 755 \
493 $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d \
494 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype \
495 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/scriptaculous \
496 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico \
497 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mktree \
498 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dol \
499 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/tinymce \
500 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/os3grid \
501 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ie7 \
502 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/toolman \
503 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/behaviour \
504 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/wikiwyg \
505 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/Digest \
506 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/List \
507 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/DOM \
508 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/File \
509 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/Function \
510 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/HTTP \
511 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/Widget \
512 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/CSS \
513 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsolait \
514 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/yui \
515 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/cssquery \
516 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ajaxslt \
517 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/spry \
518 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dojo \
519 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mochikit \
520 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ffjs \
521 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery \
522 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/excanvas \
523 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/oat \
524 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/extjs \
525 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/sentch \
526 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/raphael \
527 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/svgweb \
528 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/canto \
529 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mootools \
530 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mochaui \
531 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/pure \
532 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ddbelatedpng \
533 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/skywriter \
534 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/philogl \
535 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mathjax
536 ( echo "Alias /openpkg-dhtml/ %{l_prefix}/share/dhtml/"
537 echo "<Directory %{l_prefix}/share/dhtml/>"
538 echo " Options Indexes"
539 echo " AllowOverride none"
540 echo " Order allow,deny"
541 echo " Allow from all"
542 echo "</Directory>"
543 ) >dhtml.conf
544 %{l_shtool} install -c -m 644 \
545 dhtml.conf $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/
546 %{l_shtool} install -c -m 644 \
547 %{SOURCE prototype.js} \
548 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype/
549 %{l_shtool} install -c -m 644 \
550 %{SOURCE rico-%{V_rico}.js} \
551 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico/rico.js
552 %{l_shtool} install -c -m 644 \
553 %{SOURCE rico-%{V_rico}-prototype-%{V_rico_prototype}.js} \
554 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico/prototype.js
555 %{l_shtool} install -c -m 644 \
556 scriptaculous-js-%{V_scriptaculous}/lib/* \
557 scriptaculous-js-%{V_scriptaculous}/src/* \
558 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/scriptaculous/
559 %{l_shtool} install -c -m 644 \
560 IE7_%{V_ie7}/ie7* IE7_%{V_ie7}/blank.gif \
561 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ie7/
562 %{l_shtool} install -c -m 644 \
563 mktree/* \
564 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mktree/
565 %{l_shtool} install -c -m 644 \
566 %{SOURCE DynamicOptionList-%{V_dol}.js} \
567 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dol/dol.js
568 cp -r tinymce-*/tinymce/jscripts/tiny_mce/* \
569 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/tinymce/
570 %{l_shtool} install -c -m 644 \
571 os3grid/os3grid.css os3grid/os3grid.js \
572 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/os3grid/
573 %{l_shtool} install -c -m 644 \
574 tool-man/source/org/tool-man/* \
575 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/toolman/
576 %{l_shtool} install -c -m 644 \
577 %{SOURCE behaviour-%{V_behaviour}.js} \
578 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/behaviour/behaviour.js
579 %{l_shtool} install -c -m 644 \
580 %{SOURCE dhtml.txt} \
581 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/README
582 cp -r Wikiwyg-%{V_wikiwyg}/lib/* Wikiwyg-%{V_wikiwyg}/css/* \
583 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/wikiwyg/
584 cp -r Wikiwyg-%{V_wikiwyg}/images \
585 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/wikiwyg/images
586 %{l_shtool} subst \
587 -e 's;images/;/dhtml/wikiwyg/images/;g' \
588 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/wikiwyg/Wikiwyg/Toolbar.js
589 %{l_shtool} install -c -m 644 \
590 -e "s;lib;/dhtml/jsan;" \
591 JSAN-%{V_jsan}/doc/text/JSAN.txt JSAN-%{V_jsan}/lib/JSAN.js \
592 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/
593 %{l_shtool} install -c -m 644 \
594 -e 's;\(includePaths = ..\)\(..\);\1/dhtml/jsan\2;' \
595 JSModule-%{V_jsan_jsmodule}/doc/JSModule.rst \
596 JSModule-%{V_jsan_jsmodule}/src/JSModule.js \
597 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/
598 %{l_shtool} install -c -m 644 \
599 Digest.MD5-%{V_jsan_digestmd5}/lib/Digest/MD5.js \
600 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/Digest/
601 %{l_shtool} install -c -m 644 \
602 List.Utils-%{V_jsan_listutils}/lib/List/Utils.js \
603 List.Utils-%{V_jsan_listutils}/doc/text/List/Utils.txt \
604 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/List/
605 %{l_shtool} install -c -m 644 \
606 DOM.Events-%{V_jsan_domevents}/lib/DOM/Events.js \
607 DOM-Utils-%{V_jsan_domutils}/lib/DOM/Utils.js \
608 DOM-Utils-%{V_jsan_domutils}/doc/text/DOM/Utils.txt \
609 DOM-Element-%{V_jsan_domelement}/lib/DOM/Element.js \
610 DOM-Element-%{V_jsan_domelement}/doc/text/DOM/Element.txt \
611 DOM-Insert-%{V_jsan_dominsert}/lib/DOM/Insert.js \
612 DOM-Insert-%{V_jsan_dominsert}/doc/text/DOM/Insert.txt \
613 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/DOM/
614 %{l_shtool} install -c -m 644 \
615 File.Basename-%{V_jsan_filebasename}/lib/File/Basename.js \
616 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/File/
617 %{l_shtool} install -c -m 644 \
618 Function-bind-%{V_jsan_functionbind}/lib/Function/bind*.js \
619 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/Function/
620 %{l_shtool} install -c -m 644 \
621 HTTP-Request-%{V_jsan_httprequest}/lib/HTTP/*.js \
622 HTTP.Push-%{V_jsan_httppush}/lib/HTTP/*.js \
623 HTTP.Cookies-%{V_jsan_httpcookies}/lib/HTTP/*.js \
624 HTTP.Query-%{V_jsan_httpquery}/lib/HTTP/*.js \
625 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/HTTP/
626 %{l_shtool} install -c -m 644 \
627 Widget.SortableTable-%{V_jsan_widgetsortabletable}/lib/Widget/*.js \
628 Widget.Select-%{V_jsan_widgetselect}/lib/Widget/*.js \
629 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/Widget/
630 %{l_shtool} install -c -m 644 \
631 CSS.Change-%{V_jsan_csschange}/lib/CSS/*.js \
632 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/CSS/
633 %{l_shtool} install -c -m 644 \
634 Display-%{V_jsan_display}/lib/*.js \
635 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsan/
636 cp -rp jsolait/* \
637 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jsolait/
638 cp -rp yui/build/* \
639 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/yui/
640 %{l_shtool} install -c -m 644 \
641 cssQuery/cssQuery-p.js \
642 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/cssquery/cssquery.js
643 %{l_shtool} install -c -m 644 \
644 ajaxslt-%{V_ajaxslt}/dom.js \
645 ajaxslt-%{V_ajaxslt}/misc.js \
646 ajaxslt-%{V_ajaxslt}/xpath.js \
647 ajaxslt-%{V_ajaxslt}/xslt.js \
648 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ajaxslt/
649 %{l_shtool} install -c -m 644 \
650 Spry_*/includes_packed/*.js \
651 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/spry/
652 cp -rp dojo-release-%{V_dojo}/dojo/* \
653 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dojo/
654 cp -rp MochiKit-%{V_mochikit}/doc \
655 MochiKit-%{V_mochikit}/packed/MochiKit/MochiKit.js \
656 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mochikit/
657 %{l_shtool} install -c -m 644 \
658 script/ff.js \
659 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ffjs/
660 %{l_shtool} install -c -m 644 \
661 %{SOURCE jquery-%{V_jquery}.min.js} \
662 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.js
663 cp "interface %{V_jquery_interface}/interface.js" \
664 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery-interface.js
665 %{l_shtool} install -c -m 644 \
666 jquery.mobile-%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.min.css \
667 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.min.css
668 %{l_shtool} install -c -m 644 \
669 jquery.mobile-%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.min.js \
670 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.min.js
671 %{l_shtool} install -c -m 644 \
672 jquery.mobile-%{V_jquery_mobile}/jquery.mobile.structure-%{V_jquery_mobile}.min.css \
673 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.structure.min.css
674 %{l_shtool} install -c -m 644 \
675 jquery.mobile-%{V_jquery_mobile}/jquery.mobile.theme-%{V_jquery_mobile}.min.css \
676 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.theme.min.css
677 %{l_shtool} install -c -m 755 \
678 jquery.mobile-%{V_jquery_mobile}/demos \
679 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.demos
680 %{l_shtool} install -c -m 755 \
681 jquery.mobile-%{V_jquery_mobile}/images \
682 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.images
683 %{l_shtool} install -c -m 644 \
684 %{SOURCE excanvas-%{V_excanvas}.js} \
685 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/excanvas/excanvas.js
686 cp -rp oat-%{V_oat}/oat/*.js \
687 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/oat/
688 rm -rf \
689 extjs-%{V_extjs}/docs \
690 extjs-%{V_extjs}/src \
691 extjs-%{V_extjs}/pkgs \
692 extjs-%{V_extjs}/examples \
693 extjs-%{V_extjs}/build \
694 extjs-%{V_extjs}/[A-Z]*
695 find extjs-%{V_extjs} -name "*Copy.gif" -type f -exec rm -f {} \;
696 cp -rp extjs-%{V_extjs}/* \
697 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/extjs/
698 rm -rf \
699 sencha-touch-%{V_sentch}/docs \
700 sencha-touch-%{V_sentch}/src \
701 sencha-touch-%{V_sentch}/pkgs \
702 sencha-touch-%{V_sentch}/examples
703 cp -rp sencha-touch-%{V_sentch}/* \
704 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/sentch/
705 cp -rp svgweb/svg* \
706 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/svgweb/
707 %{l_shtool} install -c -m 644 \
708 %{SOURCE raphael-%{V_raphael}.js} \
709 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/raphael/raphael.js
710 %{l_shtool} install -c -m 644 \
711 %{SOURCE canto-%{V_canto}.js} \
712 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/canto/canto.js
713 %{l_shtool} install -c -m 644 \
714 %{SOURCE mootools-core-%{V_mootools}-full-nocompat-yc.js} \
715 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mootools/
716 cp -rp mochaui-%{V_mochaui}/build/* \
717 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mochaui/
718 %{l_shtool} install -c -m 644 \
719 pure-pure-%{V_pure}/libs/pure.js \
720 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/pure/
721 %{l_shtool} install -c -m 644 \
722 %{SOURCE DD_belatedPNG_%{V_ddbelatedpng}.js} \
723 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ddbelatedpng/ddbelatedpng.js
724 cp -rp BespinEmbedded-%{V_skywriter}/prebuilt/* \
725 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/skywriter/
726 %{l_shtool} install -c -m 644 \
727 philogl-%{V_philogl}/build/PhiloGL.js \
728 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/philogl/
729 ( cd mathjax-MathJax-*
730 rm -rf jax docs test unpacked README* LICENSE fonts/HTML-CSS/TeX/png
731 cp -rp * $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mathjax/
732 ) || exit $?
733 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/skywriter/*uncompressed*
734 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
736 %files -f files
738 %clean
739 # Hack to avoid reusing old Prototype JS library
740 rm %{SOURCE0}