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