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.

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

mercurial