File cmake-extras.spec of Package cmake-extras
#
# spec file for package cmake-extras
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: cmake-extras
Version: 1.8
Release: 0
Summary: A collection of add-ons for the CMake build tool
License: GPL-3.0-or-later
Group: Development/Tools/Building
URL: https://gitlab.com/ubports/development/core/cmake-extras
Source: https://gitlab.com/ubports/development/core/cmake-extras/-/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: cmake-extras-1.8-cmake4.patch
BuildRequires: cmake
BuildRequires: vala
BuildRequires: qmlpluginexports-qt5
BuildRequires: lcov
BuildRequires: intltool
BuildRequires: clang
BuildRequires: llvm-gold
BuildRequires: gettext
BuildRequires: gmock
BuildRequires: gcovr
BuildRequires: doxygen
BuildRequires: pkg-config
# BuildRequires: licensecheck
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
Requires: cmake
Requires: vala
Requires: qmlpluginexports-qt5
Requires: lcov
Requires: intltool
Requires: clang
Requires: llvm-gold
Requires: gettext
Requires: gmock
Requires: gcovr
Requires: doxygen
Requires: pkg-config
Requires: pkgconfig(gio-2.0)
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(gobject-introspection-1.0)
BuildArch: noarch
%description
A collection of add-ons for the CMake build tool.
%prep
%autosetup -p1
sed -i 's/qmlplugindump_exe/qmlplugindump_exe-qt5/g' src/QmlPlugins/QmlPluginsConfig.cmake
sed -i 's|/usr/bin/env python|/usr/bin/python3|g' src/IncludeChecker/include_checker.py
# rm -rf src/CopyrightTest examples/copyrighttest-demo
%build
%cmake
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md ChangeLog AUTHORS
%{_datadir}/cmake/*
%changelog