File project.diff of Package gsettings-qt
--- gsettings-qt.changes.orig
+++ gsettings-qt.changes
@@ -1,4 +1,61 @@
-------------------------------------------------------------------
+Fri Dec 5 13:02:30 UTC 2025 - Hillwood Yang <hillwood@opensuse.org>
+
+- Update version to 1.1.0
+ * tests/CMakeLists.txt: Re-sort build steps to have things that belong
+ together written up together. Plus use an ordering that alludes to how things
+ depend on one another.
+ * CMakeLists.txt: Bump cmake_minimum_required() to CMake 3.18 (needed for
+ REQUIRED flag in find_program()).
+ * GSettings/CMakeLists.txt: Use add_qmlplugin() from cmake-extras instead of
+ hacking it together ourselves.
+ * src/CMakeLists.txt: Drop NO_KEYWORDS property from
+ set_target_properties(gsettings-qt ...). No known functionality.
+ * Use IMPORTED_TARGET feature of PkgConfig CMake module for finding/linking
+ against Gio.
+ * src/{CMakeLists.txt,gsettings-qt.pc.in}: Simplify setting library path.
+ * tests/CMakeLists.txt: Check if program glib-compile-schemas is available.
+ * Expose defaultValue method to module 1.1
+ * tests/CMakeLists.txt: fix missed library target rename
+ * CMake: Leave files of Qt5 variant of gsettings-qt un-QT-versioned, only
+ start using QT_VERSION_MAJOR in library name for Qt6 and above.")
+ * CMakeLists.txt: replace enable_testing() with include(CTest)
+ * buildsystem: Switch to cmake
+ * Mark QmlPlugins package as REQUIRED
+ * CMakeLists.txt: Rename WERROR to ENABLE_WERROR (for consistency with other
+ Lomiri projects)
+ * CMake: Leave files of Qt5 variant of gsettings-qt un-QT-versioned, only
+ start using QT_VERSION_MAJOR in library name for Qt6 and above.
+ * GSettings/CMakeLists.txt: Install QML files to ${URI}, not
+ ${URI}.${API_VER}.
+ * GSettings/CMakeLists.txt: No versioned QML plugin dir
+ * GSettings/CMakeLists.txt: When building on Debian (& friends) search for
+ qmlplugin at a Qt-version specific location.
+ * Bump to DH compat level version 13.
+ * CMake: Improve Qt5/Qt6 namespacing. Allow installation of both build
+ variants.
+ * buildsystem: Add support for qt6
+ * src: Use QMetaType::type instead of QVariant::type as its deprecated.
+ * src/CMakeLists.txt: Drop inclusion of CMakePackageConfigHelpers. No
+ functionality
+ * GSettings/CMakeLists.txt: Actually add the .so file to the QML plugin and
+ also auto-generate the plugins.qmltypes file on the file during build
+ * src/CMakeLists.txt: White-space beautification (indentation).
+ * CMake: Support settings a library SOVERSION independent from the
+ PROJECT_VERSION
+ * src/: Install include files (like many many other Qt projects do) to a
+ multi-arch path including the Qt version.
+ * src/CMakeLists.txt: Merge two install targets with same destination folder
+ * src/gsettings-qt.pc.in: Use @CMAKE_INSTALL_INCLUDEDIR@ for defining
+ includedir= key in .pc file
+ * CMake: Unit tests require glib-2.0. Check for it only if testing is enabled
+ * GSettings/CMakeLists.txt: Also set -DQT_NO_KEYWORDS definition for QML
+ plugin build
+- Add fix-filename-and-path-of-qmlplugindump.patch, fix filename and path of qmlplugindump
+ for openSUSE
+- Drop dependencies.patch
+
+-------------------------------------------------------------------
Tue Feb 27 11:19:08 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %autosetup macro. Allows to eliminate the usage of deprecated
--- gsettings-qt.spec.orig
+++ gsettings-qt.spec
@@ -19,15 +19,18 @@
%define libver 1
Name: gsettings-qt
-Version: 0.2
+Version: 1.1.0
Release: 0
Summary: QT bindings for GSettings
License: GPL-3.0+
Group: Development/Libraries/X11
-Url: https://gitlab.com/ubports/core/gsettings-qt
-Source0: %{url}/-/archive/v%{version}/gsettings-qt-v%{version}.tar.bz2
-Patch0: dependencies.patch
+Url: https://gitlab.com/ubports/development/core/gsettings-qt
+Source0: https://gitlab.com/ubports/development/core/gsettings-qt/-/archive/v%{version}/gsettings-qt-v%{version}.tar.bz2
+# PATCH-FIX-OPENSUSE fix-filename-and-path-of-qmlplugindump.patch hillwood@opensuse.org
+# Fix filename and path of qmlplugindump for openSUSE
+Patch0: fix-filename-and-path-of-qmlplugindump.patch
BuildRequires: pkg-config
+BuildRequires: cmake(QmlPlugins)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
@@ -44,11 +47,17 @@ BuildRoot: %{_tmppath}/%{name}-%{ve
%description
Qt/QML bindings for GSettings.
-%package -n libgsettings-qt1
+%package -n %{name}5
+Summary: QT bindings for GSettings
+
+%description -n %{name}5
+Qt/QML bindings for GSettings.
+
+%package -n libgsettings-qt5-%{libver}
Summary: Libraries for gsettings-qt
Group: System/Libraries
-%description -n libgsettings-qt1
+%description -n libgsettings-qt5-%{libver}
Qt/QML bindings for GSettings.
This package is Libraries for gsettings-qt.
@@ -56,7 +65,7 @@ This package is Libraries for gsettings-
%package devel
Summary: Libraries for gsettings-qt
Group: Development/Libraries/X11
-Requires: libgsettings-qt1 = %{version}
+Requires: libgsettings-qt5-%{libver} = %{version}
%description devel
Qt/QML bindings for GSettings.
@@ -68,27 +77,25 @@ docs for gsettings-qt.
%autosetup -p1 -n %{name}-v%{version}
%build
-%qmake5 DEFINES+=QT_NO_DEBUG_OUTPUT \
- PREFIX=%{_prefix} \
- LIB_INSTALL_DIR=%{_libdir}
-%make_build
+%cmake
+%cmake_build
%install
-%qmake5_install
+%cmake_install
# Remove useless files
-rm -rf %{buildroot}/usr/tests
+# rm -rf %{buildroot}/usr/tests
-%post -n libgsettings-qt1 -p /sbin/ldconfig
-%postun -n libgsettings-qt1 -p /sbin/ldconfig
+%post -n libgsettings-qt5-%{libver} -p /sbin/ldconfig
+%postun -n libgsettings-qt5-%{libver} -p /sbin/ldconfig
-%files
+%files -n %{name}5
%license COPYING
-%dir %{_libdir}/qt5/qml/GSettings.1.0
-%{_libdir}/qt5/qml/GSettings.1.0/libGSettingsQmlPlugin.so
-%{_libdir}/qt5/qml/GSettings.1.0/plugins.qmltypes
-%{_libdir}/qt5/qml/GSettings.1.0/qmldir
+%dir %{_libdir}/qt5/qml/GSettings
+%{_libdir}/qt5/qml/GSettings/libGSettingsQmlPlugin.so
+%{_libdir}/qt5/qml/GSettings/plugins.qmltypes
+%{_libdir}/qt5/qml/GSettings/qmldir
-%files -n libgsettings-qt1
+%files -n libgsettings-qt5-%{libver}
%{_libdir}/libgsettings-qt.so.*
%files devel