add: glaze (#8575) (#8579)

This commit is contained in:
Raboneko
2025-12-24 16:44:59 -08:00
committed by GitHub
parent 255d14ad34
commit 49fdbeced4
3 changed files with 63 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "glaze.spec"
}
}
+57
View File
@@ -0,0 +1,57 @@
# not needed because this is a header only library
%global debug_package %{nil}
Name: glaze-devel
Version: 6.4.0
Release: 1%{?dist}
License: MIT
URL: https://stephenberry.github.io/glaze
Source: https://github.com/stephenberry/glaze/archive/refs/tags/v%{version}.tar.gz
Summary: in memory JSON parsing and reflection library for modern C++
Packager: metcya <metcya@gmail.com>
BuildRequires: cmake
# even though we're not building anything, cmake still wants a c++ compiler
BuildRequires: gcc-c++
BuildRequires: mkdocs
BuildRequires: mkdocs-material
BuildRequires: python3-mkdocs-autorefs
%description
One of the fastest JSON libraries in the world. Glaze reads and writes from
object memory, simplifying interfaces and offering incredible performance.
%package -n glaze-docs
Summary: Documentation files for glaze
%description -n glaze-docs
Documentation files for glaze.
%prep
%autosetup -n glaze-%{version}
%build
%cmake -Dglaze_DEVELOPER_MODE=OFF \
-Dglaze_INSTALL_CMAKEDIR=%{_libdir}/cmake
mkdocs build
%install
%cmake_install
pushd site
find -type f -exec install -Dm 644 '{}' '%{buildroot}%{_pkgdocdir}/{}' \;
popd
%files
%license LICENSE
%doc README.md
%{_includedir}/glaze/
%{_libdir}/cmake/*.cmake
%files -n glaze-docs
%license LICENSE
%{_pkgdocdir}/
%changelog
* Wed Dec 24 2025 metcya <metcya@gmail.com> - 6.4.0-1
- Package glaze
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("stephenberry/glaze"));