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}/%{name}-%{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 %autosetup -n %{name}-%{version} %build # Build for Qt5 cmake -B build-%{version}-qt5 -S %{name}-%{version} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DHAS_QT6_SUPPORT=true \ -DUSE_QT6=false make -C build-%{version}-qt5 # Build for Qt6 cmake -B build-%{version}-qt6 -S %{name}-%{version} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DUSE_QT6=true make -C build-%{version}-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