]>
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 | |
f0253cbd MB |
4 | Version: 2.6.1 |
5 | Release: 1 | |
2aefa737 | 6 | Epoch: 1 |
7 | License: LGPL v2.1 | |
0bdd3f4c | 8 | Group: X11/Development/Tools |
f0253cbd MB |
9 | Source0: http://releases.qt-project.org/qtcreator/2.6.1/%{name}-%{version}-src.tar.gz |
10 | # Source0-md5: e4d6373335a80ddf7ffcacf92442e43c | |
0bdd3f4c | 11 | Source1: %{name}.desktop |
2b26ffea | 12 | Patch0: %{name}-pluginpath64.patch |
e3112323 | 13 | URL: http://qt.digia.com/Product/Developer-Tools |
a2bb26e4 | 14 | BuildRequires: QtDBus-devel |
913e68eb | 15 | BuildRequires: QtDeclarative-devel |
99bec638 | 16 | BuildRequires: QtDesigner-devel |
2aefa737 | 17 | BuildRequires: QtGui-devel |
a2bb26e4 KK |
18 | BuildRequires: QtHelp-devel |
19 | BuildRequires: QtNetwork-devel | |
20 | BuildRequires: QtScript-devel | |
5eafeef8 | 21 | BuildRequires: QtSql-sqlite3 |
a2bb26e4 KK |
22 | BuildRequires: QtSvg-devel |
23 | BuildRequires: QtWebKit-devel | |
24 | BuildRequires: QtXml-devel | |
e3112323 | 25 | BuildRequires: qt4-build >= 4.8.0 |
4208b10d | 26 | BuildRequires: qt4-linguist |
e3112323 | 27 | BuildRequires: qt4-qmake >= 4.8.0 |
333344fa | 28 | BuildRequires: rpmbuild(macros) >= 1.602 |
0bdd3f4c | 29 | Requires(post,postun): desktop-file-utils |
4208b10d | 30 | %requires_eq QtCore |
1f8887fa | 31 | Requires: QtSql-sqlite3 |
333344fa | 32 | Requires: hicolor-icon-theme |
0bdd3f4c MB |
33 | # for xdg-open |
34 | Suggests: xdg-utils | |
2aefa737 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
913e68eb | 38 | Qt Creator is a cross-platform integrated development environment (IDE) |
2aefa737 | 39 | tailored to the needs of Qt developers. |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow Qt. | |
43 | ||
44 | %prep | |
8fd6a200 | 45 | %setup -q -n %{name}-%{version}-src |
2aefa737 | 46 | |
2b26ffea | 47 | %if "%{_lib}" == "lib64" |
48 | %patch0 -p1 | |
49 | %endif | |
50 | ||
e3112323 KK |
51 | # fix unresolved symbols in libQtcSsh |
52 | echo "LIBS += -ldl" > src/libs/ssh/ssh_dependencies.pri | |
53 | ||
2aefa737 | 54 | %build |
55 | export QTDIR=%{_libdir}/qt4 | |
56 | # the qmakespec in qt4 is somewhat broken, need to look at this | |
57 | #export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/ | |
58 | ||
59 | qmake-qt4 qtcreator.pro \ | |
60 | QMAKE_CXX="%{__cxx}" \ | |
61 | QMAKE_LINK="%{__cxx}" \ | |
62 | QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \ | |
913e68eb | 63 | QMAKE_RPATH= |
2aefa737 | 64 | |
65 | %{__make} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
0bdd3f4c | 69 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
2aefa737 | 70 | |
71 | export QTDIR=%{_libdir}/qt4 | |
2aefa737 | 72 | %{__make} install \ |
08788771 | 73 | INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix} |
2aefa737 | 74 | |
5eafeef8 | 75 | %if "%{_lib}" == "lib64" |
08788771 | 76 | mv -f $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}} |
5eafeef8 | 77 | %endif |
2aefa737 | 78 | |
08788771 KK |
79 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d |
80 | echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreator.conf | |
2b26ffea | 81 | |
0bdd3f4c MB |
82 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
83 | ||
5549a3e0 MB |
84 | # not supported by hicolor-icon-theme |
85 | rm -rf $RPM_BUILD_ROOT%{_iconsdir}/hicolor/512x512 | |
86 | ||
2aefa737 | 87 | %clean |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
0bdd3f4c MB |
90 | %post |
91 | /sbin/ldconfig | |
92 | %update_desktop_database | |
333344fa | 93 | %update_icon_cache hicolor |
0bdd3f4c MB |
94 | |
95 | %postun | |
96 | /sbin/ldconfig | |
97 | %update_desktop_database_postun | |
333344fa | 98 | %update_icon_cache hicolor |
0bdd3f4c | 99 | |
2aefa737 | 100 | %files |
101 | %defattr(644,root,root,755) | |
4208b10d KK |
102 | %attr(755,root,root) %{_bindir}/qtcreator |
103 | %attr(755,root,root) %{_bindir}/qtcreator_process_stub | |
d715c69d | 104 | %attr(755,root,root) %{_bindir}/qtpromaker |
e3112323 | 105 | %attr(755,root,root) %{_bindir}/sdktool |
2b26ffea | 106 | %{_sysconfdir}/ld.so.conf.d/qtcreator.conf |
2aefa737 | 107 | %dir %{_libdir}/qtcreator |
2b26ffea | 108 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.* |
109 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so | |
5eafeef8 | 110 | %attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.1 |
2aefa737 | 111 | %dir %{_libdir}/qtcreator/plugins |
e3112323 KK |
112 | %dir %{_libdir}/qtcreator/plugins/QtProject |
113 | %dir %{_libdir}/qtcreator/plugins/RIM | |
114 | %{_libdir}/qtcreator/plugins/QtProject/*.pluginspec | |
115 | %{_libdir}/qtcreator/plugins/RIM/*.pluginspec | |
116 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/QtProject/*.so | |
117 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/RIM/*.so | |
e2bdaf8d | 118 | %{_libdir}/qtcreator/qtcomponents |
2aefa737 | 119 | %{_datadir}/qtcreator |
0bdd3f4c | 120 | %{_desktopdir}/qt-creator.desktop |
333344fa | 121 | %{_iconsdir}/hicolor/*/*/*.png |