Name: qwhitesurgtkdecorations Version: 0.1.0 Release: 1%{?dist} Summary: Qt decoration plugin implementing WhiteSur-gtk-like client-side decorations License: LGPL-2.1 URL: https://github.com/FengZhongShaoNian/QWhiteSurGtkDecorations Source0: https://github.com/FengZhongShaoNian/QWhiteSurGtkDecorations/archive/%{version}/QWhiteSurGtkDecorations-%{version}.tar.gz BuildRequires: cmake BuildRequires: qt5-qtwayland BuildRequires: qt6-qtwayland BuildRequires: qt5-qtsvg BuildRequires: qt6-qtsvg %description Qt decoration plugin implementing WhiteSur-gtk-like client-side decorations. %package qt5 Summary: Qt5 decoration plugin implementing WhiteSur-gtk-like client-side decorations Requires: qt5-qtwayland Requires: qt5-qtsvg %description qt5 Qt5 decoration plugin implementing WhiteSur-gtk-like client-side decorations. %package qt6 Summary: Qt6 decoration plugin implementing WhiteSur-gtk-like client-side decorations Requires: qt6-qtwayland Requires: qt6-qtsvg %description qt6 Qt6 decoration plugin implementing WhiteSur-gtk-like client-side decorations. %prep %setup -q %build mkdir -p build-0.1.0-qt5 cd build-0.1.0-qt5 cmake -B build-0.1.0-qt5 -S %{_builddir}/qwhitesurgtkdecorations-%{version} -DCMAKE_INSTALL_PREFIX=/usr -DHAS_QT6_SUPPORT=true -DUSE_QT6=false make -C build-0.1.0-qt5 mkdir -p build-0.1.0-qt6 cd build-0.1.0-qt6 cmake -B build-0.1.0-qt6 -S %{_builddir}/qwhitesurgtkdecorations-%{version} -DCMAKE_INSTALL_PREFIX=/usr -DUSE_QT6=true make -C build-0.1.0-qt6 %install # Install Qt5 package mkdir -p %{buildroot}%{_libdir}/qt5 DESTDIR=%{buildroot} make -C build-%{version}-qt5 install # Install Qt6 package mkdir -p %{buildroot}%{_libdir}/qt6 DESTDIR=%{buildroot} make -C build-%{version}-qt6 install %files qt5 %{_libdir}/qt5 %files qt6 %{_libdir}/qt6 %changelog * Wed Nov 13 2024 Alexandra Travkina - 0.1.0 - Initial version