]>
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 | ||
0e9e8c0c | 10 | %define qtver 6.4.3 |
1a0aba9c | 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 |
0e9e8c0c JP |
15 | Version: 12.0.2 |
16 | Release: 1 | |
2aefa737 | 17 | Epoch: 1 |
18 | License: LGPL v2.1 | |
0bdd3f4c | 19 | Group: X11/Development/Tools |
0e9e8c0c JP |
20 | Source0: https://download.qt.io/official_releases/qtcreator/12.0/%{version}/%{name}-opensource-src-%{version}.tar.xz |
21 | # Source0-md5: 110a36302e3ca0c2fd00cee7c9764571 | |
9ba7c272 | 22 | URL: https://doc.qt.io/qtcreator/ |
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 |
399164e3 | 41 | BuildRequires: cmake >= 3.16 |
ed875dd6 | 42 | BuildRequires: gdb |
9ba7c272 | 43 | BuildRequires: libstdc++-devel >= 6:7 |
e6ea2852 | 44 | BuildRequires: llvm-devel >= 7.0.0 |
1a0aba9c JP |
45 | BuildRequires: qt6-build >= %{qtver} |
46 | BuildRequires: qt6-linguist | |
47 | BuildRequires: qt6-shadertools | |
48 | BuildRequires: rpmbuild(macros) >= 1.742 | |
0d9c9649 JP |
49 | BuildRequires: tar >= 1:1.22 |
50 | BuildRequires: xz | |
9ba7c272 | 51 | BuildRequires: yaml-cpp-devel >= 0.8 |
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} |
2b26ffea | 74 | |
9ba7c272 | 75 | sed -i '1s,/usr/bin/env python,%{__python},' src/shared/qbs/src/3rdparty/python/lib/python3.9/site-packages/dmgbuild/__main__.py |
ebd8bd57 | 76 | |
2aefa737 | 77 | %build |
eacd362b | 78 | %cmake -B build \ |
6ab8b4f2 | 79 | %{cmake_on_off qbs BUILD_QBS} \ |
1a0aba9c | 80 | %{cmake_on_off webengine BUILD_HELPVIEWERBACKEND_QTWEBENGINE} |
2aefa737 | 81 | |
eacd362b | 82 | %{__make} -C build |
2aefa737 | 83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
0bdd3f4c | 86 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
2aefa737 | 87 | |
eacd362b JP |
88 | %{__make} -C build install \ |
89 | DESTDIR=$RPM_BUILD_ROOT | |
2aefa737 | 90 | |
08788771 KK |
91 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d |
92 | echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreator.conf | |
fc608be4 | 93 | cp -p share/applications/org.qt-project.qtcreator.desktop $RPM_BUILD_ROOT%{_desktopdir} |
2b26ffea | 94 | |
f6428af6 | 95 | rm -f $RPM_BUILD_ROOT%{_libdir}/qtcreator/*.prl |
0bdd3f4c | 96 | |
2aefa737 | 97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
0bdd3f4c MB |
100 | %post |
101 | /sbin/ldconfig | |
102 | %update_desktop_database | |
333344fa | 103 | %update_icon_cache hicolor |
0bdd3f4c MB |
104 | |
105 | %postun | |
106 | /sbin/ldconfig | |
107 | %update_desktop_database_postun | |
333344fa | 108 | %update_icon_cache hicolor |
0bdd3f4c | 109 | |
2aefa737 | 110 | %files |
111 | %defattr(644,root,root,755) | |
6ab8b4f2 | 112 | %if %{with qbs} |
cd01c355 JR |
113 | %attr(755,root,root) %{_bindir}/qbs |
114 | %attr(755,root,root) %{_bindir}/qbs-config | |
115 | %attr(755,root,root) %{_bindir}/qbs-config-ui | |
f6428af6 | 116 | %attr(755,root,root) %{_bindir}/qbs-create-project |
cd01c355 JR |
117 | %attr(755,root,root) %{_bindir}/qbs-setup-android |
118 | %attr(755,root,root) %{_bindir}/qbs-setup-qt | |
119 | %attr(755,root,root) %{_bindir}/qbs-setup-toolchains | |
6ab8b4f2 | 120 | %endif |
4208b10d | 121 | %attr(755,root,root) %{_bindir}/qtcreator |
2b26ffea | 122 | %{_sysconfdir}/ld.so.conf.d/qtcreator.conf |
273f85fd JR |
123 | %dir %{_libexecdir}/qtcreator |
124 | %attr(755,root,root) %{_libexecdir}/qtcreator/buildoutputparser | |
273f85fd | 125 | %attr(755,root,root) %{_libexecdir}/qtcreator/cpaster |
6ab8b4f2 | 126 | %{?with_qbs:%attr(755,root,root) %{_libexecdir}/qtcreator/dmgbuild} |
eacd362b | 127 | %attr(755,root,root) %{_libexecdir}/qtcreator/perf2text |
e6ea2852 | 128 | %attr(755,root,root) %{_libexecdir}/qtcreator/perfparser |
eacd362b | 129 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtcreator_processlauncher |
6ab8b4f2 | 130 | %{?with_qbs:%attr(755,root,root) %{_libexecdir}/qtcreator/qbs_processlauncher} |
399164e3 | 131 | %attr(755,root,root) %{_libexecdir}/qtcreator/qml2puppet-%{version} |
273f85fd | 132 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtcreator_process_stub |
e6ea2852 | 133 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtc-askpass |
273f85fd JR |
134 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtpromaker |
135 | %attr(755,root,root) %{_libexecdir}/qtcreator/sdktool | |
2aefa737 | 136 | %dir %{_libdir}/qtcreator |
2b26ffea | 137 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.* |
0e9e8c0c | 138 | %attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.12 |
2aefa737 | 139 | %dir %{_libdir}/qtcreator/plugins |
cd01c355 | 140 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/lib*.so |
6ab8b4f2 | 141 | %if %{with qbs} |
cd01c355 JR |
142 | %dir %{_libdir}/qtcreator/plugins/qbs |
143 | %dir %{_libdir}/qtcreator/plugins/qbs/plugins | |
273f85fd | 144 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libclangcompilationdbgenerator.so |
87fcbcc4 JP |
145 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libiarewgenerator.so |
146 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libkeiluvgenerator.so | |
f0f82bee | 147 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libmakefilegenerator.so |
cd01c355 JR |
148 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libqbs_cpp_scanner.so |
149 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libqbs_qt_scanner.so | |
273f85fd | 150 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libvisualstudiogenerator.so |
6ab8b4f2 | 151 | %endif |
1a0aba9c | 152 | %dir %{_libdir}/qtcreator/plugins/qmldesigner |
1a0aba9c JP |
153 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libassetexporterplugin.so |
154 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libcomponentsplugin.so | |
155 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libqmlpreviewplugin.so | |
156 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libqtquickplugin.so | |
2aefa737 | 157 | %{_datadir}/qtcreator |
f6428af6 BS |
158 | %{_datadir}/metainfo/org.qt-project.qtcreator.appdata.xml |
159 | %{_desktopdir}/org.qt-project.qtcreator.desktop | |
7ae82ab7 | 160 | %{_iconsdir}/hicolor/*x*/apps/QtProject-qtcreator.png |