# Guidelines from https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/ Name: qcbor Version: 1.6.1 Release: 2%{?dist} Summary: A CBOR encoder/decoder library URL: https://github.com/laurencelundblade/QCBOR License: BSD-3-Clause Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: doxygen %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 doc Summary: API documentation for QCBOR library Requires: %{name}%{?_isa} = %{version}-%{release} %description doc 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 = YES|g' Doxyfile sed -i 's|GENERATE_MAN.*=.*|GENERATE_MAN = NO|g' Doxyfile doxygen popd %install %cmake_install mkdir -p %{buildroot}%{_datadir}/help/en/qcbor cp -r doxygen/docbook %{buildroot}%{_datadir}/help/en/qcbor/ cp -r doxygen/html %{buildroot}%{_datadir}/help/en/qcbor/ %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 doc %license LICENSE %doc %lang(en) %{_datadir}/help/en/qcbor/ %changelog * Tue Jun 09 2026 Brian Sipos - 1.6.1-2 - Import into Fedora * Fri Mar 20 2026 Laurence Lundblade - 1.6.1-1 - Modernize cmake build and install - Minor QCBORDecode_EnteryArray() error handling bugfix * Wed Nov 12 2025 Laurence Lundblade - 1.6.0-1 - 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-1 - Bug fix for GetArray() from empty map - Increase test coverage - Documentation improvements * Mon Jun 16 2025 Laurence Lundblade - 1.5.2-1 - 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-1 - Initial library RPM packaging.