# HG changeset patch # User Michael Schloh von Bennewitz # Date 1409601347 -7200 # Node ID ded2db56a196824163da7fec0264e67ad5c64535 # Parent 02101011a9bc2756159570865c8637fd7f6d7f8b Import new package specs for introduction into repository. diff -r 02101011a9bc -r ded2db56a196 jansson/jansson.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jansson/jansson.spec Mon Sep 01 21:55:47 2014 +0200 @@ -0,0 +1,85 @@ +## +## jansson.spec -- OpenPKG RPM Specification +## Copyright (c) 2014 Michael Schloh von Bennewitz +## +## 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 information +Name: jansson +Summary: JSON data encoder, decoder and manipulator +URL: http://www.digip.org/jansson/ +Vendor: Petri Lehtinen +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Networks Production +Class: EVAL +Group: Language +License: MIT +Version: 2.6 +Release: 20140800 + +# list of sources +Source0: http://www.digip.org/jansson/releases/jansson-%{version}.tar.gz + +# build information +BuildPreReq: OpenPKG, openpkg >= 20100101, make +PreReq: OpenPKG, openpkg >= 20100101 + +%description + Jansson is a C library for encoding, decoding and manipulating + JSON data. It features a simple and intuitive API and data model, + comprehensive documentation, no dependencies on other libraries, + full Unicode support (UTF-8), and a extensive test suite. + +%track + prog jansson = { + version = %{version} + url = http://www.digip.org/jansson/releases/ + regex = jansson-(__VER__)\.tar\.gz + } + +%prep + # unpack sources + %setup -q + +%build + # prepare configuration + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} \ + --disable-shared + + # build using parallel make + %{l_make} %{l_mflags -O} + +%install + # run the native installation logic + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean +