From ca75057a8f9f9b0ce40b116e4e55e1067c67f8de Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:39:48 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.11.2-1mamba;Thu Sep 01 2022] --- README.md | 2 ++ nlohmann-json.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 nlohmann-json.spec 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