Package dtk6declarative: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | %define soname 6 %def_enable clang Name: dtk6declarative Version: 6.0.11 Release: alt1 Summary: Widget development toolkit for Deepin Summary(ru): Инструментарий по разработке виджетов для Deepin License: LGPL-3.0+ Group: System/Configuration/Other Url: https://github.com/linuxdeepin/dtk6declarative Source: %url/archive/%version/%name-%version.tar.gz Patch: %name-%version-%release.patch %if_enabled clang ExcludeArch: armh %endif Provides: dtk6-declarative = %EVR Obsoletes: dtk6-declarative < %EVR BuildRequires(pre): rpm-build-ninja rpm-macros-qt6 %if_enabled clang BuildRequires: clang-devel %else BuildRequires: gcc-c++ %endif #BuildRequires: doxygen graphviz qt6-base-doc BuildRequires: cmake libdtk6gui-devel qt6-tools-devel qt6-declarative-devel qt6-shadertools-devel Requires: libqt6-core = %_qt6_version libqt6-qmlmodels = %_qt6_version libqt6-quickcontrols2 = %_qt6_version %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: - A primitive Qt and Qml code style. - Adapted APIs with traditional Qml. - Simple and quick development interfaces. - Unified widget theme style. - Abundant effects and colors. %description -l ru dtkdeclarative - это инструментарий для разработки виджетов, основанный на QtQuick / QtQml, который является совершенно новым заменителем dtkwidget. dtkdeclarative разрабатывается на основе qtdeclarative. Он охватывает все существующие виджеты QML и добавляет множество дружественных DTK визуальных эффектов и цветовых схем. По сравнению с дтквиджетом. Имеет: - Примитивный стиль кода Qt и Qml. - Адаптированные API с традиционным Qml. - Простые и быстрые интерфейсы разработки. - Унифицированный стиль темы виджета. - Обильные эффекты и цвета. %package -n lib%name%soname Summary: Libraries for %name Summary(ru): Библиотеки для %name Group: System/Libraries Requires: libqt6-core = %_qt6_version libqt6-gui = %_qt6_version libqt6-qml = %_qt6_version libqt6-qmlmodels = %_qt6_version libqt6-quick = %_qt6_version %description -n lib%name%soname The package provides libraries for %name. %description -n lib%name%soname -l ru Пакет содержит библиотеки для %name. %package -n lib%name-devel Summary: Development files for %name Summary(ru): Файлы разработки для %name Group: Development/KDE and QT Provides: dtk6-declarative-devel = %EVR Obsoletes: dtk6-declarative-devel < %EVR %description -n lib%name-devel The package provides development files for %name. %description -n lib%name-devel -l ru Пакет содержит библиотеки для %name. %package -n qt-creator-data-%name Summary: QtCreator Data files for %name Summary(ru): Файлы данных QtCreator для %name Group: Development/Tools BuildArch: noarch %description -n qt-creator-data-%name QtCreator Data files for %name. %description -n qt-creator-data-%name -l ru Файлы данных QtCreator для %name. %prep %setup %patch -p1 %build export PATH=%_qt6_bindir:$PATH %if_enabled clang export CC="clang" export CXX="clang++" export AR="llvm-ar" export NM="llvm-nm" export READELF="llvm-readelf" %endif %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DBUILD_DOCS=OFF \ -DMKSPECS_INSTALL_DIR=%_qt6_archdatadir/mkspecs/modules/ \ -DCMAKE_INSTALL_PREFIX=%_prefix \ -DINCLUDE_INSTALL_DIR=include \ -DCMAKE_INSTALL_LIBDIR=%_lib \ -DLIB_INSTALL_DIR=%_lib \ -DDTK_VERSION=%version \ -DVERSION=%version \ # cmake --build %_cmake__builddir -j%__nprocs %install %cmake_install %files %doc LICENSE README.md %dir %_libdir/dtk6/ %dir %_libdir/dtk6/DDeclarative/ %_libdir/dtk6/DDeclarative/dtk-exhibition %dir %_qt6_qmldir/Chameleon/ %_qt6_qmldir/Chameleon/* %dir %_qt6_qmldir/org/deepin/ %dir %_qt6_qmldir/org/deepin/dtk/ %_qt6_qmldir/org/deepin/dtk/%{name}* %_qt6_qmldir/org/deepin/dtk/*.qml %_qt6_qmldir/org/deepin/dtk/libdtkdeclarativeplugin.so %_qt6_qmldir/org/deepin/dtk/qmldir %dir %_qt6_qmldir/org/deepin/dtk/private/ %_qt6_qmldir/org/deepin/dtk/private/* %dir %_qt6_qmldir/org/deepin/dtk/settings/ %_qt6_qmldir/org/deepin/dtk/settings/* %dir %_datadir/dtk6/ %_datadir/dtk6/DDeclarative/ %files -n lib%name%soname %_libdir/lib%name.so.%{soname}* %files -n lib%name-devel %_includedir/* %_libdir/lib%name.so %_pkgconfigdir/%name.pc %dir %_libdir/cmake/Dtk6Declarative/ %_libdir/cmake/Dtk6Declarative/*.cmake %_qt6_archdatadir/mkspecs/modules/qt_lib_dtkdeclarative.pri %files -n qt-creator-data-%name %_datadir/qtcreator/templates/wizards/projects/qml6-app-template/ %changelog * Mon Apr 22 2024 Leontiy Volodin <lvol@altlinux.org> 6.0.11-alt1 - New version 6.0.11. * Wed Apr 03 2024 Leontiy Volodin <lvol@altlinux.org> 6.0.9-alt1 - Initial build for ALT Sisyphus. |