%global debug_package %{nil} # example tests needs cmake-extras to build, disable for now %bcond check 0 %global forgeurl https://gitlab.com/ubports/development/core/cmake-extras Version: 1.9 %global tag %{version} %forgemeta Name: cmake-extras Release: %autorelease Summary: A collection of add-ons for the CMake build tool License: LGPL-3.0-or-later AND BSD-2-Clause URL: %{forgeurl} Source0: %{forgesource} Patch0: cmake-extras-1.9-fix-find-qmlplugindump.patch Patch1: https://salsa.debian.org/debian-ayatana-team/cmake-extras/-/raw/master/debian/patches/1004_switch-to-python3.patch BuildRequires: gcc-c++ BuildRequires: cmake %if %{with check} BuildRequires: cmake(GDbus) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: cmake(IncludeChecker) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: python3-clang %endif BuildArch: noarch %description A collection of add-ons for the CMake build tool. %prep %forgeautosetup -p1 %build %cmake %cmake_build %install %cmake_install %if %{with check} %check pushd examples/gdbus-demo %cmake %cmake_build %ctest popd pushd examples/includechecker-demo %cmake %cmake_build %ctest popd %endif %files %license LICENSE %doc README.md %{_datadir}/cmake/CopyrightTest/ %{_datadir}/cmake/CoverageReport/ %{_datadir}/cmake/DoxygenBuilder/ %{_datadir}/cmake/FormatCode/ %{_datadir}/cmake/GDbus/ %{_datadir}/cmake/GMock/ %{_datadir}/cmake/GObjectIntrospection/ %{_datadir}/cmake/GSettings/ %{_datadir}/cmake/GdbusCodegen/ %{_datadir}/cmake/IncludeChecker/ %{_datadir}/cmake/Intltool/ %{_datadir}/cmake/Lcov/ %{_datadir}/cmake/QmlPlugins/ %{_datadir}/cmake/Vala/ %{_datadir}/cmake/gcovr/ %changelog %autochangelog