CBL-Mariner/SPECS/nlohmann-json/nlohmann-json.spec

70 строки
1.8 KiB
Plaintext

Summary: Modern C++11 JSON library
Name: nlohmann-json
Version: 3.11.3
Release: 1%{?dist}
License: MIT
Vendor: Microsoft Corporation
Distribution: Azure Linux
Group: System Environment
URL: https://github.com/nlohmann/json
#Source0: https://github.com/nlohmann/json/archive/v%%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
%global debug_package %{nil}
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: git
%description
A modern C++ JSON library.
%package devel
Summary: Development files for %{name}
%description devel
Development files for %{name}
%prep
%autosetup -S git -n json-%{version}
%build
mkdir build && cd build
%cmake ..
%make_build
%check
make test -C build
%install
%make_install -C build
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files devel
%defattr(-,root,root)
%license LICENSE.MIT
%doc README.md
%{_includedir}/nlohmann
%{_datadir}/cmake/nlohmann_json/nlohmann_jsonConfig.cmake
%{_datadir}/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake
%{_datadir}/cmake/nlohmann_json/nlohmann_jsonTargets.cmake
%{_datadir}/pkgconfig/nlohmann_json.pc
%changelog
* Fri Feb 02 2024 Thien Trung Vuong <tvuong@microsoft.com> - 3.11.3-1
- Update to version 3.11.3 for Azure Linux 3.0
* Fri Mar 04 2022 Muhammad Falak <mwani@microsoft.com> - 3.10.4-2
- Switch to `autosetup -S git`
- Add an explicit BR on `git` to enable ptest
* Wed Nov 10 2021 Pawel Winogrodzki <pawel.winogrodzki@microsoft.com> - 3.10.4-1
- Updating to version 3.10.4 to get code fixes for GCC 10 and 11.
* Mon Oct 12 2020 Thomas Crain <thcrain@microsoft.com> - 3.6.1-2
- Update Source0
- License verified
* Tue Feb 11 2020 Nick Bopp <nichbop@microsoft.com> - 3.6.1-1
- Original version for CBL-Mariner.