]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - json-c/json-c.nm
json-c: New package
[people/ms/ipfire-3.x.git] / json-c / json-c.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = json-c
7 version = 0.12
8 reldate = 20140410
9 release = 1
10 thisapp = %{name}-%{version}-%{reldate}
11
12 groups = System/Libraries
13 url = https://github.com/json-c/json-c/wiki
14 license = MIT
15 summary = A JSON implementation in C
16
17 description
18 JSON-C implements a reference counting object model that allows you to
19 easily construct JSON objects in C, output them as JSON formatted strings
20 and parse JSON formatted strings back into the C representation of JSON
21 objects.
22 end
23
24 source_dl = https://github.com/json-c/json-c/archive/
25
26 build
27 requires
28 autoconf
29 automake
30 libtool
31 end
32
33 DIR_APP = %{DIR_SRC}/%{name}-%{thisapp}
34
35 prepare_cmds
36 sed -i 's|-Werror ||g' Makefile.am.inc
37
38 # Bump the soname manually.
39 sed -i 's#2:1:0#3:0:0#' Makefile.am
40
41 autoreconf -vif
42 end
43
44 configure_options += \
45 --enable-rdrand
46
47 test
48 make check
49 end
50 end
51
52 packages
53 package %{name}
54
55 package %{name}-devel
56 template DEVEL
57 end
58
59 package %{name}-debuginfo
60 template DEBUGINFO
61 end
62 end