%global qt_module qtcoap #global unstable 1 %if 0%{?unstable} %global prerelease rc2 %endif %global examples 1 Summary: Qt6 - CoAP component Name: qt6-%{qt_module} Version: 6.8.1 Release: 2%{?dist} License: GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://www.qt.io %global majmin %(echo %{version} | cut -d. -f1-2) %global qt_version %(echo %{version} | cut -d~ -f1) Source0: https://github.com/qt/%{qt_module}/archive/refs/tags/v%{version}/%{qt_module}-%{version}.tar.gz ## upstreamable patches BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build BuildRequires: qt6-rpm-macros BuildRequires: qt6-qtbase-devel >= %{version} BuildRequires: qt6-qtbase-private-devel #libQt6Core.so.6(Qt_6_PRIVATE_API)(64bit) %{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} BuildRequires: qt6-qtdeclarative-devel >= %{version} %description Qt CoAP (API) provides classes and functions to access the CoAP protocol %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %if 0%{?examples} %package examples Summary: Programming examples for %{name} Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description examples %{summary}. %endif %prep %autosetup -n %{qt_module}-%{version} %build %cmake_qt6 \ -DQT_BUILD_EXAMPLES=%{?examples:ON}%{!?examples:OFF} \ -DQT_INSTALL_EXAMPLES_SOURCES=%{?examples:ON}%{!?examples:OFF} %cmake_build %install %cmake_install %files %license LICENSES/* %{_qt6_archdatadir}/sbom/%{qt_module}-%{qt_version}.spdx %{_qt6_libdir}/libQt6Coap.so.* %files devel %{_qt6_headerdir}/QtCoap/ %{_qt6_libdir}/libQt6Coap.so %{_qt6_libdir}/libQt6Coap.prl %{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtCoapTestsConfig.cmake %dir %{_qt6_libdir}/cmake/Qt6Coap/ %{_qt6_libdir}/cmake/Qt6Coap/*.cmake %{_qt6_archdatadir}/mkspecs/modules/* %{_qt6_libdir}/qt6/metatypes/qt6*_metatypes.json %{_qt6_libdir}/qt6/modules/*.json %{_qt6_libdir}/pkgconfig/*.pc %if 0%{?examples} %files examples %{_qt6_examplesdir}/ %endif %changelog * Thu Dec 05 2024 Jan Grulich - 6.8.1-2 - Move Software Bill of Materials from -devel * Thu Nov 28 2024 Jan Grulich - 6.8.1-1 - 6.8.1 * Fri Oct 11 2024 Jan Grulich - 6.8.0-1 - 6.8.0 * Fri Jul 19 2024 Fedora Release Engineering - 6.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jul 01 2024 Jan Grulich - 6.7.2-1 - 6.7.2 * Tue May 21 2024 Jan Grulich - 6.7.1-1 - 6.7.1 * Tue Apr 02 2024 Jan Grulich - 6.7.0-1 - 6.7.0 * Sat Feb 17 2024 Marie Loise Nolden - 6.6.2-1 - 6.6.2 * Fri Dec 08 2023 Marie Loise Nolden - 6.6.1-1 - 6.6.1 * Thu May 25 2023 Marie Loise Nolden - 6.5.1-1 - 6.5.1 * Tue Apr 4 2023 Marie Loise Nolden - 6.5.0-1 - 6.5.0 * Thu Dec 08 2022 Marie Loise Nolden - 6.4.1-1 - 6.4.1 * Fri Aug 05 2022 Marie Loise Nolden - 6.3.1-1 - 6.3.1