| 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 21 ## SUCH DAMAGE. |
21 ## SUCH DAMAGE. |
| 22 ## |
22 ## |
| 23 |
23 |
| 24 # package version |
24 # package version |
| 25 %define V_prototype 1.7.0.0 |
25 %define V_prototype 1.7.1.0 |
| 26 %define V_rico 1.1.2 |
26 %define V_rico 1.1.2 |
| 27 %define V_rico_prototype 1.4 |
27 %define V_rico_prototype 1.4 |
| 28 %define V_scriptaculous 1.8.3 |
28 %define V_scriptaculous 1.9.0 |
| 29 %define V_mktree 20051017 |
29 %define V_mktree 20051017 |
| 30 %define V_dol 20050215 |
30 %define V_dol 20050215 |
| 31 %define V_ie7 0_9 |
31 %define V_ie7 0_9 |
| 32 %define V_tinymce 3_3_9 |
32 %define V_tinymce 3_3_9 |
| 33 %define V_os3grid 0.6 |
33 %define V_os3grid 0.6 |
| 55 %define V_jsolait 2006-07-12 |
55 %define V_jsolait 2006-07-12 |
| 56 %define V_yui 3.3.0pr3 |
56 %define V_yui 3.3.0pr3 |
| 57 %define V_cssquery 2.0.2 |
57 %define V_cssquery 2.0.2 |
| 58 %define V_ajaxslt 0.4 |
58 %define V_ajaxslt 0.4 |
| 59 %define V_spry p1-6-1_022508 |
59 %define V_spry p1-6-1_022508 |
| 60 %define V_dojo 1.8.0 |
60 %define V_dojo 1.7.3 |
| 61 %define V_mochikit 1.4.2 |
61 %define V_mochikit 1.4.2 |
| 62 %define V_ffjs 1.11 |
62 %define V_ffjs 1.11 |
| 63 %define V_jquery 1.8.0 |
63 %define V_jquery 1.8.0 |
| |
64 %define V_jquery_mobile 1.1.1 |
| 64 %define V_jquery_interface 1.2 |
65 %define V_jquery_interface 1.2 |
| 65 %define V_excanvas 20090130 |
66 %define V_excanvas 20090130 |
| 66 %define V_oat 2.8 |
67 %define V_oat 2.8 |
| 67 %define V_extjs 4.1.1 |
68 %define V_extjs 4.1.1 |
| 68 %define V_raphael 2.1.0 |
69 %define V_raphael 2.1.0 |
| 85 Distribution: OpenPKG Community |
86 Distribution: OpenPKG Community |
| 86 Class: BASE |
87 Class: BASE |
| 87 Group: HTML |
88 Group: HTML |
| 88 License: Open Source |
89 License: Open Source |
| 89 Version: 0 |
90 Version: 0 |
| 90 Release: 20120824 |
91 Release: 20120800 |
| 91 |
92 |
| 92 # list of sources |
93 # list of sources |
| 93 Source0: http://download.openpkg.org/components/versioned/dhtml/prototype-%{V_prototype}.js |
94 #Source0: http://download.openpkg.org/components/versioned/dhtml/prototype-%{V_prototype}.js |
| 94 Source1: http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.tar.gz |
95 Source0: http://ajax.googleapis.com/ajax/libs/prototype/%{V_prototype}/prototype.js |
| |
96 Source1: http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.zip |
| 95 Source2: http://download.openpkg.org/components/versioned/dhtml/mktree-%{V_mktree}.tar.gz |
97 Source2: http://download.openpkg.org/components/versioned/dhtml/mktree-%{V_mktree}.tar.gz |
| 96 Source3: http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}.js |
98 Source3: http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}.js |
| 97 Source4: http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}-prototype-%{V_rico_prototype}.js |
99 Source4: http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}-prototype-%{V_rico_prototype}.js |
| 98 Source5: http://download.openpkg.org/components/versioned/dhtml/DynamicOptionList-%{V_dol}.js |
100 Source5: http://download.openpkg.org/components/versioned/dhtml/DynamicOptionList-%{V_dol}.js |
| 99 Source6: http://switch.dl.sourceforge.net/ie7/IE7_%{V_ie7}.zip |
101 Source6: http://switch.dl.sourceforge.net/ie7/IE7_%{V_ie7}.zip |
| 127 Source34: http://download.openpkg.org/components/versioned/dhtml/spry_%{V_spry}.zip |
129 Source34: http://download.openpkg.org/components/versioned/dhtml/spry_%{V_spry}.zip |
| 128 Source35: http://download.dojotoolkit.org/release-%{V_dojo}/dojo-release-%{V_dojo}.tar.gz |
130 Source35: http://download.dojotoolkit.org/release-%{V_dojo}/dojo-release-%{V_dojo}.tar.gz |
| 129 Source36: http://mochikit.com/dist/MochiKit-%{V_mochikit}.zip |
131 Source36: http://mochikit.com/dist/MochiKit-%{V_mochikit}.zip |
| 130 Source37: http://fforw.de/static/files/ffjs-r%{V_ffjs}.zip |
132 Source37: http://fforw.de/static/files/ffjs-r%{V_ffjs}.zip |
| 131 Source38: http://code.jquery.com/jquery-%{V_jquery}.min.js |
133 Source38: http://code.jquery.com/jquery-%{V_jquery}.min.js |
| 132 Source39: http://interface.eyecon.ro/interface/interface_%{V_jquery_interface}.zip |
134 Source39: http://code.jquery.com/mobile/%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.zip |
| 133 Source40: http://download.openpkg.org/components/versioned/dhtml/excanvas-%{V_excanvas}.js |
135 Source40: http://interface.eyecon.ro/interface/interface_%{V_jquery_interface}.zip |
| 134 Source41: http://switch.dl.sourceforge.net/oat/oat-%{V_oat}.tar.gz |
136 Source41: http://download.openpkg.org/components/versioned/dhtml/excanvas-%{V_excanvas}.js |
| 135 Source42: http://cdn.sencha.com/extjs-%{V_extjs}-gpl.zip |
137 Source42: http://switch.dl.sourceforge.net/oat/oat-%{V_oat}.tar.gz |
| 136 Source43: http://download.openpkg.org/components/versioned/dhtml/raphael-%{V_raphael}.js |
138 Source43: http://cdn.sencha.com/extjs-%{V_extjs}-gpl.zip |
| 137 Source44: http://download.openpkg.org/components/versioned/dhtml/svgweb-%{V_svgweb}.tar.gz |
139 Source44: http://download.openpkg.org/components/versioned/dhtml/raphael-%{V_raphael}.js |
| 138 Source45: http://canto-js.googlecode.com/files/canto-%{V_canto}.js |
140 Source45: http://download.openpkg.org/components/versioned/dhtml/svgweb-%{V_svgweb}.tar.gz |
| 139 Source46: http://mootools.net/download/get/mootools-core-%{V_mootools}-full-nocompat-yc.js |
141 Source46: http://canto-js.googlecode.com/files/canto-%{V_canto}.js |
| 140 Source47: http://github.com/downloads/mui/mochaui/mochaui-%{V_mochaui}.zip |
142 Source47: http://mootools.net/download/get/mootools-core-%{V_mootools}-full-nocompat-yc.js |
| 141 Source48: http://download.github.com/pure-pure-%{V_pure}.zip |
143 Source48: http://github.com/downloads/mui/mochaui/mochaui-%{V_mochaui}.zip |
| 142 Source49: http://www.dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_%{V_ddbelatedpng}.js |
144 Source49: http://download.github.com/pure-pure-%{V_pure}.zip |
| 143 Source50: http://ftp.mozilla.org/pub/mozilla.org/labs/bespin/Embedded/BespinEmbedded-%{V_skywriter}.tar.gz |
145 Source50: http://www.dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_%{V_ddbelatedpng}.js |
| 144 Source51: http://senchalabs.github.com/philogl/downloads/PhiloGL-%{V_philogl}.zip |
146 Source51: http://ftp.mozilla.org/pub/mozilla.org/labs/bespin/Embedded/BespinEmbedded-%{V_skywriter}.tar.gz |
| 145 Source52: https://download.github.com/mathjax-MathJax-v%{V_mathjax}.zip |
147 Source52: http://senchalabs.github.com/philogl/downloads/PhiloGL-%{V_philogl}.zip |
| 146 Source53: dhtml.txt |
148 Source53: https://download.github.com/mathjax-MathJax-v%{V_mathjax}.zip |
| |
149 Source54: dhtml.txt |
| 147 |
150 |
| 148 # build information |
151 # build information |
| 149 BuildPreReq: OpenPKG, openpkg >= 20100101, infozip |
152 BuildPreReq: OpenPKG, openpkg >= 20100101, infozip |
| 150 PreReq: OpenPKG, openpkg >= 20100101 |
153 PreReq: OpenPKG, openpkg >= 20100101 |
| 151 |
154 |
| 161 regex = version—(\d+\.\d+(?:\.\d+)+)\s+ |
164 regex = version—(\d+\.\d+(?:\.\d+)+)\s+ |
| 162 } |
165 } |
| 163 prog dhtml:scriptaculous = { |
166 prog dhtml:scriptaculous = { |
| 164 version = %{V_scriptaculous} |
167 version = %{V_scriptaculous} |
| 165 url = http://script.aculo.us/downloads |
168 url = http://script.aculo.us/downloads |
| 166 regex = scriptaculous-js-(__VER__)\.tar\.gz |
169 regex = scriptaculous-js-(__VER__)\.zip |
| 167 } |
170 } |
| 168 prog dhtml:rico-prototype = { |
171 prog dhtml:rico-prototype = { |
| 169 version = %{V_rico_prototype} |
172 version = %{V_rico_prototype} |
| 170 url = http://download.openpkg.org/components/versioned/dhtml/ |
173 url = http://download.openpkg.org/components/versioned/dhtml/ |
| 171 regex = rico-%{V_rico}-prototype-(__VER__)\.js |
174 regex = rico-%{V_rico}-prototype-(__VER__)\.js |
| 348 prog dhtml:jquery = { |
351 prog dhtml:jquery = { |
| 349 version = %{V_jquery} |
352 version = %{V_jquery} |
| 350 url = http://jquery.com/ |
353 url = http://jquery.com/ |
| 351 regex = jquery-(\d+\.\d+(\.\d+)?)\.min\.js |
354 regex = jquery-(\d+\.\d+(\.\d+)?)\.min\.js |
| 352 } |
355 } |
| |
356 prog dhtml:jquerymobile = { |
| |
357 version = %{V_jquery_mobile} |
| |
358 url = http://code.jquery.com/mobile/ |
| |
359 regex = \d+\.\d+(\.\d+)?)/jquery\.mobile-(__VER__)\.zip |
| |
360 } |
| 353 prog dhtml:jquery-interface = { |
361 prog dhtml:jquery-interface = { |
| 354 version = %{V_jquery_interface} |
362 version = %{V_jquery_interface} |
| 355 url = http://interface.eyecon.ro/download |
363 url = http://interface.eyecon.ro/download |
| 356 regex = interface_(__VER__)\.zip |
364 regex = interface_(__VER__)\.zip |
| 357 } |
365 } |
| 445 %setup -q -T -D -a 25 |
452 %setup -q -T -D -a 25 |
| 446 %setup -q -T -D -a 26 |
453 %setup -q -T -D -a 26 |
| 447 %setup -q -T -D -a 27 |
454 %setup -q -T -D -a 27 |
| 448 %setup -q -T -D -a 28 |
455 %setup -q -T -D -a 28 |
| 449 %setup -q -T -D -a 29 |
456 %setup -q -T -D -a 29 |
| |
457 %{l_prefix}/bin/unzip -q -x %{SOURCE1} |
| 450 %{l_prefix}/bin/unzip -q -x %{SOURCE6} |
458 %{l_prefix}/bin/unzip -q -x %{SOURCE6} |
| 451 %{l_prefix}/bin/unzip -q -x %{SOURCE9} |
459 %{l_prefix}/bin/unzip -q -x %{SOURCE9} |
| 452 %{l_prefix}/bin/unzip -q -x %{SOURCE30} |
460 %{l_prefix}/bin/unzip -q -x %{SOURCE30} |
| 453 %{l_prefix}/bin/unzip -q -x %{SOURCE31} |
461 %{l_prefix}/bin/unzip -q -x %{SOURCE31} |
| 454 %{l_prefix}/bin/unzip -q -x %{SOURCE32} |
462 %{l_prefix}/bin/unzip -q -x %{SOURCE32} |
| 456 %{l_prefix}/bin/unzip -q -x %{SOURCE34} |
464 %{l_prefix}/bin/unzip -q -x %{SOURCE34} |
| 457 %setup -q -T -D -a 35 |
465 %setup -q -T -D -a 35 |
| 458 %{l_prefix}/bin/unzip -q -x %{SOURCE36} |
466 %{l_prefix}/bin/unzip -q -x %{SOURCE36} |
| 459 %{l_prefix}/bin/unzip -q -x %{SOURCE37} |
467 %{l_prefix}/bin/unzip -q -x %{SOURCE37} |
| 460 %{l_prefix}/bin/unzip -q -x %{SOURCE39} |
468 %{l_prefix}/bin/unzip -q -x %{SOURCE39} |
| 461 %setup -q -T -D -a 41 |
469 %{l_prefix}/bin/unzip -q -x %{SOURCE40} |
| 462 %{l_prefix}/bin/unzip -q -x %{SOURCE42} |
470 %setup -q -T -D -a 42 |
| |
471 %{l_prefix}/bin/unzip -q -x %{SOURCE43} |
| 463 chmod -R a+r MochiKit-%{V_mochikit} |
472 chmod -R a+r MochiKit-%{V_mochikit} |
| 464 %setup -q -T -D -a 44 |
473 %setup -q -T -D -a 45 |
| 465 %{l_prefix}/bin/unzip -q -x %{SOURCE47} |
|
| 466 %{l_prefix}/bin/unzip -q -x %{SOURCE48} |
474 %{l_prefix}/bin/unzip -q -x %{SOURCE48} |
| 467 %setup -q -T -D -a 50 |
475 %{l_prefix}/bin/unzip -q -x %{SOURCE49} |
| |
476 %setup -q -T -D -a 51 |
| 468 mkdir philogl-%{V_philogl} |
477 mkdir philogl-%{V_philogl} |
| 469 ( cd philogl-%{V_philogl}; %{l_prefix}/bin/unzip -q -x %{SOURCE51} ) || exit $? |
478 ( cd philogl-%{V_philogl}; %{l_prefix}/bin/unzip -q -x %{SOURCE52} ) || exit $? |
| 470 %setup -q -T -D -a 52 |
479 %setup -q -T -D -a 53 |
| 471 |
480 |
| 472 %build |
481 %build |
| 473 |
482 |
| 474 %install |
483 %install |
| 475 %{l_shtool} mkdir -f -p -m 755 \ |
484 %{l_shtool} mkdir -f -p -m 755 \ |
| 524 echo "</Directory>" |
533 echo "</Directory>" |
| 525 ) >dhtml.conf |
534 ) >dhtml.conf |
| 526 %{l_shtool} install -c -m 644 \ |
535 %{l_shtool} install -c -m 644 \ |
| 527 dhtml.conf $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ |
536 dhtml.conf $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ |
| 528 %{l_shtool} install -c -m 644 \ |
537 %{l_shtool} install -c -m 644 \ |
| 529 %{SOURCE prototype-%{V_prototype}.js} \ |
538 %{SOURCE prototype.js} \ |
| 530 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype/ |
539 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype/ |
| 531 %{l_shtool} install -c -m 644 \ |
540 %{l_shtool} install -c -m 644 \ |
| 532 %{SOURCE rico-%{V_rico}.js} \ |
541 %{SOURCE rico-%{V_rico}.js} \ |
| 533 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico/rico.js |
542 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico/rico.js |
| 534 %{l_shtool} install -c -m 644 \ |
543 %{l_shtool} install -c -m 644 \ |
| 642 %{l_shtool} install -c -m 644 \ |
651 %{l_shtool} install -c -m 644 \ |
| 643 %{SOURCE jquery-%{V_jquery}.min.js} \ |
652 %{SOURCE jquery-%{V_jquery}.min.js} \ |
| 644 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.js |
653 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.js |
| 645 cp "interface %{V_jquery_interface}/interface.js" \ |
654 cp "interface %{V_jquery_interface}/interface.js" \ |
| 646 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery-interface.js |
655 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery-interface.js |
| |
656 %{l_shtool} install -c -m 644 \ |
| |
657 jquery.mobile-%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.min.css \ |
| |
658 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.min.css |
| |
659 %{l_shtool} install -c -m 644 \ |
| |
660 jquery.mobile-%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.min.js \ |
| |
661 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.min.js |
| |
662 %{l_shtool} install -c -m 644 \ |
| |
663 jquery.mobile-%{V_jquery_mobile}/jquery.mobile.structure-%{V_jquery_mobile}.min.css \ |
| |
664 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.structure.min.css |
| |
665 %{l_shtool} install -c -m 644 \ |
| |
666 jquery.mobile-%{V_jquery_mobile}/jquery.mobile.theme-%{V_jquery_mobile}.min.css \ |
| |
667 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.theme.min.css |
| |
668 %{l_shtool} install -c -m 755 \ |
| |
669 jquery.mobile-%{V_jquery_mobile}/demos \ |
| |
670 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.demos |
| |
671 %{l_shtool} install -c -m 755 \ |
| |
672 jquery.mobile-%{V_jquery_mobile}/images \ |
| |
673 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.images |
| 647 %{l_shtool} install -c -m 644 \ |
674 %{l_shtool} install -c -m 644 \ |
| 648 %{SOURCE excanvas-%{V_excanvas}.js} \ |
675 %{SOURCE excanvas-%{V_excanvas}.js} \ |
| 649 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/excanvas/excanvas.js |
676 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/excanvas/excanvas.js |
| 650 cp -rp oat-%{V_oat}/oat/*.js \ |
677 cp -rp oat-%{V_oat}/oat/*.js \ |
| 651 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/oat/ |
678 $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/oat/ |