diff --git a/json.spec b/json.spec index 10da73be45b..6f6788f6f06 100644 --- a/json.spec +++ b/json.spec @@ -1,16 +1,21 @@ -### RPM external json 3.10.2 +### RPM external json 3.11.3 ## NOCOMPILER -Source: https://github.com/nlohmann/%{n}/releases/download/v%{realversion}/include.zip +Source: https://github.com/nlohmann/json/archive/refs/tags/v%{realversion}.tar.gz %prep -%setup -c +%setup -n %{n}-%{realversion} %build +rm -rf ../build; mkdir ../build; cd ../build +cmake ../%{n}-%{realversion} \ + -DCMAKE_INSTALL_PREFIX:PATH="%i" \ + -DCMAKE_BUILD_TYPE=%{cmake_build_type} \ + -DJSON_BuildTests=OFF \ + -DJSON_MultipleHeaders=OFF -%install -mkdir -p %{i}/include/nlohmann -cp -a include/nlohmann/json_fwd.hpp %{i}/include/nlohmann/ -cp -a single_include/nlohmann/json.hpp %{i}/include/nlohmann/ +make %makeprocesses VERBOSE=1 -%post +%install +cd ../build +make install