jansson/jansson.spec

Mon, 01 Sep 2014 21:55:47 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 01 Sep 2014 21:55:47 +0200
changeset 797
ded2db56a196
permissions
-rw-r--r--

Import new package specs for introduction into repository.

     1 ##
     2 ##  jansson.spec -- OpenPKG RPM Specification
     3 ##  Copyright (c) 2014 Michael Schloh von Bennewitz <michael@schloh.com>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    25 #   package information
    26 Name:         jansson
    27 Summary:      JSON data encoder, decoder and manipulator
    28 URL:          http://www.digip.org/jansson/
    29 Vendor:       Petri Lehtinen
    30 Packager:     Michael Schloh von Bennewitz
    31 Distribution: Europalab Networks Production
    32 Class:        EVAL
    33 Group:        Language
    34 License:      MIT
    35 Version:      2.6
    36 Release:      20140800
    38 #   list of sources
    39 Source0:      http://www.digip.org/jansson/releases/jansson-%{version}.tar.gz
    41 #   build information
    42 BuildPreReq:  OpenPKG, openpkg >= 20100101, make
    43 PreReq:       OpenPKG, openpkg >= 20100101
    45 %description
    46     Jansson is a C library for encoding, decoding and manipulating
    47     JSON data. It features a simple and intuitive API and data model,
    48     comprehensive documentation, no dependencies on other libraries,
    49     full Unicode support (UTF-8), and a extensive test suite.
    51 %track
    52     prog jansson = {
    53         version   = %{version}
    54         url       = http://www.digip.org/jansson/releases/
    55         regex     = jansson-(__VER__)\.tar\.gz
    56     }
    58 %prep
    59     #   unpack sources
    60     %setup -q
    62 %build
    63     #   prepare configuration
    64     CC="%{l_cc}" \
    65     CFLAGS="%{l_cflags -O}" \
    66     CPPFLAGS="%{l_cppflags}" \
    67     LDFLAGS="%{l_ldflags}" \
    68     ./configure \
    69         --prefix=%{l_prefix} \
    70         --disable-shared
    72     #   build using parallel make
    73     %{l_make} %{l_mflags -O}
    75 %install
    76     #   run the native installation logic
    77     %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    79     #   determine installation files
    80     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    82 %files -f files
    84 %clean

mercurial