]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - json-c/json-c.nm
json-c: Fix running the testsuite
[people/stevee/ipfire-3.x.git] / json-c / json-c.nm
CommitLineData
1a23cf90
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = json-c
7version = 0.12
8reldate = 20140410
0c7cb426 9release = 2
1a23cf90
MT
10thisapp = %{name}-%{version}-%{reldate}
11
12groups = System/Libraries
13url = https://github.com/json-c/json-c/wiki
14license = MIT
15summary = A JSON implementation in C
16
17description
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.
22end
23
24source_dl = https://github.com/json-c/json-c/archive/
25
26build
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
0c7cb426 48 export LD_LIBRARY_PATH=$(pwd)/.libs:$(pwd)/tests/.libs
1a23cf90
MT
49 make check
50 end
51end
52
53packages
54 package %{name}
55
56 package %{name}-devel
57 template DEVEL
58 end
59
60 package %{name}-debuginfo
61 template DEBUGINFO
62 end
63end