From 49fdbeced40a90be4bf0800eae4776c94a79f4ca Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 24 Dec 2025 16:44:59 -0800 Subject: [PATCH] add: glaze (#8575) (#8579) --- anda/lib/glaze/anda.hcl | 5 ++++ anda/lib/glaze/glaze.spec | 57 ++++++++++++++++++++++++++++++++++++++ anda/lib/glaze/update.rhai | 1 + 3 files changed, 63 insertions(+) create mode 100644 anda/lib/glaze/anda.hcl create mode 100644 anda/lib/glaze/glaze.spec create mode 100644 anda/lib/glaze/update.rhai diff --git a/anda/lib/glaze/anda.hcl b/anda/lib/glaze/anda.hcl new file mode 100644 index 0000000000..dcc7d97e09 --- /dev/null +++ b/anda/lib/glaze/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "glaze.spec" + } +} diff --git a/anda/lib/glaze/glaze.spec b/anda/lib/glaze/glaze.spec new file mode 100644 index 0000000000..52c9b93732 --- /dev/null +++ b/anda/lib/glaze/glaze.spec @@ -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 + +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 - 6.4.0-1 +- Package glaze + diff --git a/anda/lib/glaze/update.rhai b/anda/lib/glaze/update.rhai new file mode 100644 index 0000000000..8fc68f4c2e --- /dev/null +++ b/anda/lib/glaze/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("stephenberry/glaze"));