## START: Set by rpmautospec
## (rpmautospec version 0.8.4)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 3;
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
    print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec

%global forgeurl https://github.com/stephenberry/glaze

Name: glaze
Version: 9.0.0
Release: %autorelease
Summary: Extremely fast, in memory, serialization, reflection, and RPC library for C++. JSON, BEVE, BSON, CBOR, CSV, JSONB, MessagePack, TOML, YAML, EETF

%{forgemeta}
License: MIT
URL: %{forgeurl}
Source0: %{forgesource}
Patch0: 2977.patch

BuildRequires: cmake
BuildRequires: g++

BuildArch: noarch

%description
One of the fastest JSON libraries in the world. Glaze reads and writes from
object memory, simplifying interfaces and offering incredible performance.

%prep
%forgeautosetup -p1

%conf
# The cmake(glaze) provide is only found when cmake files are in that dir
%cmake \
	-Dglaze_DEVELOPER_MODE=OFF \
	-DBUILD_TESTING=OFF \
	-Dglaze_INSTALL_CMAKEDIR="%{_libdir}/cmake/glaze"

%build
%cmake_build

%install
%cmake_install

%check
%ctest

%files
%license LICENSE
%doc README.md
%{_includedir}/glaze/
%{_libdir}/cmake/glaze/

%changelog
## START: Generated by rpmautospec
* Mon Oct 12 2026 Quadratech188 <quadratech188@gmail.com> - 9.0.0-3
- fix: Add https://github.com/stephenberry/glaze/pull/2977

* Mon Oct 12 2026 Quadratech188 <quadratech188@gmail.com> - 9.0.0-2
- fix: Create srpm in correct directory

* Thu Sep 24 2026 quadratech188 <quadratech188@gmail.com> - 9.0.0-1
- auto: Bump glaze.spec to version 9.0.0

* Tue Sep 15 2026 quadratech188 <quadratech188@gmail.com> - 8.4.0-1
- auto: Bump glaze.spec to version [8, 4, 0]

* Sat Aug 29 2026 quadratech188 <quadratech188@gmail.com> - 8.3.0-1
- auto: Bump glaze.spec to version [8, 3, 0]

* Thu Aug 27 2026 quadratech188 <quadratech188@gmail.com> - 8.2.0-1
- auto: Bump glaze.spec to version [8, 2, 0]

* Wed Aug 26 2026 Quadratech188 <quadratech188@gmail.com> - 8.1.0-2
- fix: Let cmake(glaze) get discovered)

* Wed Aug 26 2026 Quadratech188 <quadratech188@gmail.com> - 8.1.0-1
- Initial commit
## END: Generated by rpmautospec
