Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
###############################################################################
name = json-c
-version = 0.12
-reldate = 20140410
-release = 2
+version = 0.16
+reldate = 20220414
+release = 1
thisapp = %{name}-%{version}-%{reldate}
groups = System/Libraries
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