]>
Commit | Line | Data |
---|---|---|
1a23cf90 MT |
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 | |
0c7cb426 | 9 | release = 2 |
1a23cf90 MT |
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 | |
0c7cb426 | 48 | export LD_LIBRARY_PATH=$(pwd)/.libs:$(pwd)/tests/.libs |
1a23cf90 MT |
49 | make check |
50 | end | |
51 | end | |
52 | ||
53 | packages | |
54 | package %{name} | |
55 | ||
56 | package %{name}-devel | |
57 | template DEVEL | |
58 | end | |
59 | ||
60 | package %{name}-debuginfo | |
61 | template DEBUGINFO | |
62 | end | |
63 | end |