diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6febd23 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/qqc2-desktop-style-5.39.0.tar.xz diff --git a/qqc2-desktop-style.spec b/qqc2-desktop-style.spec new file mode 100644 index 0000000..62512f9 --- /dev/null +++ b/qqc2-desktop-style.spec @@ -0,0 +1,73 @@ +%global framework qqc2-desktop-style + +Name: %{framework} +Version: 5.39.0 +Release: 1%{?dist} +Summary: QtQuickControls2 style for consistency between QWidget and QML apps + +# kirigami-plasmadesktop-integration: LGPLv2+ +# plugin,org.kde.desktop: LGPLv3 or GPLv3 +License: (LGPLv3 or GPLv3) and LGPLv2+ +URL: https://cgit.kde.org/%{framework}.git + +%global versiondir %(echo %{version} | cut -d. -f1-2) +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules >= %{version} +BuildRequires: kf5-rpm-macros >= %{version} + +BuildRequires: cmake(KF5Kirigami2) >= %{version} +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5IconThemes) + +BuildRequires: cmake(Qt5Gui) +BuildRequires: cmake(Qt5Quick) +BuildRequires: cmake(Qt5Widgets) + +BuildRequires: qt5-qtquickcontrols2 +Requires: qt5-qtquickcontrols2%{?_isa} + +%description +This is a style for QtQuickControls 2 that uses QWidget's QStyle for +painting, making possible to achieve an higher degree of consistency +between QWidget-based and QML-based apps. + + +%prep +%autosetup -n %{framework}-%{version} -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +%files +%doc README.md +%license LICENSE* +%dir %{_kf5_plugindir}/kirigami/ +%{_kf5_plugindir}/kirigami/org.kde.desktop.so +%{_qt5_qmldir}/QtQuick/Controls.2/org.kde.desktop/ +%{_qt5_qmldir}/org/kde/qqc2desktopstyle/ +# yes, here +%{_kf5_libdir}/cmake/KF5QQC2DeskopStyle/ + + +%changelog +* Wed Oct 25 2017 Rex Dieter - 5.39.0-1 +- qqc2-desktop-style + diff --git a/sources b/sources new file mode 100644 index 0000000..d2626b4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (qqc2-desktop-style-5.39.0.tar.xz) = 4be8bf81ccab01e1b80db5fe08a21f52e621474326456a17ec105a0d4e4b10e1e7dfdcdedb491aea9816170d4e6354ccb4e5dc95cf77442f07f9a568eda82a95