Name: dtk6declarative Version: 6.0.19 Release: %autorelease Summary: Deepin Toolkit, declarative module for DDE look and feel License: LGPL-3.0-or-later URL: https://github.com/linuxdeepin/dtk6declarative Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz # virtual memory exhausted: Cannot allocate memory ExcludeArch: %{ix86} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Quick) BuildRequires: cmake(Qt6DBus) BuildRequires: cmake(Qt6QuickControls2) BuildRequires: cmake(Qt6LinguistTools) #BuildRequires: cmake(Qt6QuickCompiler) BuildRequires: cmake(Qt6ShaderTools) BuildRequires: cmake(Qt6LinguistTools) BuildRequires: qt6-qtbase-private-devel %{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} BuildRequires: cmake(Dtk6Core) BuildRequires: cmake(Dtk6Gui) BuildRequires: pkgconfig(gl) BuildRequires: doxygen %description dtkdeclarative is a widget development toolkit based on QtQuick/QtQml, which is a brand new substitute for dtkwidget. dtkdeclarative is developed based on qtdeclarative. It covers all existing QML widgets and adds plenty of DTK friendly visual effects and color schemes. Compared to dtkwidget. It has: 1. A primitive Qt and Qml code style 2. Adapted APIs with traditional Qml 3. Simple and quick development interfaces 4. Unified widget theme style 5. Abundant effects and colors %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: dtkcommon-devel%{_isa} %description devel This package contains development files for %{name}. %prep %autosetup -p1 %build %cmake -GNinja \ -DINCLUDE_INSTALL_DIR=%{_includedir}/dtk6/DDeclarative \ -DQCH_INSTALL_DESTINATION=%{_qt6_docdir} \ -DDTK_VERSION=%{version} \ %cmake_build %install %cmake_install %find_lang dtkdeclarative --all-name --with-qt %files -f dtkdeclarative.lang %license LICENSE %doc README.md %{_libdir}/libdtk6declarative.so.6* %dir %{_libdir}/dtk6/DDeclarative %{_libdir}/dtk6/DDeclarative/dtk-exhibition %{_qt6_qmldir}/Chameleon/ %{_qt6_qmldir}/org/deepin/dtk/ %files devel %dir %{_includedir}/dtk6 %{_includedir}/dtk6/DDeclarative/ %{_libdir}/cmake/Dtk6Declarative/ %{_libdir}/pkgconfig/dtk6declarative.pc %{_libdir}/libdtk6declarative.so %{_qt6_archdatadir}/mkspecs/modules/*.pri %{_qt6_docdir}/*.qch %{_datadir}/qtcreator/templates/wizards/projects/ %changelog %autochangelog