You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
201 lines
7.7 KiB
201 lines
7.7 KiB
## |
|
## dhtml.spec -- OpenPKG RPM Package Specification |
|
## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/> |
|
## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/> |
|
## |
|
## Permission to use, copy, modify, and distribute this software for |
|
## any purpose with or without fee is hereby granted, provided that |
|
## the above copyright notice and this permission notice appear in all |
|
## copies. |
|
## |
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
## SUCH DAMAGE. |
|
## |
|
|
|
# package version |
|
%define V_prototype 1.3.1 |
|
%define V_prototype_snap 1.4.20051216 |
|
%define V_scriptaculous 1.5.1 |
|
%define V_rico 1.1.0 |
|
%define V_mktree 20051017 |
|
%define V_dol 20050215 |
|
%define V_ie7 0_9 |
|
%define V_tinymce 2_0_1 |
|
%define V_os3grid 0.6 |
|
%define V_toolman 0.2 |
|
%define V_behaviour 1.1 |
|
|
|
# package information |
|
Name: dhtml |
|
Summary: Dynamic HTML Libraries |
|
URL: http://www.openpkg.org/ |
|
Vendor: OpenPKG |
|
Packager: OpenPKG |
|
Distribution: OpenPKG |
|
Class: EVAL |
|
Group: Web |
|
License: Open Source |
|
Version: 20060101 |
|
Release: 20060101 |
|
|
|
# list of sources |
|
Source0: http://prototype.conio.net/dist/prototype-%{V_prototype}.tar.gz |
|
Source1: http://script.aculo.us/dist/scriptaculous-js-%{V_scriptaculous}.tar.gz |
|
Source2: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/mktree-%{V_mktree}.tar.gz |
|
Source3: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/rico-%{V_rico}.js |
|
Source4: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/prototype-%{V_prototype_snap}.js |
|
Source5: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/DynamicOptionList-%{V_dol}.js |
|
Source6: http://osdn.dl.sourceforge.net/ie7/IE7_%{V_ie7}.zip |
|
Source7: http://osdn.dl.sourceforge.net/tinymce/tinymce_%{V_tinymce}.tgz |
|
Source8: http://osdn.dl.sourceforge.net/os3grid/os3grid-%{V_os3grid}.tar.bz2 |
|
Source9: http://tool-man.org/examples/ToolManDHTML-%{V_toolman}.zip |
|
Source10: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/behaviour-%{V_behaviour}.js |
|
Source11: dhtml.txt |
|
|
|
# build information |
|
Prefix: %{l_prefix} |
|
BuildRoot: %{l_buildroot} |
|
BuildPreReq: OpenPKG, openpkg >= 20040130, infozip |
|
PreReq: OpenPKG, openpkg >= 20040130 |
|
AutoReq: no |
|
AutoReqProv: no |
|
|
|
%description |
|
This is a collection of CSS and JavaScript based DHTML components |
|
which provide reusable WWW client-side extensions including IE7 |
|
compatibility workarounds, AJAX support, dynamic widgets, etc. |
|
|
|
%track |
|
prog dhtml:prototype = { |
|
version = %{V_prototype} |
|
url = http://prototype.conio.net/dist/ |
|
regex = prototype-(__VER__)\.tar\.gz |
|
} |
|
prog dhtml:prototype-snap = { |
|
version = %{V_prototype_snap} |
|
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ |
|
regex = prototype-(__VER__)\.js |
|
} |
|
prog dhtml:scriptaculous = { |
|
version = %{V_scriptaculous} |
|
url = http://script.aculo.us/downloads |
|
regex = scriptaculous-js-(__VER__)\.tar\.gz |
|
} |
|
prog dhtml:rico = { |
|
version = %{V_rico} |
|
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ |
|
regex = rico-(\d+\.\d+\.\d)\.js |
|
} |
|
prog dhtml:mktree = { |
|
version = %{V_mktree} |
|
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ |
|
regex = mktree-(__VER__)\.tar\.gz |
|
} |
|
prog dhtml:dol = { |
|
version = %{V_dol} |
|
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ |
|
regex = DynamicOptionList-(__VER__)\.js |
|
} |
|
prog dhtml:ie7 = { |
|
version = %{V_ie7} |
|
url = http://prdownloads.sourceforge.net/ie7/ |
|
regex = IE7_(__VER__)\.zip |
|
} |
|
prog dhtml:tinymce = { |
|
version = %{V_tinymce} |
|
url = http://prdownloads.sourceforge.net/tinymce/ |
|
regex = tinymce_(__VER__)\.tgz |
|
} |
|
prog dhtml:os3grid = { |
|
version = %{V_os3grid} |
|
url = http://prdownloads.sourceforge.net/os3grid/ |
|
regex = os3grid-(__VER__)\.tar\.bz2 |
|
} |
|
prog dhtml:toolman = { |
|
version = %{V_toolman} |
|
url = http://tool-man.org/examples/ |
|
regex = ToolManDHTML-(__VER__)\.zip |
|
} |
|
prog dhtml:behaviour = { |
|
version = %{V_behaviour} |
|
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/ |
|
regex = behaviour-(__VER__)\.js |
|
} |
|
|
|
%prep |
|
%setup -q -c |
|
%setup -q -T -D -a 1 |
|
%setup -q -T -D -a 2 |
|
%setup -q -T -D -a 7 |
|
%setup -q -T -D -a 8 |
|
%{l_prefix}/bin/unzip -q -x %{SOURCE6} |
|
%{l_prefix}/bin/unzip -q -x %{SOURCE9} |
|
|
|
%build |
|
|
|
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/scriptaculous \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mktree \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dol \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/tinymce \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/os3grid \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ie7 \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/toolman \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/behaviour |
|
%{l_shtool} install -c -m 644 \ |
|
prototype-%{V_prototype}/dist/*.js \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/prototype/ |
|
%{l_shtool} install -c -m 644 \ |
|
%{SOURCE rico-%{V_rico}.js} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico/rico.js |
|
%{l_shtool} install -c -m 644 \ |
|
%{SOURCE prototype-%{V_prototype_snap}.js} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/rico/prototype.js |
|
%{l_shtool} install -c -m 644 \ |
|
scriptaculous-js-%{V_scriptaculous}/lib/* \ |
|
scriptaculous-js-%{V_scriptaculous}/src/* \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/scriptaculous/ |
|
%{l_shtool} install -c -m 644 \ |
|
IE7_%{V_ie7}/ie7* \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/ie7/ |
|
%{l_shtool} install -c -m 644 \ |
|
mktree/* \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/mktree/ |
|
%{l_shtool} install -c -m 644 \ |
|
%{SOURCE DynamicOptionList-%{V_dol}.js} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/dol/dol.js |
|
cp -r tinymce/jscripts/tiny_mce/* \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/tinymce/ |
|
%{l_shtool} install -c -m 644 \ |
|
os3grid/os3grid.css os3grid/os3grid.js \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/os3grid/ |
|
%{l_shtool} install -c -m 644 \ |
|
tool-man/source/org/tool-man/* \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/toolman/ |
|
%{l_shtool} install -c -m 644 \ |
|
%{SOURCE behaviour-%{V_behaviour}.js} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/behaviour/behaviour.js |
|
%{l_shtool} install -c -m 644 \ |
|
%{SOURCE dhtml.txt} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/dhtml/README |
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
%files -f files |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|