]>
Commit | Line | Data |
---|---|---|
1a0aba9c JP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without webengine # QtWebEngine based help viewer | |
4 | ||
5 | %ifnarch %{x8664} aarch64 | |
6 | %undefine with_webengine | |
7 | %endif | |
8 | ||
9 | %define qtver 6 | |
10 | ||
2aefa737 | 11 | Summary: An IDE tailored to the needs of Qt developers |
7ae82ab7 | 12 | Summary(pl.UTF-8): IDE dostosowane do potrzeb programistów Qt |
2aefa737 | 13 | Name: qt-creator |
eacd362b | 14 | Version: 8.0.2 |
d65a65eb | 15 | Release: 6 |
2aefa737 | 16 | Epoch: 1 |
17 | License: LGPL v2.1 | |
0bdd3f4c | 18 | Group: X11/Development/Tools |
eacd362b JP |
19 | Source0: https://download.qt.io/official_releases/qtcreator/8.0/%{version}/%{name}-opensource-src-%{version}.tar.xz |
20 | # Source0-md5: bdd73958efa2383a6a0953b81f48cc57 | |
99af3ed4 | 21 | Patch0: llvm15.patch |
7ae82ab7 | 22 | URL: https://doc.qt.io/qt-5/topics-app-development.html |
1a0aba9c JP |
23 | BuildRequires: Qt6Concurrent-devel >= %{qtver} |
24 | BuildRequires: Qt6Designer-devel >= %{qtver} | |
25 | BuildRequires: Qt6Gui-devel >= %{qtver} | |
26 | BuildRequires: Qt6Help-devel >= %{qtver} | |
27 | BuildRequires: Qt6Network-devel >= %{qtver} | |
28 | BuildRequires: Qt6PrintSupport-devel >= %{qtver} | |
29 | BuildRequires: Qt6Qml-devel >= %{qtver} | |
30 | BuildRequires: Qt6Qt5Compat-devel >= %{qtver} | |
31 | BuildRequires: Qt6Quick-devel >= %{qtver} | |
32 | BuildRequires: Qt6SerialPort-devel >= %{qtver} | |
33 | BuildRequires: Qt6ShaderTools-devel >= %{qtver} | |
34 | BuildRequires: Qt6Sql-devel >= %{qtver} | |
35 | BuildRequires: Qt6Svg-devel >= %{qtver} | |
36 | BuildRequires: Qt6UiTools-devel >= %{qtver} | |
37 | %{?with_webengine:BuildRequires: Qt6WebEngine-devel >= %{qtver}} | |
38 | BuildRequires: Qt6Widgets-devel >= %{qtver} | |
39 | BuildRequires: Qt6Xml-devel >= %{qtver} | |
f0f82bee | 40 | BuildRequires: clang-devel >= 6.0.0 |
ed875dd6 | 41 | BuildRequires: gdb |
c031d74e | 42 | BuildRequires: libstdc++-devel |
e6ea2852 | 43 | BuildRequires: llvm-devel >= 7.0.0 |
1a0aba9c JP |
44 | BuildRequires: qt6-build >= %{qtver} |
45 | BuildRequires: qt6-linguist | |
46 | BuildRequires: qt6-shadertools | |
47 | BuildRequires: rpmbuild(macros) >= 1.742 | |
0d9c9649 JP |
48 | BuildRequires: tar >= 1:1.22 |
49 | BuildRequires: xz | |
0bdd3f4c | 50 | Requires(post,postun): desktop-file-utils |
1a0aba9c JP |
51 | %requires_eq Qt6Core |
52 | Requires: Qt6Gui-platform-xcb | |
53 | Requires: Qt6Sql-sqldriver-sqlite3 | |
333344fa | 54 | Requires: hicolor-icon-theme |
273f85fd | 55 | Requires: qt5-qtdeclarative |
0bdd3f4c MB |
56 | # for xdg-open |
57 | Suggests: xdg-utils | |
2aefa737 | 58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59 | ||
273f85fd JR |
60 | %define skip_post_check_so 'libClangsupport\.so.*' |
61 | ||
2aefa737 | 62 | %description |
ed875dd6 ER |
63 | Qt Creator is a cross-platform integrated development environment |
64 | (IDE) tailored to the needs of Qt developers. | |
2aefa737 | 65 | |
66 | %description -l pl.UTF-8 | |
7ae82ab7 | 67 | Qt Creator to wieloplatformowe IDE dostosowane do potrzeb programistów |
ed875dd6 | 68 | Qt. |
2aefa737 | 69 | |
70 | %prep | |
78e69ec7 | 71 | %setup -q -n %{name}-opensource-src-%{version} |
99af3ed4 | 72 | %patch0 -p1 |
2b26ffea | 73 | |
ebd8bd57 JP |
74 | sed -i '1s|^#!.*python\b|#!%{__python}|' src/shared/qbs/src/3rdparty/python/bin/dmgbuild |
75 | ||
2aefa737 | 76 | %build |
eacd362b | 77 | %cmake -B build \ |
1a0aba9c JP |
78 | -DBUILD_QBS:BOOL=ON \ |
79 | %{cmake_on_off webengine BUILD_HELPVIEWERBACKEND_QTWEBENGINE} | |
2aefa737 | 80 | |
eacd362b | 81 | %{__make} -C build |
2aefa737 | 82 | |
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
0bdd3f4c | 85 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
2aefa737 | 86 | |
eacd362b JP |
87 | %{__make} -C build install \ |
88 | DESTDIR=$RPM_BUILD_ROOT | |
2aefa737 | 89 | |
08788771 KK |
90 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d |
91 | echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreator.conf | |
fc608be4 | 92 | cp -p share/applications/org.qt-project.qtcreator.desktop $RPM_BUILD_ROOT%{_desktopdir} |
2b26ffea | 93 | |
f6428af6 | 94 | rm -f $RPM_BUILD_ROOT%{_libdir}/qtcreator/*.prl |
0bdd3f4c | 95 | |
2aefa737 | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
0bdd3f4c MB |
99 | %post |
100 | /sbin/ldconfig | |
101 | %update_desktop_database | |
333344fa | 102 | %update_icon_cache hicolor |
0bdd3f4c MB |
103 | |
104 | %postun | |
105 | /sbin/ldconfig | |
106 | %update_desktop_database_postun | |
333344fa | 107 | %update_icon_cache hicolor |
0bdd3f4c | 108 | |
2aefa737 | 109 | %files |
110 | %defattr(644,root,root,755) | |
cd01c355 JR |
111 | %attr(755,root,root) %{_bindir}/qbs |
112 | %attr(755,root,root) %{_bindir}/qbs-config | |
113 | %attr(755,root,root) %{_bindir}/qbs-config-ui | |
f6428af6 | 114 | %attr(755,root,root) %{_bindir}/qbs-create-project |
cd01c355 JR |
115 | %attr(755,root,root) %{_bindir}/qbs-setup-android |
116 | %attr(755,root,root) %{_bindir}/qbs-setup-qt | |
117 | %attr(755,root,root) %{_bindir}/qbs-setup-toolchains | |
4208b10d | 118 | %attr(755,root,root) %{_bindir}/qtcreator |
2b26ffea | 119 | %{_sysconfdir}/ld.so.conf.d/qtcreator.conf |
273f85fd JR |
120 | %dir %{_libexecdir}/qtcreator |
121 | %attr(755,root,root) %{_libexecdir}/qtcreator/buildoutputparser | |
273f85fd JR |
122 | %attr(755,root,root) %{_libexecdir}/qtcreator/cpaster |
123 | %attr(755,root,root) %{_libexecdir}/qtcreator/dmgbuild | |
eacd362b | 124 | %attr(755,root,root) %{_libexecdir}/qtcreator/perf2text |
e6ea2852 | 125 | %attr(755,root,root) %{_libexecdir}/qtcreator/perfparser |
eacd362b | 126 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtcreator_processlauncher |
273f85fd JR |
127 | %attr(755,root,root) %{_libexecdir}/qtcreator/qbs_processlauncher |
128 | %attr(755,root,root) %{_libexecdir}/qtcreator/qml2puppet | |
129 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtcreator_process_stub | |
e6ea2852 | 130 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtc-askpass |
273f85fd JR |
131 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtpromaker |
132 | %attr(755,root,root) %{_libexecdir}/qtcreator/sdktool | |
2aefa737 | 133 | %dir %{_libdir}/qtcreator |
2b26ffea | 134 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.* |
135 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so | |
eacd362b | 136 | %attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.8 |
2aefa737 | 137 | %dir %{_libdir}/qtcreator/plugins |
cd01c355 JR |
138 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/lib*.so |
139 | %dir %{_libdir}/qtcreator/plugins/qbs | |
140 | %dir %{_libdir}/qtcreator/plugins/qbs/plugins | |
273f85fd | 141 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libclangcompilationdbgenerator.so |
87fcbcc4 JP |
142 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libiarewgenerator.so |
143 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libkeiluvgenerator.so | |
f0f82bee | 144 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libmakefilegenerator.so |
cd01c355 JR |
145 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libqbs_cpp_scanner.so |
146 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libqbs_qt_scanner.so | |
273f85fd | 147 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libvisualstudiogenerator.so |
1a0aba9c JP |
148 | %dir %{_libdir}/qtcreator/plugins/qmldesigner |
149 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libStudioPlugin.so | |
150 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libassetexporterplugin.so | |
151 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libcomponentsplugin.so | |
152 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libqmlpreviewplugin.so | |
153 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libqtquickplugin.so | |
2aefa737 | 154 | %{_datadir}/qtcreator |
f6428af6 BS |
155 | %{_datadir}/metainfo/org.qt-project.qtcreator.appdata.xml |
156 | %{_desktopdir}/org.qt-project.qtcreator.desktop | |
7ae82ab7 | 157 | %{_iconsdir}/hicolor/*x*/apps/QtProject-qtcreator.png |