# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346171425 -7200 # Node ID 1b852c64b120df4c656d95d7db43ad33adf77438 # Parent d512b2ab0257cfad754db05dfc2185ede246211e Update versions of primary components scriptaculous and prototype, and add the JQuery Mobile JavaScript library. Because prototype provides no versioned releases, this change integrates a yucky and hopefully provisionary hack to avoid stale tarballs. diff -r d512b2ab0257 -r 1b852c64b120 dhtml/dhtml.spec --- a/dhtml/dhtml.spec Tue Aug 28 18:30:20 2012 +0200 +++ b/dhtml/dhtml.spec Tue Aug 28 18:30:25 2012 +0200 @@ -22,10 +22,10 @@ ## # package version -%define V_prototype 1.7.0.0 +%define V_prototype 1.7.1.0 %define V_rico 1.1.2 %define V_rico_prototype 1.4 -%define V_scriptaculous 1.8.3 +%define V_scriptaculous 1.9.0 %define V_mktree 20051017 %define V_dol 20050215 %define V_ie7 0_9 @@ -57,10 +57,11 @@ %define V_cssquery 2.0.2 %define V_ajaxslt 0.4 %define V_spry p1-6-1_022508 -%define V_dojo 1.8.0 +%define V_dojo 1.7.3 %define V_mochikit 1.4.2 %define V_ffjs 1.11 %define V_jquery 1.8.0 +%define V_jquery_mobile 1.1.1 %define V_jquery_interface 1.2 %define V_excanvas 20090130 %define V_oat 2.8 @@ -87,11 +88,12 @@ Group: HTML License: Open Source Version: 0 -Release: 20120824 +Release: 20120800 # list of sources -Source0: http://download.openpkg.org/components/versioned/dhtml/prototype-%{V_prototype}.js -Source1: http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.tar.gz +#Source0: http://download.openpkg.org/components/versioned/dhtml/prototype-%{V_prototype}.js +Source0: http://ajax.googleapis.com/ajax/libs/prototype/%{V_prototype}/prototype.js +Source1: http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.zip Source2: http://download.openpkg.org/components/versioned/dhtml/mktree-%{V_mktree}.tar.gz Source3: http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}.js Source4: http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}-prototype-%{V_rico_prototype}.js @@ -129,21 +131,22 @@ Source36: http://mochikit.com/dist/MochiKit-%{V_mochikit}.zip Source37: http://fforw.de/static/files/ffjs-r%{V_ffjs}.zip Source38: http://code.jquery.com/jquery-%{V_jquery}.min.js -Source39: http://interface.eyecon.ro/interface/interface_%{V_jquery_interface}.zip -Source40: http://download.openpkg.org/components/versioned/dhtml/excanvas-%{V_excanvas}.js -Source41: http://switch.dl.sourceforge.net/oat/oat-%{V_oat}.tar.gz -Source42: http://cdn.sencha.com/extjs-%{V_extjs}-gpl.zip -Source43: http://download.openpkg.org/components/versioned/dhtml/raphael-%{V_raphael}.js -Source44: http://download.openpkg.org/components/versioned/dhtml/svgweb-%{V_svgweb}.tar.gz -Source45: http://canto-js.googlecode.com/files/canto-%{V_canto}.js -Source46: http://mootools.net/download/get/mootools-core-%{V_mootools}-full-nocompat-yc.js -Source47: http://github.com/downloads/mui/mochaui/mochaui-%{V_mochaui}.zip -Source48: http://download.github.com/pure-pure-%{V_pure}.zip -Source49: http://www.dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_%{V_ddbelatedpng}.js -Source50: http://ftp.mozilla.org/pub/mozilla.org/labs/bespin/Embedded/BespinEmbedded-%{V_skywriter}.tar.gz -Source51: http://senchalabs.github.com/philogl/downloads/PhiloGL-%{V_philogl}.zip -Source52: https://download.github.com/mathjax-MathJax-v%{V_mathjax}.zip -Source53: dhtml.txt +Source39: http://code.jquery.com/mobile/%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.zip +Source40: http://interface.eyecon.ro/interface/interface_%{V_jquery_interface}.zip +Source41: http://download.openpkg.org/components/versioned/dhtml/excanvas-%{V_excanvas}.js +Source42: http://switch.dl.sourceforge.net/oat/oat-%{V_oat}.tar.gz +Source43: http://cdn.sencha.com/extjs-%{V_extjs}-gpl.zip +Source44: http://download.openpkg.org/components/versioned/dhtml/raphael-%{V_raphael}.js +Source45: http://download.openpkg.org/components/versioned/dhtml/svgweb-%{V_svgweb}.tar.gz +Source46: http://canto-js.googlecode.com/files/canto-%{V_canto}.js +Source47: http://mootools.net/download/get/mootools-core-%{V_mootools}-full-nocompat-yc.js +Source48: http://github.com/downloads/mui/mochaui/mochaui-%{V_mochaui}.zip +Source49: http://download.github.com/pure-pure-%{V_pure}.zip +Source50: http://www.dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_%{V_ddbelatedpng}.js +Source51: http://ftp.mozilla.org/pub/mozilla.org/labs/bespin/Embedded/BespinEmbedded-%{V_skywriter}.tar.gz +Source52: http://senchalabs.github.com/philogl/downloads/PhiloGL-%{V_philogl}.zip +Source53: https://download.github.com/mathjax-MathJax-v%{V_mathjax}.zip +Source54: dhtml.txt # build information BuildPreReq: OpenPKG, openpkg >= 20100101, infozip @@ -163,7 +166,7 @@ prog dhtml:scriptaculous = { version = %{V_scriptaculous} url = http://script.aculo.us/downloads - regex = scriptaculous-js-(__VER__)\.tar\.gz + regex = scriptaculous-js-(__VER__)\.zip } prog dhtml:rico-prototype = { version = %{V_rico_prototype} @@ -350,6 +353,11 @@ url = http://jquery.com/ regex = jquery-(\d+\.\d+(\.\d+)?)\.min\.js } + prog dhtml:jquerymobile = { + version = %{V_jquery_mobile} + url = http://code.jquery.com/mobile/ + regex = \d+\.\d+(\.\d+)?)/jquery\.mobile-(__VER__)\.zip + } prog dhtml:jquery-interface = { version = %{V_jquery_interface} url = http://interface.eyecon.ro/download @@ -423,7 +431,6 @@ %prep %setup -q -c -T - %setup -q -T -D -a 1 %setup -q -T -D -a 2 mkdir tinymce-%{V_tinymce} ( cd tinymce-%{V_tinymce}; %{l_prefix}/bin/unzip -q -x %{SOURCE7} ) || exit $? @@ -447,6 +454,7 @@ %setup -q -T -D -a 27 %setup -q -T -D -a 28 %setup -q -T -D -a 29 + %{l_prefix}/bin/unzip -q -x %{SOURCE1} %{l_prefix}/bin/unzip -q -x %{SOURCE6} %{l_prefix}/bin/unzip -q -x %{SOURCE9} %{l_prefix}/bin/unzip -q -x %{SOURCE30} @@ -458,16 +466,17 @@ %{l_prefix}/bin/unzip -q -x %{SOURCE36} %{l_prefix}/bin/unzip -q -x %{SOURCE37} %{l_prefix}/bin/unzip -q -x %{SOURCE39} - %setup -q -T -D -a 41 - %{l_prefix}/bin/unzip -q -x %{SOURCE42} + %{l_prefix}/bin/unzip -q -x %{SOURCE40} + %setup -q -T -D -a 42 + %{l_prefix}/bin/unzip -q -x %{SOURCE43} chmod -R a+r MochiKit-%{V_mochikit} - %setup -q -T -D -a 44 - %{l_prefix}/bin/unzip -q -x %{SOURCE47} + %setup -q -T -D -a 45 %{l_prefix}/bin/unzip -q -x %{SOURCE48} - %setup -q -T -D -a 50 + %{l_prefix}/bin/unzip -q -x %{SOURCE49} + %setup -q -T -D -a 51 mkdir philogl-%{V_philogl} - ( cd philogl-%{V_philogl}; %{l_prefix}/bin/unzip -q -x %{SOURCE51} ) || exit $? - %setup -q -T -D -a 52 + ( cd philogl-%{V_philogl}; %{l_prefix}/bin/unzip -q -x %{SOURCE52} ) || exit $? + %setup -q -T -D -a 53 %build @@ -526,7 +535,7 @@ %{l_shtool} install -c -m 644 \ dhtml.conf $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ %{l_shtool} install -c -m 644 \ - %{SOURCE prototype-%{V_prototype}.js} \ + %{SOURCE prototype.js} \ $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype/ %{l_shtool} install -c -m 644 \ %{SOURCE rico-%{V_rico}.js} \ @@ -645,6 +654,24 @@ cp "interface %{V_jquery_interface}/interface.js" \ $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery-interface.js %{l_shtool} install -c -m 644 \ + jquery.mobile-%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.min.css \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.min.css + %{l_shtool} install -c -m 644 \ + jquery.mobile-%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.min.js \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.min.js + %{l_shtool} install -c -m 644 \ + jquery.mobile-%{V_jquery_mobile}/jquery.mobile.structure-%{V_jquery_mobile}.min.css \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.structure.min.css + %{l_shtool} install -c -m 644 \ + jquery.mobile-%{V_jquery_mobile}/jquery.mobile.theme-%{V_jquery_mobile}.min.css \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.theme.min.css + %{l_shtool} install -c -m 755 \ + jquery.mobile-%{V_jquery_mobile}/demos \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.demos + %{l_shtool} install -c -m 755 \ + jquery.mobile-%{V_jquery_mobile}/images \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.images + %{l_shtool} install -c -m 644 \ %{SOURCE excanvas-%{V_excanvas}.js} \ $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/excanvas/excanvas.js cp -rp oat-%{V_oat}/oat/*.js \ @@ -693,4 +720,6 @@ %files -f files %clean +# Hack to avoid reusing old Prototype JS library +rm %{SOURCE0} diff -r d512b2ab0257 -r 1b852c64b120 dhtml/dhtml.txt --- a/dhtml/dhtml.txt Tue Aug 28 18:30:20 2012 +0200 +++ b/dhtml/dhtml.txt Tue Aug 28 18:30:25 2012 +0200 @@ -1,4 +1,3 @@ - To use these JavaScript libraries... 1. In the Apache webserver configuration: @@ -123,11 +122,14 @@ - - jQuery + - jQuery (see jquery.mobile.demos, jquery.mobile.images) [] [] + [] + [] + [] - ExplorerCanvas