diff --git a/QGnomePlatform-0.5.tar.gz b/QGnomePlatform-0.5.tar.gz deleted file mode 100644 index 61d5c2e..0000000 Binary files a/QGnomePlatform-0.5.tar.gz and /dev/null differ diff --git a/QGnomePlatform-0.9.2.tar.gz b/QGnomePlatform-0.9.2.tar.gz new file mode 100644 index 0000000..8556126 Binary files /dev/null and b/QGnomePlatform-0.9.2.tar.gz differ diff --git a/qgnomeplatform.spec b/qgnomeplatform.spec index 780830f..ebfea14 100644 --- a/qgnomeplatform.spec +++ b/qgnomeplatform.spec @@ -1,37 +1,105 @@ Name: qgnomeplatform -Version: 0.5 -Release: 9 +Version: 0.9.2 +Release: 1 Summary: The module provides Qt Theme aimed to accommodate Gnome settings License: LGPLv2+ URL: https://github.com/MartinBriza/QGnomePlatform Source0: https://github.com/MartinBriza/QGnomePlatform/archive/%{version}/QGnomePlatform-%{version}.tar.gz -BuildRequires: pkgconfig(gio-2.0) pkgconfig(udev) pkgconfig(xkbcommon) gtk3-devel libinput-devel -BuildRequires: libXrender-devel qt5-qtbase-devel qt5-qtbase-static qt5-qtbase-private-devel -Requires: adwaita-qt5 + +BuildRequires: make +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(udev) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: gtk3-devel +BuildRequires: gsettings-desktop-schemas-devel +BuildRequires: libinput-devel +BuildRequires: libXrender-devel %description -The Qt Platform Theme named QGnomePlatform which aimed to accomodate multies -GNOME settings.The utilize Qt applications without modify this them could use -the them as well as possible. +QGnomePlatform is a Qt Platform Theme aimed to accommodate as much of +GNOME settings as possibleand utilize them in Qt applications without +modifying them - making them fit into the environment as well as possible. + +%package qt5 +Summary: Qt5 Platform Theme aimed to accommodate Gnome settings +BuildRequires: qt5-qtbase-devel >= 5.15.2 +BuildRequires: qt5-qtbase-static >= 5.15.2 +BuildRequires: qt5-qtquickcontrols2-devel >= 5.15.2 +BuildRequires: qt5-qtwayland-devel >= 5.15.2 +BuildRequires: qt5-qtbase-private-devel >= 5.15.2 +%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} + +BuildRequires: libadwaita-qt5-devel >= 1.4.2 +Requires: adwaita-qt5%{?_isa} + +# Replace QGnomePlatform package with this as it was the Qt5 flavor +Obsoletes: %{name} < 0.8.4-5 +Provides: %{name} = %{version}-%{release} +Provides: %{name}%{?_isa} = %{version}-%{release} +Supplements: (qt5-qtbase and gnome-shell) + +%description qt5 +QGnomePlatform is a Qt5 Platform Theme aimed to accommodate as much of +GNOME settings as possibleand utilize them in Qt applications without +modifying them - making them fit into the environment as well as possible. + +%package qt6 +Summary: Qt6 Platform Theme aimed to accommodate Gnome settings +BuildRequires: qt6-qtbase-devel >= 6.2.0 +BuildRequires: qt6-qtbase-static >= 6.2.0 +BuildRequires: qt6-qtquickcontrols2-devel >= 6.2.0 +BuildRequires: qt6-qtwayland-devel >= 6.2.0 +BuildRequires: qt6-qtbase-private-devel >= 6.2.0 +BuildRequires: libadwaita-qt6-devel >= 1.4.1 + +%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} +Requires: adwaita-qt6%{?_isa} + + +%description qt6 +QGnomePlatform is a Qt6 Platform Theme aimed to accommodate as much of +GNOME settings as possibleand utilize them in Qt applications without +modifying them - making them fit into the environment as well as possible. %prep -%autosetup -n QGnomePlatform-%{version} -p1 +%autosetup -p1 -n QGnomePlatform-%{version} %build -install -d %{_target_platform} -cd %{_target_platform} -%{qmake_qt5} .. -cd - -%make_build -C %{_target_platform} +%global _vpath_builddir %{_target_platform}-qt5 +%cmake -B "%{_vpath_builddir}" -DDECORATION_SHADOWS_SUPPORT=true +%__cmake --build "%{_vpath_builddir}" + +%global _vpath_builddir %{_target_platform}-qt6 +%cmake -B "%{_vpath_builddir}" -DUSE_QT6=true +%__cmake --build "%{_vpath_builddir}" %install -%make_install INSTALL_ROOT=%{buildroot} -C %{_target_platform} +%global _vpath_builddir %{_target_platform}-qt5 +DESTDIR="%{buildroot}" %__cmake --install "%{_vpath_builddir}" -%files -%doc README.md LICENSE -%{_qt5_libdir}/qt5/plugins/platformthemes/libqgnomeplatform.so +%global _vpath_builddir %{_target_platform}-qt6 +DESTDIR="%{buildroot}" %__cmake --install "%{_vpath_builddir}" + +%files qt5 +%doc README.md +%license LICENSE +%{_datadir}/color-schemes/*.colors +%{_qt5_libdir}/libqgnomeplatform.so +%{_qt5_plugindir}/platformthemes/libqgnomeplatformtheme.so +%{_qt5_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so + +%files qt6 +%doc README.md +%license LICENSE +%{_qt6_libdir}/libqgnomeplatform6.so +%{_qt6_plugindir}/platformthemes/libqgnomeplatformtheme.so +%{_qt6_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so +%exclude %{_datadir}/color-schemes/*.colors %changelog +* Tue Nov 21 2023 lwg - 0.9.2-1 +- update to version 0.9.2 + * Sat Jul 31 2021 chenyanpanHW - 0.5-9 - DESC: delete -S git from %autosetup, and delete BuildRequires git diff --git a/qgnomeplatform.yaml b/qgnomeplatform.yaml index 0df476a..16d8422 100644 --- a/qgnomeplatform.yaml +++ b/qgnomeplatform.yaml @@ -1,4 +1,4 @@ version-control: github src_repo: FedoraQt/QGnomePlatform tag_prefix: QGnomePlatform -seperator: . +separator: .