Update versions of primary components scriptaculous and prototype, and

Tue, 28 Aug 2012 18:30:25 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:30:25 +0200
changeset 539
1b852c64b120
parent 538
d512b2ab0257
child 540
6becb64fe77d

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.

dhtml/dhtml.spec file | annotate | diff | comparison | revisions
dhtml/dhtml.txt file | annotate | diff | comparison | revisions
     1.1 --- a/dhtml/dhtml.spec	Tue Aug 28 18:30:20 2012 +0200
     1.2 +++ b/dhtml/dhtml.spec	Tue Aug 28 18:30:25 2012 +0200
     1.3 @@ -22,10 +22,10 @@
     1.4  ##
     1.5  
     1.6  #   package version
     1.7 -%define       V_prototype                1.7.0.0
     1.8 +%define       V_prototype                1.7.1.0
     1.9  %define       V_rico                     1.1.2
    1.10  %define       V_rico_prototype           1.4
    1.11 -%define       V_scriptaculous            1.8.3
    1.12 +%define       V_scriptaculous            1.9.0
    1.13  %define       V_mktree                   20051017
    1.14  %define       V_dol                      20050215
    1.15  %define       V_ie7                      0_9
    1.16 @@ -57,10 +57,11 @@
    1.17  %define       V_cssquery                 2.0.2
    1.18  %define       V_ajaxslt                  0.4
    1.19  %define       V_spry                     p1-6-1_022508
    1.20 -%define       V_dojo                     1.8.0
    1.21 +%define       V_dojo                     1.7.3
    1.22  %define       V_mochikit                 1.4.2
    1.23  %define       V_ffjs                     1.11
    1.24  %define       V_jquery                   1.8.0
    1.25 +%define       V_jquery_mobile            1.1.1
    1.26  %define       V_jquery_interface         1.2
    1.27  %define       V_excanvas                 20090130
    1.28  %define       V_oat                      2.8
    1.29 @@ -87,11 +88,12 @@
    1.30  Group:        HTML
    1.31  License:      Open Source
    1.32  Version:      0
    1.33 -Release:      20120824
    1.34 +Release:      20120800
    1.35  
    1.36  #   list of sources
    1.37 -Source0:      http://download.openpkg.org/components/versioned/dhtml/prototype-%{V_prototype}.js
    1.38 -Source1:      http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.tar.gz
    1.39 +#Source0:      http://download.openpkg.org/components/versioned/dhtml/prototype-%{V_prototype}.js
    1.40 +Source0:      http://ajax.googleapis.com/ajax/libs/prototype/%{V_prototype}/prototype.js
    1.41 +Source1:      http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.zip
    1.42  Source2:      http://download.openpkg.org/components/versioned/dhtml/mktree-%{V_mktree}.tar.gz
    1.43  Source3:      http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}.js
    1.44  Source4:      http://download.openpkg.org/components/versioned/dhtml/rico-%{V_rico}-prototype-%{V_rico_prototype}.js
    1.45 @@ -129,21 +131,22 @@
    1.46  Source36:     http://mochikit.com/dist/MochiKit-%{V_mochikit}.zip
    1.47  Source37:     http://fforw.de/static/files/ffjs-r%{V_ffjs}.zip
    1.48  Source38:     http://code.jquery.com/jquery-%{V_jquery}.min.js
    1.49 -Source39:     http://interface.eyecon.ro/interface/interface_%{V_jquery_interface}.zip
    1.50 -Source40:     http://download.openpkg.org/components/versioned/dhtml/excanvas-%{V_excanvas}.js
    1.51 -Source41:     http://switch.dl.sourceforge.net/oat/oat-%{V_oat}.tar.gz
    1.52 -Source42:     http://cdn.sencha.com/extjs-%{V_extjs}-gpl.zip
    1.53 -Source43:     http://download.openpkg.org/components/versioned/dhtml/raphael-%{V_raphael}.js
    1.54 -Source44:     http://download.openpkg.org/components/versioned/dhtml/svgweb-%{V_svgweb}.tar.gz
    1.55 -Source45:     http://canto-js.googlecode.com/files/canto-%{V_canto}.js
    1.56 -Source46:     http://mootools.net/download/get/mootools-core-%{V_mootools}-full-nocompat-yc.js
    1.57 -Source47:     http://github.com/downloads/mui/mochaui/mochaui-%{V_mochaui}.zip
    1.58 -Source48:     http://download.github.com/pure-pure-%{V_pure}.zip
    1.59 -Source49:     http://www.dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_%{V_ddbelatedpng}.js
    1.60 -Source50:     http://ftp.mozilla.org/pub/mozilla.org/labs/bespin/Embedded/BespinEmbedded-%{V_skywriter}.tar.gz
    1.61 -Source51:     http://senchalabs.github.com/philogl/downloads/PhiloGL-%{V_philogl}.zip
    1.62 -Source52:     https://download.github.com/mathjax-MathJax-v%{V_mathjax}.zip
    1.63 -Source53:     dhtml.txt
    1.64 +Source39:     http://code.jquery.com/mobile/%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.zip
    1.65 +Source40:     http://interface.eyecon.ro/interface/interface_%{V_jquery_interface}.zip
    1.66 +Source41:     http://download.openpkg.org/components/versioned/dhtml/excanvas-%{V_excanvas}.js
    1.67 +Source42:     http://switch.dl.sourceforge.net/oat/oat-%{V_oat}.tar.gz
    1.68 +Source43:     http://cdn.sencha.com/extjs-%{V_extjs}-gpl.zip
    1.69 +Source44:     http://download.openpkg.org/components/versioned/dhtml/raphael-%{V_raphael}.js
    1.70 +Source45:     http://download.openpkg.org/components/versioned/dhtml/svgweb-%{V_svgweb}.tar.gz
    1.71 +Source46:     http://canto-js.googlecode.com/files/canto-%{V_canto}.js
    1.72 +Source47:     http://mootools.net/download/get/mootools-core-%{V_mootools}-full-nocompat-yc.js
    1.73 +Source48:     http://github.com/downloads/mui/mochaui/mochaui-%{V_mochaui}.zip
    1.74 +Source49:     http://download.github.com/pure-pure-%{V_pure}.zip
    1.75 +Source50:     http://www.dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_%{V_ddbelatedpng}.js
    1.76 +Source51:     http://ftp.mozilla.org/pub/mozilla.org/labs/bespin/Embedded/BespinEmbedded-%{V_skywriter}.tar.gz
    1.77 +Source52:     http://senchalabs.github.com/philogl/downloads/PhiloGL-%{V_philogl}.zip
    1.78 +Source53:     https://download.github.com/mathjax-MathJax-v%{V_mathjax}.zip
    1.79 +Source54:     dhtml.txt
    1.80  
    1.81  #   build information
    1.82  BuildPreReq:  OpenPKG, openpkg >= 20100101, infozip
    1.83 @@ -163,7 +166,7 @@
    1.84      prog dhtml:scriptaculous = {
    1.85          version   = %{V_scriptaculous}
    1.86          url       = http://script.aculo.us/downloads
    1.87 -        regex     = scriptaculous-js-(__VER__)\.tar\.gz
    1.88 +        regex     = scriptaculous-js-(__VER__)\.zip
    1.89      }
    1.90      prog dhtml:rico-prototype = {
    1.91          version   = %{V_rico_prototype}
    1.92 @@ -350,6 +353,11 @@
    1.93          url       = http://jquery.com/
    1.94          regex     = jquery-(\d+\.\d+(\.\d+)?)\.min\.js
    1.95      }
    1.96 +    prog dhtml:jquerymobile = {
    1.97 +        version   = %{V_jquery_mobile}
    1.98 +        url       = http://code.jquery.com/mobile/
    1.99 +        regex     = \d+\.\d+(\.\d+)?)/jquery\.mobile-(__VER__)\.zip
   1.100 +    }
   1.101      prog dhtml:jquery-interface = {
   1.102          version   = %{V_jquery_interface}
   1.103          url       = http://interface.eyecon.ro/download
   1.104 @@ -423,7 +431,6 @@
   1.105  
   1.106  %prep
   1.107      %setup -q -c -T
   1.108 -    %setup -q -T -D -a 1
   1.109      %setup -q -T -D -a 2
   1.110      mkdir tinymce-%{V_tinymce}
   1.111      ( cd tinymce-%{V_tinymce}; %{l_prefix}/bin/unzip -q -x %{SOURCE7} ) || exit $?
   1.112 @@ -447,6 +454,7 @@
   1.113      %setup -q -T -D -a 27
   1.114      %setup -q -T -D -a 28
   1.115      %setup -q -T -D -a 29
   1.116 +    %{l_prefix}/bin/unzip -q -x %{SOURCE1}
   1.117      %{l_prefix}/bin/unzip -q -x %{SOURCE6}
   1.118      %{l_prefix}/bin/unzip -q -x %{SOURCE9}
   1.119      %{l_prefix}/bin/unzip -q -x %{SOURCE30}
   1.120 @@ -458,16 +466,17 @@
   1.121      %{l_prefix}/bin/unzip -q -x %{SOURCE36}
   1.122      %{l_prefix}/bin/unzip -q -x %{SOURCE37}
   1.123      %{l_prefix}/bin/unzip -q -x %{SOURCE39}
   1.124 -    %setup -q -T -D -a 41
   1.125 -    %{l_prefix}/bin/unzip -q -x %{SOURCE42}
   1.126 +    %{l_prefix}/bin/unzip -q -x %{SOURCE40}
   1.127 +    %setup -q -T -D -a 42
   1.128 +    %{l_prefix}/bin/unzip -q -x %{SOURCE43}
   1.129      chmod -R a+r MochiKit-%{V_mochikit}
   1.130 -    %setup -q -T -D -a 44
   1.131 -    %{l_prefix}/bin/unzip -q -x %{SOURCE47}
   1.132 +    %setup -q -T -D -a 45
   1.133      %{l_prefix}/bin/unzip -q -x %{SOURCE48}
   1.134 -    %setup -q -T -D -a 50
   1.135 +    %{l_prefix}/bin/unzip -q -x %{SOURCE49}
   1.136 +    %setup -q -T -D -a 51
   1.137      mkdir philogl-%{V_philogl}
   1.138 -    ( cd philogl-%{V_philogl}; %{l_prefix}/bin/unzip -q -x %{SOURCE51} ) || exit $?
   1.139 -    %setup -q -T -D -a 52
   1.140 +    ( cd philogl-%{V_philogl}; %{l_prefix}/bin/unzip -q -x %{SOURCE52} ) || exit $?
   1.141 +    %setup -q -T -D -a 53
   1.142  
   1.143  %build
   1.144  
   1.145 @@ -526,7 +535,7 @@
   1.146      %{l_shtool} install -c -m 644 \
   1.147          dhtml.conf $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/
   1.148      %{l_shtool} install -c -m 644 \
   1.149 -        %{SOURCE prototype-%{V_prototype}.js} \
   1.150 +        %{SOURCE prototype.js} \
   1.151          $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype/
   1.152      %{l_shtool} install -c -m 644 \
   1.153          %{SOURCE rico-%{V_rico}.js} \
   1.154 @@ -645,6 +654,24 @@
   1.155      cp  "interface %{V_jquery_interface}/interface.js" \
   1.156          $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery-interface.js
   1.157      %{l_shtool} install -c -m 644 \
   1.158 +        jquery.mobile-%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.min.css \
   1.159 +        $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.min.css
   1.160 +    %{l_shtool} install -c -m 644 \
   1.161 +        jquery.mobile-%{V_jquery_mobile}/jquery.mobile-%{V_jquery_mobile}.min.js \
   1.162 +        $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.min.js
   1.163 +    %{l_shtool} install -c -m 644 \
   1.164 +        jquery.mobile-%{V_jquery_mobile}/jquery.mobile.structure-%{V_jquery_mobile}.min.css \
   1.165 +        $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.structure.min.css
   1.166 +    %{l_shtool} install -c -m 644 \
   1.167 +        jquery.mobile-%{V_jquery_mobile}/jquery.mobile.theme-%{V_jquery_mobile}.min.css \
   1.168 +        $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.theme.min.css
   1.169 +    %{l_shtool} install -c -m 755 \
   1.170 +        jquery.mobile-%{V_jquery_mobile}/demos \
   1.171 +        $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.demos
   1.172 +    %{l_shtool} install -c -m 755 \
   1.173 +        jquery.mobile-%{V_jquery_mobile}/images \
   1.174 +        $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.mobile.images
   1.175 +    %{l_shtool} install -c -m 644 \
   1.176          %{SOURCE excanvas-%{V_excanvas}.js} \
   1.177          $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/excanvas/excanvas.js
   1.178      cp -rp oat-%{V_oat}/oat/*.js \
   1.179 @@ -693,4 +720,6 @@
   1.180  %files -f files
   1.181  
   1.182  %clean
   1.183 +# Hack to avoid reusing old Prototype JS library
   1.184 +rm %{SOURCE0}
   1.185  
     2.1 --- a/dhtml/dhtml.txt	Tue Aug 28 18:30:20 2012 +0200
     2.2 +++ b/dhtml/dhtml.txt	Tue Aug 28 18:30:25 2012 +0200
     2.3 @@ -1,4 +1,3 @@
     2.4 -
     2.5  To use these JavaScript libraries...
     2.6  
     2.7  1. In the Apache webserver configuration:
     2.8 @@ -123,11 +122,14 @@
     2.9       <!-- FF JavaScript Library (http://fforw.de/post/ff_javascript_library/) -->
    2.10       <script type="text/javascript" src="/dhtml/ffjs/ff.js"></script>
    2.11  
    2.12 -   - jQuery
    2.13 +   - jQuery (see jquery.mobile.demos, jquery.mobile.images)
    2.14       <!-- JavaScript Toolkit (http://www.jquery.com/) -->
    2.15       <script type="text/javascript" src="/dhtml/jquery/jquery.js"></script>
    2.16       [<script type="text/javascript" src="/dhtml/jquery/jquery-interface.js"></script>]
    2.17       [<script type="text/javascript">jQuery.noConflict(); var j$ = jQuery;</script>]
    2.18 +     [<meta name="viewport" content="width=device-width, initial-scale=1">]
    2.19 +     [<link rel="stylesheet" href="/dhtml/jquery/jquery.mobile.min.css" />]
    2.20 +     [<script type="text/javascript" src="/dhtml/jquery/jquery.mobile.min.js"></script>]
    2.21  
    2.22     - ExplorerCanvas
    2.23       <!-- Google <CANVAS> Emulation for Internet Explorer (http://excanvas.sourceforge.net/) -->

mercurial