From 31e73bc9f290bc5dc7829a77676c9c32e18e1889 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Wed, 7 Feb 2007 09:02:39 +0000 Subject: [PATCH] add the excellent jQuery toolkit and some of its plugins I found most interesting --- dhtml/dhtml.spec | 132 +++++++++++++++++++++++++++++++++++++++++++++-- dhtml/dhtml.txt | 15 ++++++ 2 files changed, 144 insertions(+), 3 deletions(-) diff --git a/dhtml/dhtml.spec b/dhtml/dhtml.spec index 22037d0535..4680ec01a0 100644 --- a/dhtml/dhtml.spec +++ b/dhtml/dhtml.spec @@ -63,6 +63,19 @@ %define V_mochikit 1.3.1 %define V_ffjs 1.1 %define V_dwt 0.2 +%define V_jquery 1.1.1 +%define V_jquery_interface 1.1.2 +%define V_jquery_form 1.0.3 +%define V_jquery_dimensions 20070206 +%define V_jquery_metadata 20070206 +%define V_jquery_highlightfade 0.7 +%define V_jquery_shortkeys 20070207 +%define V_jquery_moreselectors 20060906 +%define V_jquery_F 20061121 +%define V_jquery_cookie 20070207 +%define V_jquery_create 20070207 +%define V_jquery_array 20070207 +%define V_jquery_easing 1.1 # package information Name: dhtml @@ -75,7 +88,7 @@ Class: BASE Group: HTML License: Open Source Version: %{V_dhtml} -Release: 20070206 +Release: 20070207 # list of sources Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/prototype-%{V_prototype}.js @@ -117,7 +130,20 @@ Source35: http://download.dojotoolkit.org/release-%{V_dojo}/dojo-%{V_dojo}-a Source36: http://mochikit.com/dist/MochiKit-%{V_mochikit}.zip Source37: http://fforw.de/static/files/ffjs-r%{V_ffjs}.zip Source38: http://switch.dl.sourceforge.net/dwt/dwt-%{V_dwt}.tar.gz -Source39: dhtml.txt +Source39: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-%{V_jquery}.pack.js +Source40: http://interface.eyecon.ro/interface/interface_%{V_jquery_interface}.zip +Source41: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-form-%{V_jquery_form}.js +Source42: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-dimensions-%{V_jquery_dimensions}.js +Source43: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-metadata-%{V_jquery_metadata}.js +Source44: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-highlightfade-%{V_jquery_highlightfade}.js +Source45: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-shortkeys-%{V_jquery_shortkeys}.js +Source46: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-moreselectors-%{V_jquery_moreselectors}.js +Source47: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-F-%{V_jquery_F}.js +Source48: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-cookie-%{V_jquery_cookie}.js +Source49: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-create-%{V_jquery_create}.js +Source50: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-array-%{V_jquery_array}.js +Source51: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/jquery-easing-%{V_jquery_easing}.js +Source52: dhtml.txt # build information Prefix: %{l_prefix} @@ -328,6 +354,66 @@ AutoReqProv: no url = http://prdownloads.sourceforge.net/dwt/ regex = dwt-(__VER__)\.tar\.gz } + prog dhtml:jquery = { + version = %{V_jquery} + url = http://jquery.com/dev/svn/tags/ + regex = tags/(\d+\.\d+\.\d+) + } + prog dhtml:jquery-interface = { + version = %{V_jquery_interface} + url = http://interface.eyecon.ro/download + regex = interface_(__VER__)\.zip + } + prog dhtml:jquery-form = { + version = %{V_jquery_form} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-form-(__VER__)\.js + } + prog dhtml:jquery-dimensions = { + version = %{V_jquery_dimensions} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-dimensions-(__VER__)\.js + } + prog dhtml:jquery-metadata = { + version = %{V_jquery_metadata} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-metadata-(__VER__)\.js + } + prog dhtml:jquery-highlightfade = { + version = %{V_jquery_highlightfade} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-highlightfade-(__VER__)\.js + } + prog dhtml:jquery-shortkeys = { + version = %{V_jquery_shortkeys} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-shortkeys-(__VER__)\.js + } + prog dhtml:jquery-moreselectors = { + version = %{V_jquery_moreselectors} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-moreselectors-(__VER__)\.js + } + prog dhtml:jquery-F = { + version = %{V_jquery_F} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-F-(__VER__)\.js + } + prog dhtml:jquery-cookie = { + version = %{V_jquery_cookie} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-cookie-(__VER__)\.js + } + prog dhtml:jquery-create = { + version = %{V_jquery_create} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-create-(__VER__)\.js + } + prog dhtml:jquery-array = { + version = %{V_jquery_array} + url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ + regex = jquery-array-(__VER__)\.js + } %prep %setup -q -c -T @@ -368,6 +454,7 @@ AutoReqProv: no %{l_prefix}/bin/unzip -q -x %{SOURCE36} %{l_prefix}/bin/unzip -q -x %{SOURCE37} %setup -q -T -D -a 38 + %{l_prefix}/bin/unzip -q -x %{SOURCE40} %build @@ -401,7 +488,8 @@ AutoReqProv: no $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dojo \ $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mochikit \ $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ffjs \ - $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dwt + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dwt \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin %{l_shtool} install -c -m 644 \ %{SOURCE prototype-%{V_prototype}.js} \ $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype/ @@ -520,6 +608,44 @@ AutoReqProv: no $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ffjs/ cp -rp dwt-%{V_dwt}/WebContent/* \ $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dwt/ + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-%{V_jquery}.pack.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/jquery.js + cp "interface %{V_jquery_interface}/interface.js" \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/ + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-form-%{V_jquery_form}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/form.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-dimensions-%{V_jquery_dimensions}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/dimensions.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-metadata-%{V_jquery_metadata}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/metadata.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-highlightfade-%{V_jquery_highlightfade}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/highlightfade.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-shortkeys-%{V_jquery_shortkeys}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/shortkeys.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-moreselectors-%{V_jquery_moreselectors}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/moreselectors.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-F-%{V_jquery_F}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/F.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-cookie-%{V_jquery_cookie}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/cookie.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-create-%{V_jquery_create}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/create.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-array-%{V_jquery_array}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/array.js + %{l_shtool} install -c -m 644 \ + %{SOURCE jquery-easing-%{V_jquery_easing}.js} \ + $RPM_BUILD_ROOT%{l_prefix}/share/dhtml/jquery/plugin/easing.js %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files diff --git a/dhtml/dhtml.txt b/dhtml/dhtml.txt index 31a6d61a56..c55a234428 100644 --- a/dhtml/dhtml.txt +++ b/dhtml/dhtml.txt @@ -127,3 +127,18 @@ To use these JavaScript libraries... + - jQuery + + + [] + [] + [] + [] + [] + [] + [] + [] + [] + [] + [] +