]>
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 | |
913e68eb | 4 | Version: 2.0.1 |
1e6a3cb8 | 5 | Release: 2 |
2aefa737 | 6 | Epoch: 1 |
7 | License: LGPL v2.1 | |
0bdd3f4c | 8 | Group: X11/Development/Tools |
913e68eb KK |
9 | Source0: http://get.qt.nokia.com/qtcreator/%{name}-%{version}-src.zip |
10 | # Source0-md5: 7b670968ec80d2d413ff22605a31a77d | |
0bdd3f4c | 11 | Source1: %{name}.desktop |
2b26ffea | 12 | Patch0: %{name}-pluginpath64.patch |
2aefa737 | 13 | URL: http://www.qtsoftware.com/developer/qt-creator |
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 | |
913e68eb | 25 | BuildRequires: qt4-build >= 4.7.0 |
4208b10d | 26 | BuildRequires: qt4-linguist |
913e68eb | 27 | BuildRequires: qt4-qmake >= 4.7.0 |
a2bb26e4 | 28 | BuildRequires: unzip |
0bdd3f4c | 29 | Requires(post,postun): desktop-file-utils |
4208b10d | 30 | %requires_eq QtCore |
1f8887fa | 31 | Requires: QtSql-sqlite3 |
0bdd3f4c MB |
32 | # for xdg-open |
33 | Suggests: xdg-utils | |
2aefa737 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
913e68eb | 37 | Qt Creator is a cross-platform integrated development environment (IDE) |
2aefa737 | 38 | tailored to the needs of Qt developers. |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow Qt. | |
42 | ||
43 | %prep | |
8fd6a200 | 44 | %setup -q -n %{name}-%{version}-src |
2aefa737 | 45 | |
2b26ffea | 46 | %if "%{_lib}" == "lib64" |
47 | %patch0 -p1 | |
48 | %endif | |
49 | ||
2aefa737 | 50 | %build |
51 | export QTDIR=%{_libdir}/qt4 | |
52 | # the qmakespec in qt4 is somewhat broken, need to look at this | |
53 | #export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/ | |
54 | ||
55 | qmake-qt4 qtcreator.pro \ | |
56 | QMAKE_CXX="%{__cxx}" \ | |
57 | QMAKE_LINK="%{__cxx}" \ | |
58 | QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \ | |
913e68eb | 59 | QMAKE_RPATH= |
2aefa737 | 60 | |
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
0bdd3f4c | 65 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
2aefa737 | 66 | |
67 | export QTDIR=%{_libdir}/qt4 | |
2aefa737 | 68 | %{__make} install \ |
08788771 | 69 | INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix} |
2aefa737 | 70 | |
5eafeef8 | 71 | %if "%{_lib}" == "lib64" |
08788771 | 72 | mv -f $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}} |
5eafeef8 | 73 | %endif |
2aefa737 | 74 | |
08788771 KK |
75 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d |
76 | echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreator.conf | |
2b26ffea | 77 | |
0bdd3f4c MB |
78 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
79 | ||
2aefa737 | 80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
0bdd3f4c MB |
83 | %post |
84 | /sbin/ldconfig | |
85 | %update_desktop_database | |
86 | ||
87 | %postun | |
88 | /sbin/ldconfig | |
89 | %update_desktop_database_postun | |
90 | ||
2aefa737 | 91 | %files |
92 | %defattr(644,root,root,755) | |
4208b10d KK |
93 | %attr(755,root,root) %{_bindir}/qtcreator |
94 | %attr(755,root,root) %{_bindir}/qtcreator_process_stub | |
2b26ffea | 95 | %{_sysconfdir}/ld.so.conf.d/qtcreator.conf |
2aefa737 | 96 | %dir %{_libdir}/qtcreator |
2b26ffea | 97 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.* |
98 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so | |
5eafeef8 | 99 | %attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.1 |
2aefa737 | 100 | %dir %{_libdir}/qtcreator/plugins |
101 | %dir %{_libdir}/qtcreator/plugins/Nokia | |
a2bb26e4 | 102 | %{_libdir}/qtcreator/plugins/Nokia/*.pluginspec |
2aefa737 | 103 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/Nokia/*.so |
104 | %{_datadir}/qtcreator | |
2b26ffea | 105 | %{_defaultdocdir}/qtcreator |
0bdd3f4c | 106 | %{_desktopdir}/qt-creator.desktop |
2aefa737 | 107 | %{_pixmapsdir}/qtcreator_logo*.png |