]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with qbs # package Qbs build tool | |
4 | %bcond_without webengine # QtWebEngine based help viewer | |
5 | ||
6 | %ifnarch %{x8664} aarch64 | |
7 | %undefine with_webengine | |
8 | %endif | |
9 | ||
10 | %define qtver 6.4.3 | |
11 | ||
12 | Summary: An IDE tailored to the needs of Qt developers | |
13 | Summary(pl.UTF-8): IDE dostosowane do potrzeb programistów Qt | |
14 | Name: qt-creator | |
15 | Version: 12.0.2 | |
16 | Release: 1 | |
17 | Epoch: 1 | |
18 | License: LGPL v2.1 | |
19 | Group: X11/Development/Tools | |
20 | Source0: https://download.qt.io/official_releases/qtcreator/12.0/%{version}/%{name}-opensource-src-%{version}.tar.xz | |
21 | # Source0-md5: 110a36302e3ca0c2fd00cee7c9764571 | |
22 | URL: https://doc.qt.io/qtcreator/ | |
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} | |
40 | BuildRequires: clang-devel >= 6.0.0 | |
41 | BuildRequires: cmake >= 3.16 | |
42 | BuildRequires: gdb | |
43 | BuildRequires: libstdc++-devel >= 6:7 | |
44 | BuildRequires: llvm-devel >= 7.0.0 | |
45 | BuildRequires: qt6-build >= %{qtver} | |
46 | BuildRequires: qt6-linguist | |
47 | BuildRequires: qt6-shadertools | |
48 | BuildRequires: rpmbuild(macros) >= 1.742 | |
49 | BuildRequires: tar >= 1:1.22 | |
50 | BuildRequires: xz | |
51 | BuildRequires: yaml-cpp-devel >= 0.8 | |
52 | Requires(post,postun): desktop-file-utils | |
53 | %requires_eq Qt6Core | |
54 | Requires: Qt6Gui-platform-xcb | |
55 | Requires: Qt6Sql-sqldriver-sqlite3 | |
56 | Requires: hicolor-icon-theme | |
57 | Requires: qt5-qtdeclarative | |
58 | # for xdg-open | |
59 | Suggests: xdg-utils | |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61 | ||
62 | %define skip_post_check_so 'libClangsupport\.so.*' | |
63 | ||
64 | %description | |
65 | Qt Creator is a cross-platform integrated development environment | |
66 | (IDE) tailored to the needs of Qt developers. | |
67 | ||
68 | %description -l pl.UTF-8 | |
69 | Qt Creator to wieloplatformowe IDE dostosowane do potrzeb programistów | |
70 | Qt. | |
71 | ||
72 | %prep | |
73 | %setup -q -n %{name}-opensource-src-%{version} | |
74 | ||
75 | sed -i '1s,/usr/bin/env python,%{__python},' src/shared/qbs/src/3rdparty/python/lib/python3.9/site-packages/dmgbuild/__main__.py | |
76 | ||
77 | %build | |
78 | %cmake -B build \ | |
79 | %{cmake_on_off qbs BUILD_QBS} \ | |
80 | %{cmake_on_off webengine BUILD_HELPVIEWERBACKEND_QTWEBENGINE} | |
81 | ||
82 | %{__make} -C build | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
87 | ||
88 | %{__make} -C build install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
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 | |
93 | cp -p share/applications/org.qt-project.qtcreator.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
94 | ||
95 | rm -f $RPM_BUILD_ROOT%{_libdir}/qtcreator/*.prl | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post | |
101 | /sbin/ldconfig | |
102 | %update_desktop_database | |
103 | %update_icon_cache hicolor | |
104 | ||
105 | %postun | |
106 | /sbin/ldconfig | |
107 | %update_desktop_database_postun | |
108 | %update_icon_cache hicolor | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
112 | %if %{with qbs} | |
113 | %attr(755,root,root) %{_bindir}/qbs | |
114 | %attr(755,root,root) %{_bindir}/qbs-config | |
115 | %attr(755,root,root) %{_bindir}/qbs-config-ui | |
116 | %attr(755,root,root) %{_bindir}/qbs-create-project | |
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 | |
120 | %endif | |
121 | %attr(755,root,root) %{_bindir}/qtcreator | |
122 | %{_sysconfdir}/ld.so.conf.d/qtcreator.conf | |
123 | %dir %{_libexecdir}/qtcreator | |
124 | %attr(755,root,root) %{_libexecdir}/qtcreator/buildoutputparser | |
125 | %attr(755,root,root) %{_libexecdir}/qtcreator/cpaster | |
126 | %{?with_qbs:%attr(755,root,root) %{_libexecdir}/qtcreator/dmgbuild} | |
127 | %attr(755,root,root) %{_libexecdir}/qtcreator/perf2text | |
128 | %attr(755,root,root) %{_libexecdir}/qtcreator/perfparser | |
129 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtcreator_processlauncher | |
130 | %{?with_qbs:%attr(755,root,root) %{_libexecdir}/qtcreator/qbs_processlauncher} | |
131 | %attr(755,root,root) %{_libexecdir}/qtcreator/qml2puppet-%{version} | |
132 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtcreator_process_stub | |
133 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtc-askpass | |
134 | %attr(755,root,root) %{_libexecdir}/qtcreator/qtpromaker | |
135 | %attr(755,root,root) %{_libexecdir}/qtcreator/sdktool | |
136 | %dir %{_libdir}/qtcreator | |
137 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.* | |
138 | %attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.12 | |
139 | %dir %{_libdir}/qtcreator/plugins | |
140 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/lib*.so | |
141 | %if %{with qbs} | |
142 | %dir %{_libdir}/qtcreator/plugins/qbs | |
143 | %dir %{_libdir}/qtcreator/plugins/qbs/plugins | |
144 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libclangcompilationdbgenerator.so | |
145 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libiarewgenerator.so | |
146 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libkeiluvgenerator.so | |
147 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libmakefilegenerator.so | |
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 | |
150 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libvisualstudiogenerator.so | |
151 | %endif | |
152 | %dir %{_libdir}/qtcreator/plugins/qmldesigner | |
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 | |
157 | %{_datadir}/qtcreator | |
158 | %{_datadir}/metainfo/org.qt-project.qtcreator.appdata.xml | |
159 | %{_desktopdir}/org.qt-project.qtcreator.desktop | |
160 | %{_iconsdir}/hicolor/*x*/apps/QtProject-qtcreator.png |