| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- ##
- ## dhtml.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2005 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_scriptaculous 1.5_rc5
- %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
- %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: 20051201
- Release: 20051201
- # 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: http://tool-man.org/examples/ToolManDHTML-%{V_toolman}.zip
- Source9: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/dhtml/behaviour-%{V_behaviour}.js
- Source10: 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
- }
- 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 6
- %setup -q -T -D -a 7
- %{l_prefix}/bin/unzip -q -x %{SOURCE5}
- %{l_prefix}/bin/unzip -q -x %{SOURCE8}
- %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 \
- 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
|