10 Commits

Author SHA256 Message Date
ff796226d9 Accepting request 1321341 from devel:tools:building
- Add fix-filename-and-path-of-qmlplugindump.patch, support both qmlplugindump-qt5
  and qmlplugindump-qt6 (boo#1254531) (forwarded request 1321340 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1321341
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake-extras?expand=0&rev=6
2025-12-08 10:54:02 +00:00
d8c85a3210 Accepting request 1321340 from home:hillwood:branches:X11:Deepin:Factory
- Add fix-filename-and-path-of-qmlplugindump.patch, support both qmlplugindump-qt5
  and qmlplugindump-qt6 (boo#1254531)

OBS-URL: https://build.opensuse.org/request/show/1321340
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake-extras?expand=0&rev=12
2025-12-06 08:20:03 +00:00
f3433ce235 Accepting request 1321282 from devel:tools:building
- Fix filename and path of qmlplugindump-qt5 for openSUSE (forwarded request 1321265 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1321282
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake-extras?expand=0&rev=5
2025-12-05 16:42:34 +00:00
90fac627de - Fix filename and path of qmlplugindump-qt5 for openSUSE
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake-extras?expand=0&rev=10
2025-12-05 14:05:56 +00:00
c1df5538a3 Accepting request 1311685 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/1311685
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake-extras?expand=0&rev=4
2025-10-16 15:39:27 +00:00
c3a85139ba - update to 1.9
* add support for CMake 4.0
- drop cmake-extras-1.8-cmake4.patch as it is part of the release

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake-extras?expand=0&rev=8
2025-10-16 11:26:41 +00:00
8a7345a082 Accepting request 1271987 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/1271987
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake-extras?expand=0&rev=3
2025-04-22 20:13:42 +00:00
c7c7e4e873 Accepting request 1270603 from home:AndreasStieger:branches:devel:tools:building
fix build with cmake4 (boo#1239788)

OBS-URL: https://build.opensuse.org/request/show/1270603
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake-extras?expand=0&rev=6
2025-04-22 16:25:58 +00:00
07117f7bfd Accepting request 1255977 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/1255977
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake-extras?expand=0&rev=2
2025-03-25 21:12:39 +00:00
3e44c6ad1b Accepting request 1255504 from home:mathletic:branches:devel:tools:building
- upate to 1.8
  * GMock: wire dependencies between GMock step and library files
  * QmlPlugins: Crude support for qt6

OBS-URL: https://build.opensuse.org/request/show/1255504
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake-extras?expand=0&rev=4
2025-03-25 13:28:08 +00:00
5 changed files with 78 additions and 23 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:159d773f12f94089c64c842007085aafd8129b7f3648a9ac44eab614070e6d21
size 87295

3
cmake-extras-1.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d04eba46e81873fa9f06759edd12b045bc14d7559c49023397ef65999a8fff0a
size 88249

View File

@@ -1,3 +1,33 @@
-------------------------------------------------------------------
Sat Dec 6 08:05:56 UTC 2025 - Hillwood Yang <hillwood@opensuse.org>
- Add fix-filename-and-path-of-qmlplugindump.patch, support both qmlplugindump-qt5
and qmlplugindump-qt6 (boo#1254531)
-------------------------------------------------------------------
Fri Dec 5 12:51:31 UTC 2025 - Hillwood Yang <hillwood@opensuse.org>
- Fix filename and path of qmlplugindump-qt5 for openSUSE
-------------------------------------------------------------------
Wed Oct 8 23:19:56 UTC 2025 - Christoph G <foss@grueninger.de>
- update to 1.9
* add support for CMake 4.0
- drop cmake-extras-1.8-cmake4.patch as it is part of the release
-------------------------------------------------------------------
Thu Apr 17 16:47:21 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- fix build with cmake4 (boo#1239788) cmake-extras-1.8-cmake4.patch
-------------------------------------------------------------------
Mon Mar 24 06:56:18 UTC 2025 - Christoph G <foss@grueninger.de>
- upate to 1.8
* GMock: wire dependencies between GMock step and library files
* QmlPlugins: Crude support for qt6
-------------------------------------------------------------------
Sun Mar 24 12:37:46 UTC 2024 - Hillwood Yang <hillwood@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package cmake-extras
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,42 +15,45 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: cmake-extras
Version: 1.7
Version: 1.9
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
BuildRequires: cmake
BuildRequires: vala
BuildRequires: qmlpluginexports-qt5
BuildRequires: lcov
BuildRequires: intltool
# PATCH-FIX-OPENSUSE hillwood@opensuse.org fix-filename-and-path-of-qmlplugindump.patch
Patch: fix-filename-and-path-of-qmlplugindump.patch
BuildRequires: clang
BuildRequires: llvm-gold
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcovr
BuildRequires: gettext
BuildRequires: gmock
BuildRequires: gcovr
BuildRequires: doxygen
BuildRequires: intltool
BuildRequires: lcov
BuildRequires: llvm-gold
BuildRequires: pkg-config
BuildRequires: qmlpluginexports-qt5
BuildRequires: vala
# 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: cmake
Requires: doxygen
Requires: gcovr
Requires: gettext
Requires: gmock
Requires: gcovr
Requires: doxygen
Requires: intltool
Requires: lcov
Requires: llvm-gold
Requires: pkg-config
Requires: qmlpluginexports-qt5
Requires: vala
Requires: pkgconfig(gio-2.0)
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(gobject-introspection-1.0)
@@ -61,7 +64,6 @@ 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
@@ -78,4 +80,3 @@ sed -i 's|/usr/bin/env python|/usr/bin/python3|g' src/IncludeChecker/include_che
%{_datadir}/cmake/*
%changelog

View File

@@ -0,0 +1,24 @@
diff -Nur cmake-extras-1.9/src/QmlPlugins/QmlPluginsConfig.cmake cmake-extras-1.9-new/src/QmlPlugins/QmlPluginsConfig.cmake
--- cmake-extras-1.9/src/QmlPlugins/QmlPluginsConfig.cmake 2025-09-01 17:24:00.000000000 +0800
+++ cmake-extras-1.9-new/src/QmlPlugins/QmlPluginsConfig.cmake 2025-12-06 15:57:56.857255160 +0800
@@ -7,10 +7,17 @@
endif()
if(NOT TARGET qmlplugindump)
- find_program(qmlplugindump_exe qmlplugindump HINTS /usr/lib/qt${QT_VERSION_MAJOR}/bin/)
-
+ if (QT_VERSION_MAJOR GREATER_EQUAL 6)
+ find_program(qmlplugindump_exe qmlplugindump6 HINTS /usr/bin/)
+ else()
+ find_program(qmlplugindump_exe qmlplugindump-qt5 HINTS /usr/bin/)
+ endif()
if(NOT qmlplugindump_exe)
- message(FATAL_ERROR "Could not locate qmlplugindump.")
+ if (QT_VERSION_MAJOR GREATER_EQUAL 6)
+ message(FATAL_ERROR "Could not locate qmlplugindump6. Maybe qt6-declarative-tools is not be installed.")
+ else()
+ message(FATAL_ERROR "Could not locate qmlplugindump-qt5. Maybe libqt5-qtdeclarative-tools is not be installed.")
+ endif()
endif()
add_executable(qmlplugindump IMPORTED)