# Guidelines from https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/ Name: qcbor Version: 1.6.1 Release: 0%{?dist} Summary: A CBOR encoder/decoder library URL: https://github.com/laurencelundblade/QCBOR License: BSD-3-Clause Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: doxygen BuildRequires: coreutils %description Comprehensive, powerful, commercial-quality CBOR encoder and decoder that is still suited for small devices. %package devel Summary: Development files for the QCBOR library Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files needed to build and link to the QCBOR library. %package docs Summary: API documentation for QCBOR library Requires: %{name}%{?_isa} = %{version}-%{release} %description docs API documentation in the form of Docbook XML generated from the API with Doxygen. %prep %setup -q -n QCBOR-%{version} %build %cmake -DBUILD_QCBOR_TEST=APP %cmake_build pushd doxygen sed -i 's|GENERATE_DOCBOOK.*=.*|GENERATE_DOCBOOK = YES|g' Doxyfile sed -i 's|GENERATE_HTML.*=.*|GENERATE_HTML = NO|g' Doxyfile sed -i 's|GENERATE_MAN.*=.*|GENERATE_MAN = NO|g' Doxyfile doxygen popd %install %cmake_install install -m644 doxygen/docbook/*.xml -D -t %{buildroot}%{_docdir}/qcbor/docbook/ %check %ctest %files %license LICENSE %doc README.md %{_libdir}/libqcbor.so.1{,.*} %files devel %license LICENSE %doc README.md %{_includedir}/qcbor/ %{_libdir}/libqcbor.so %{_libdir}/cmake/qcbor/ %files docs %license LICENSE %{_docdir}/qcbor/ %changelog * Fri Mar 20 2026 Laurence Lundblade - 1.6.1 - Modernize cmake build and install - Minor QCBORDecode_EnteryArray() error handling bugfix * Wed Nov 12 2025 Laurence Lundblade - 1.6 - Better Windows/MSVC support - Bug fix for GetArray() and GetMap() - Fix gcc warnings - Bug fix for OpenBstr on empty map at end of input - Bug fix for floating-point NaN payload conversion for preferred serialization - Don't use strcpy() * Mon Jun 16 2025 Laurence Lundblade - 1.5.3 - Bug fix for GetArray() from empty map - Increase test coverage - Documentation improvements * Mon Jun 16 2025 Laurence Lundblade - 1.5.2 - Bug fix for QCBORDecode_GetMap() and QCBORDecode_GetArray() - Fix warning for compilers compliant with C23 standard - Minor documentation fix - Fix for embedded platforms with partial implementations of llround() * Mon Jan 8 2024 Laurence Lundblade - 1.5.1 - Initial library RPM packaging.