]>
Commit | Line | Data |
---|---|---|
2aefa737 | 1 | Summary: An IDE tailored to the needs of Qt developers |
2 | Summary(pl.UTF-8): IDE dostosowane do potrzeb developerow Qt | |
3 | Name: qt-creator | |
78e69ec7 | 4 | Version: 3.4.1 |
f0253cbd | 5 | Release: 1 |
2aefa737 | 6 | Epoch: 1 |
7 | License: LGPL v2.1 | |
0bdd3f4c | 8 | Group: X11/Development/Tools |
78e69ec7 JR |
9 | Source0: http://download.qt-project.org/official_releases/qtcreator/3.4/%{version}/%{name}-opensource-src-%{version}.tar.gz |
10 | # Source0-md5: bcbae4a567c93158babe3b7f42d01219 | |
0bdd3f4c | 11 | Source1: %{name}.desktop |
2b26ffea | 12 | Patch0: %{name}-pluginpath64.patch |
cd01c355 | 13 | Patch1: %{name}-pluginpathx32.patch |
e3112323 | 14 | URL: http://qt.digia.com/Product/Developer-Tools |
cd01c355 | 15 | BuildRequires: Qt5Concurrent-devel >= 5.3.1 |
a18d73a7 JR |
16 | BuildRequires: Qt5Declarative-devel >= 5.3.1 |
17 | BuildRequires: Qt5Designer-devel >= 5.3.1 | |
18 | BuildRequires: Qt5Gui-devel >= 5.3.1 | |
19 | BuildRequires: Qt5Help-devel >= 5.3.1 | |
20 | BuildRequires: Qt5Network-devel >= 5.3.1 | |
21 | BuildRequires: Qt5Script-devel >= 5.3.1 | |
22 | BuildRequires: Qt5Svg-devel >= 5.3.1 | |
23 | BuildRequires: Qt5WebKit-devel >= 5.3.1 | |
24 | BuildRequires: Qt5Xml-devel >= 5.3.1 | |
ed875dd6 | 25 | BuildRequires: gdb |
a18d73a7 JR |
26 | BuildRequires: qt5-build >= 5.3.1 |
27 | BuildRequires: qt5-linguist | |
28 | BuildRequires: qt5-qmake >= 5.3.1 | |
ed875dd6 | 29 | BuildRequires: rpm-pythonprov |
333344fa | 30 | BuildRequires: rpmbuild(macros) >= 1.602 |
0bdd3f4c | 31 | Requires(post,postun): desktop-file-utils |
a18d73a7 JR |
32 | %requires_eq Qt5Core |
33 | Requires: Qt5Sql | |
333344fa | 34 | Requires: hicolor-icon-theme |
0bdd3f4c MB |
35 | # for xdg-open |
36 | Suggests: xdg-utils | |
2aefa737 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
ed875dd6 ER |
40 | Qt Creator is a cross-platform integrated development environment |
41 | (IDE) tailored to the needs of Qt developers. | |
2aefa737 | 42 | |
43 | %description -l pl.UTF-8 | |
ed875dd6 ER |
44 | Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow |
45 | Qt. | |
2aefa737 | 46 | |
47 | %prep | |
78e69ec7 | 48 | %setup -q -n %{name}-opensource-src-%{version} |
2aefa737 | 49 | |
2b26ffea | 50 | %if "%{_lib}" == "lib64" |
51 | %patch0 -p1 | |
52 | %endif | |
cd01c355 JR |
53 | %if "%{_lib}" == "libx32" |
54 | %patch1 -p1 | |
55 | %endif | |
2b26ffea | 56 | |
e3112323 | 57 | # fix unresolved symbols in libQtcSsh |
cd01c355 JR |
58 | echo >> src/libs/ssh/ssh_dependencies.pri |
59 | echo "LIBS += -ldl" >> src/libs/ssh/ssh_dependencies.pri | |
e3112323 | 60 | |
2aefa737 | 61 | %build |
dd3dfda8 | 62 | export QTDIR=%{_libdir}/qt5 |
2aefa737 | 63 | # the qmakespec in qt4 is somewhat broken, need to look at this |
64 | #export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/ | |
65 | ||
dd3dfda8 | 66 | qmake-qt5 qtcreator.pro \ |
2aefa737 | 67 | QMAKE_CXX="%{__cxx}" \ |
68 | QMAKE_LINK="%{__cxx}" \ | |
69 | QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \ | |
913e68eb | 70 | QMAKE_RPATH= |
2aefa737 | 71 | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
0bdd3f4c | 76 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
2aefa737 | 77 | |
dd3dfda8 | 78 | export QTDIR=%{_libdir}/qt5 |
2aefa737 | 79 | %{__make} install \ |
08788771 | 80 | INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix} |
2aefa737 | 81 | |
cd01c355 | 82 | %if "%{_lib}" != "lib" |
08788771 | 83 | mv -f $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}} |
5eafeef8 | 84 | %endif |
2aefa737 | 85 | |
08788771 KK |
86 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d |
87 | echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreator.conf | |
2b26ffea | 88 | |
cd01c355 | 89 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
0bdd3f4c | 90 | |
5549a3e0 MB |
91 | # not supported by hicolor-icon-theme |
92 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/hicolor/512x512 | |
93 | ||
2aefa737 | 94 | %clean |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
0bdd3f4c MB |
97 | %post |
98 | /sbin/ldconfig | |
99 | %update_desktop_database | |
333344fa | 100 | %update_icon_cache hicolor |
0bdd3f4c MB |
101 | |
102 | %postun | |
103 | /sbin/ldconfig | |
104 | %update_desktop_database_postun | |
333344fa | 105 | %update_icon_cache hicolor |
0bdd3f4c | 106 | |
2aefa737 | 107 | %files |
108 | %defattr(644,root,root,755) | |
cd01c355 JR |
109 | %attr(755,root,root) %{_bindir}/buildoutputparser |
110 | %attr(755,root,root) %{_bindir}/qbs | |
111 | %attr(755,root,root) %{_bindir}/qbs-config | |
112 | %attr(755,root,root) %{_bindir}/qbs-config-ui | |
113 | %attr(755,root,root) %{_bindir}/qbs-qmltypes | |
114 | %attr(755,root,root) %{_bindir}/qbs-setup-android | |
115 | %attr(755,root,root) %{_bindir}/qbs-setup-qt | |
116 | %attr(755,root,root) %{_bindir}/qbs-setup-toolchains | |
117 | %attr(755,root,root) %{_bindir}/qml2puppet | |
118 | %attr(755,root,root) %{_bindir}/qmlpuppet | |
4208b10d KK |
119 | %attr(755,root,root) %{_bindir}/qtcreator |
120 | %attr(755,root,root) %{_bindir}/qtcreator_process_stub | |
d715c69d | 121 | %attr(755,root,root) %{_bindir}/qtpromaker |
e3112323 | 122 | %attr(755,root,root) %{_bindir}/sdktool |
2b26ffea | 123 | %{_sysconfdir}/ld.so.conf.d/qtcreator.conf |
2aefa737 | 124 | %dir %{_libdir}/qtcreator |
2b26ffea | 125 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.* |
126 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so | |
5eafeef8 | 127 | %attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.1 |
2aefa737 | 128 | %dir %{_libdir}/qtcreator/plugins |
cd01c355 JR |
129 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/lib*.so |
130 | %dir %{_libdir}/qtcreator/plugins/qbs | |
131 | %dir %{_libdir}/qtcreator/plugins/qbs/plugins | |
132 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libqbs_cpp_scanner.so | |
133 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libqbs_qt_scanner.so | |
134 | %dir %{_libdir}/qtcreator/plugins/qmldesigner | |
135 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libcomponentsplugin.so | |
136 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libqtquickplugin.so | |
2aefa737 | 137 | %{_datadir}/qtcreator |
0bdd3f4c | 138 | %{_desktopdir}/qt-creator.desktop |
333344fa | 139 | %{_iconsdir}/hicolor/*/*/*.png |