## ## dhtml.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. ## Copyright (c) 2000-2005 Ralf S. Engelschall ## ## 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_scriptaculous 1.5_rc4 %define V_rico 1.1b2 %define V_mktree 20051017 %define V_dol 20050215 %define V_ie7 0_9 %define V_tinymce 2_0RC4 %define V_os3grid 0.6 # 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: 20051031 Release: 20051031 # 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/DynamicOptionList-%{V_dol}.js Source5: http://osdn.dl.sourceforge.net/ie7/IE7_%{V_ie7}.zip Source6: http://osdn.dl.sourceforge.net/tinymce/tinymce_%{V_tinymce}.tgz Source7: http://osdn.dl.sourceforge.net/os3grid/os3grid-%{V_os3grid}.tar.bz2 Source8: 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: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-(__VER__)\.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 } %prep %setup -q -c %setup -q -T -D -a 1 %setup -q -T -D -a 2 %setup -q -T -D -a 6 %setup -q -T -D -a 7 %{l_prefix}/bin/unzip -q -x %{SOURCE5} %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 %{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 \ 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 \ %{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