OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   07-Feb-2006 21:08:21
  Branch: HEAD                             Handle: 2006020720082100

  Added files:
    openpkg-src/json        json.spec

  Log:
    new package: json 20060207 (JavaScript Object Notation)

  Summary:
    Revision    Changes     Path
    1.1         +123 -0     openpkg-src/json/json.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/json/json.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 json.spec
  --- /dev/null 2006-02-07 21:08:20 +0100
  +++ json.spec 2006-02-07 21:08:21 +0100
  @@ -0,0 +1,123 @@
  +##
  +##  json.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_api_c   0.5
  +%define       V_api_pl  1.03
  +%define       V_api_js  20060207
  +%define       V_draft   01
  +
  +#   package information
  +Name:         json
  +Summary:      JavaScript Object Notation
  +URL:          http://www.json.org/
  +Vendor:       D. Crockford et al.
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Language
  +License:      Open Source
  +Version:      20060207
  +Release:      20060207
  +
  +#   list of sources
  +Source0:      http://oss.metaparadigm.com/json-c/json-c-%{V_api_c}.tar.gz
  +Source1:      
http://www.cpan.org/authors/id/M/MA/MAKAMAKA/JSON-%{V_api_pl}.tar.gz
  +Source2:      
ftp://ftp.openpkg.org/sources/CPY/VERSIONED/json/json-%{V_api_js}.js
  +Source3:      http://www.json.org/draft-crockford-jsonorg-json-%{V_draft}.txt
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, perl
  +PreReq:       OpenPKG, openpkg >= 20040130, perl
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    JSON (JavaScript Object Notation) is a lightweight data-interchange
  +    format. It is easy for humans to read and write. It is easy for
  +    machines to parse and generate. It is based on a subset of the
  +    JavaScript Programming Language, Standard ECMA-262 3rd Edition.
  +    JSON is a text format that is completely language independent but
  +    uses conventions that are familiar to programmers of the C-family
  +    of languages. These properties make JSON an ideal data-interchange
  +    language.
  +
  +%track
  +    prog json:json-c = {
  +        version   = %{V_api_c}
  +        url       = http://oss.metaparadigm.com/json-c/
  +        regex     = json-c-(__VER__)\.tar\.gz
  +    }
  +    prog json:json-pl = {
  +        version   = %{V_api_pl}
  +        url       = http://www.cpan.org/authors/id/M/MA/MAKAMAKA/
  +        regex     = JSON-(__VER__)\.tar\.gz
  +    }
  +    prog json:json-js = {
  +        version   = %{V_api_js}
  +        url       = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/json/
  +        regex     = json-(__VER__)\.js
  +    }
  +
  +%prep
  +    %setup -q -c
  +    %setup -q -T -D -a 1
  +
  +%build
  +    ( cd json-c-%{V_api_c}
  +      CC="%{l_cc}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --disable-shared
  +      %{l_make} %{l_mflags -O}
  +    ) || exit $?
  +    %{l_prefix}/bin/perl-openpkg prepare
  +    %{l_prefix}/bin/perl-openpkg -d JSON-%{V_api_pl} configure build
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    ( cd json-c-%{V_api_c}
  +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    ) || exit $?
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/share/json
  +    %{l_shtool} install -c -m 644 \
  +        %{SOURCE json-%{V_api_js}.js} \
  +        $RPM_BUILD_ROOT%{l_prefix}/share/json/json.js
  +    %{l_shtool} install -c -m 644 \
  +        %{SOURCE draft-crockford-jsonorg-json-%{V_draft}.txt} \
  +        $RPM_BUILD_ROOT%{l_prefix}/share/json/json.txt
  +    %{l_prefix}/bin/perl-openpkg -d JSON-%{V_api_pl} install
  +    %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} `cat perl-openpkg-files`
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to