diff --git a/qqc2-desktop-style-5.97.0.tar.xz b/qqc2-desktop-style-5.97.0.tar.xz new file mode 100644 index 0000000..195c5ad Binary files /dev/null and b/qqc2-desktop-style-5.97.0.tar.xz differ diff --git a/qqc2-desktop-style.spec b/qqc2-desktop-style.spec new file mode 100644 index 0000000..35ed8b5 --- /dev/null +++ b/qqc2-desktop-style.spec @@ -0,0 +1,74 @@ +%global framework qqc2-desktop-style + +Name: %{framework} +Version: 5.97.0 +Release: 1 +Summary: QtQuickControls2 style for consistency between QWidget and QML apps +License: (LGPLv3 or GPLv3) and LGPLv2+ +URL: https://invent.kde.org/frameworks/%{framework} + +%global majmin %(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/%{majmin}/%{framework}-%{version}.tar.xz +BuildRequires: extra-cmake-modules >= %{majmin} +BuildRequires: kf5-rpm-macros +BuildRequires: kf5-kirigami2-devel >= %{majmin} +Requires: kf5-kirigami2%{?_isa} >= %{majmin} +BuildRequires: kf5-kconfigwidgets-devel >= %{majmin} +BuildRequires: kf5-kiconthemes-devel >= %{majmin} + +BuildRequires: cmake(KF5Kirigami2) +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5IconThemes) + +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5Widgets) +# Cmake need this +BuildRequires: pkgconfig(Qt5X11Extras) + +BuildRequires: qt5-qtquickcontrols2-devel +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_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +%files +%doc README.md +%license LICENSES/*.txt +%dir %{_kf5_plugindir}/kirigami/ +%{_kf5_plugindir}/kirigami/org.kde.desktop.so +%{_qt5_qmldir}/QtQuick/Controls.2/org.kde.desktop/ +%{_qt5_qmldir}/org/kde/qqc2desktopstyle/ +%{_kf5_libdir}/cmake/KF5QQC2DeskopStyle/ +%{_kf5_libdir}/cmake/KF5QQC2DesktopStyle/ + + +%changelog +* Thu Jul 14 2022 misaka00251 - 5.97.0-1 +- Init package diff --git a/qqc2-desktop-style.yaml b/qqc2-desktop-style.yaml new file mode 100644 index 0000000..031f61c --- /dev/null +++ b/qqc2-desktop-style.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/qqc2-desktop-style +tag_prefix: "^v" +separator: "."