nlohmann-json/nlohmann-json.spec

57 lines
1.4 KiB
RPMSpec
Raw Normal View History

Name: nlohmann-json
Version: 3.11.2
Release: 1mamba
Summary: JSON for Modern C++
Group: Development/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 3.11.2-1mamba
- package created using the webbuild interface