jansson/jansson.spec

changeset 797
ded2db56a196
equal deleted inserted replaced
-1:000000000000 0:bd007a99c1c9
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 ##
23
24
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
37
38 # list of sources
39 Source0: http://www.digip.org/jansson/releases/jansson-%{version}.tar.gz
40
41 # build information
42 BuildPreReq: OpenPKG, openpkg >= 20100101, make
43 PreReq: OpenPKG, openpkg >= 20100101
44
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.
50
51 %track
52 prog jansson = {
53 version = %{version}
54 url = http://www.digip.org/jansson/releases/
55 regex = jansson-(__VER__)\.tar\.gz
56 }
57
58 %prep
59 # unpack sources
60 %setup -q
61
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
71
72 # build using parallel make
73 %{l_make} %{l_mflags -O}
74
75 %install
76 # run the native installation logic
77 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
78
79 # determine installation files
80 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
81
82 %files -f files
83
84 %clean
85

mercurial