]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
json-c: Update to 0.16
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Nov 2022 12:31:37 +0000 (12:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Nov 2022 12:31:37 +0000 (12:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
json-c/json-c.nm

index de4278da81be1d008fa9d95c2ccb324d14981785..fcca69087bfed098c78966fe35cb06899d6f50fa 100644 (file)
@@ -4,9 +4,9 @@
 ###############################################################################
 
 name       = json-c
-version    = 0.12
-reldate    = 20140410
-release    = 2
+version    = 0.16
+reldate    = 20220414
+release    = 1
 thisapp    = %{name}-%{version}-%{reldate}
 
 groups     = System/Libraries
@@ -25,28 +25,15 @@ source_dl  = https://github.com/json-c/json-c/archive/
 
 build
        requires
-               autoconf
-               automake
-               libtool
+               cmake
        end
 
        DIR_APP = %{DIR_SRC}/%{name}-%{thisapp}
 
-       prepare_cmds
-               sed -i 's|-Werror ||g' Makefile.am.inc
+       build
+               %{cmake} .
 
-               # Bump the soname manually.
-               sed -i 's#2:1:0#3:0:0#' Makefile.am
-
-               autoreconf -vif
-       end
-
-       configure_options += \
-               --enable-rdrand
-
-       test
-               export LD_LIBRARY_PATH=$(pwd)/.libs:$(pwd)/tests/.libs
-               make check
+               make %{PARALLELISMFLAGS}
        end
 end