|
|
|
|
@ -67,7 +67,10 @@
|
|
|
|
|
%define V_extjs 3.2.2 |
|
|
|
|
%define V_raphael 1.4.7 |
|
|
|
|
%define V_svgweb 2010-04-09-dracolisk |
|
|
|
|
%define V_canto 0.11 |
|
|
|
|
%define V_canto 0.12 |
|
|
|
|
%define V_mootools 1.2.4 |
|
|
|
|
%define V_mochaui 0.9.7 |
|
|
|
|
%define V_pure bc00883 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: dhtml |
|
|
|
|
@ -80,7 +83,7 @@ Class: BASE
|
|
|
|
|
Group: HTML |
|
|
|
|
License: Open Source |
|
|
|
|
Version: 0 |
|
|
|
|
Release: 20100730 |
|
|
|
|
Release: 20100808 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/dhtml/prototype-%{V_prototype}.js |
|
|
|
|
@ -129,7 +132,10 @@ Source42: http://extjs.com/deploy/ext-%{V_extjs}.zip
|
|
|
|
|
Source43: http://download.openpkg.org/components/versioned/dhtml/raphael-%{V_raphael}.js |
|
|
|
|
Source44: http://svgweb.googlecode.com/files/svgweb-%{V_svgweb}.zip |
|
|
|
|
Source45: http://canto-js.googlecode.com/files/canto-%{V_canto}.js |
|
|
|
|
Source46: dhtml.txt |
|
|
|
|
Source46: http://mootools.net/download/get/mootools-%{V_mootools}-core-yc.js |
|
|
|
|
Source47: http://github.com/downloads/mui/mochaui/mochaui-%{V_mochaui}.zip |
|
|
|
|
Source48: http://download.github.com/pure-pure-%{V_pure}.zip |
|
|
|
|
Source49: dhtml.txt |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20100101, infozip |
|
|
|
|
@ -371,6 +377,21 @@ PreReq: OpenPKG, openpkg >= 20100101
|
|
|
|
|
url = http://code.google.com/p/canto-js/downloads/list |
|
|
|
|
regex = canto-(__VER__)\.js |
|
|
|
|
} |
|
|
|
|
prog dhtml:mootools = { |
|
|
|
|
version = %{V_mootools} |
|
|
|
|
url = http://mootools.net/download |
|
|
|
|
regex = mootools-(__VER__)-core-yc\.js |
|
|
|
|
} |
|
|
|
|
prog dhtml:mochaui = { |
|
|
|
|
version = %{V_mochaui} |
|
|
|
|
url = http://github.com/mui/mochaui/downloads |
|
|
|
|
regex = mochaui-(__VER__)\.zip |
|
|
|
|
} |
|
|
|
|
prog dhtml:pure = { |
|
|
|
|
version = %{V_pure} |
|
|
|
|
url = http://beebole.com/pure/documentation/pure-with-your-js-library/ |
|
|
|
|
regex = pure-pure-(__VER__)\.zip |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -c -T |
|
|
|
|
@ -414,6 +435,8 @@ PreReq: OpenPKG, openpkg >= 20100101
|
|
|
|
|
%{l_prefix}/bin/unzip -q -x %{SOURCE42} |
|
|
|
|
chmod -R a+r MochiKit-%{V_mochikit} |
|
|
|
|
%{l_prefix}/bin/unzip -q -x %{SOURCE44} |
|
|
|
|
%{l_prefix}/bin/unzip -q -x %{SOURCE47} |
|
|
|
|
%{l_prefix}/bin/unzip -q -x %{SOURCE48} |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
|
|
|
|
|
@ -453,7 +476,10 @@ PreReq: OpenPKG, openpkg >= 20100101
|
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ext \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/raphael \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/svgweb \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/canto |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/canto \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mootools \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mochaui \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/pure |
|
|
|
|
( echo "Alias /openpkg-dhtml/ %{l_prefix}/share/dhtml/" |
|
|
|
|
echo "<Directory %{l_prefix}/share/dhtml/>" |
|
|
|
|
echo " Options Indexes" |
|
|
|
|
@ -606,6 +632,14 @@ PreReq: OpenPKG, openpkg >= 20100101
|
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
%{SOURCE canto-%{V_canto}.js} \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/canto/canto.js |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
%{SOURCE mootools-%{V_mootools}-core-yc.js} \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mootools/ |
|
|
|
|
cp -rp mochaui-%{V_mochaui}/build/* \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mochaui/ |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
pure-pure-%{V_pure}/libs/pure.js \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/pure/ |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
|
|
|
|
|
|
%files -f files |
|
|
|
|
|