diff --git a/README.md b/README.md index 65a7494..7087dbd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # nlohmann-json +JSON for Modern C++. + diff --git a/nlohmann-json.spec b/nlohmann-json.spec new file mode 100644 index 0000000..5823be6 --- /dev/null +++ b/nlohmann-json.spec @@ -0,0 +1,56 @@ +Name: nlohmann-json +Version: 3.11.2 +Release: 1mamba +Summary: JSON for Modern C++ +Group: Development/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://json.nlohmann.me/ +Source: https://github.com/nlohmann/json.git/v%{version}/json-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END + +%description +JSON for Modern C++. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: JSON for Modern C++ (header only library) +Requires: pkg-config + +%description -n lib%{name}-devel +JSON for Modern C++ (header only library). +This package contains header files for developing applications that use %{name}. + +#% debug_package + +%prep +%setup -q -n json-%{version} + +%build +%cmake -d build \ + -DJSON_BuildTests=OFF + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/nlohmann +%{_includedir}/nlohmann/* +%dir %{_datadir}/cmake/nlohmann_json +%{_datadir}/cmake/nlohmann_json/nlohmann_json*.cmake +%{_datadir}/pkgconfig/nlohmann_json.pc +%doc LICENSE.MIT ChangeLog.md README.md + +%changelog +* Thu Sep 01 2022 Silvan Calarco 3.11.2-1mamba +- package created using the webbuild interface