1 Summary: An IDE tailored to the needs of Qt developers
2 Summary(pl.UTF-8): IDE dostosowane do potrzeb developerow Qt
8 Group: X11/Development/Tools
9 Source0: http://download.qtsoftware.com/qtcreator/%{name}-%{version}-src.zip
10 # Source0-md5: c4c0450099a76099917687f3f05604d9
11 Source1: %{name}.desktop
12 Patch0: %{name}-pluginpath64.patch
13 URL: http://www.qtsoftware.com/developer/qt-creator
14 BuildRequires: QtDBus-devel
15 BuildRequires: QtDesigner-devel
16 BuildRequires: QtGui-devel
17 BuildRequires: QtHelp-devel
18 BuildRequires: QtNetwork-devel
19 BuildRequires: QtScript-devel
20 BuildRequires: QtSql-sqlite3
21 BuildRequires: QtSvg-devel
22 BuildRequires: QtWebKit-devel
23 BuildRequires: QtXml-devel
24 BuildRequires: qt4-build >= 4.6.0
25 BuildRequires: qt4-linguist
26 BuildRequires: qt4-qmake >= 4.6.0
28 Requires(post,postun): desktop-file-utils
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Qt Creator is a cross-platform integrated development environment (IDE)
36 tailored to the needs of Qt developers.
38 %description -l pl.UTF-8
39 Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow Qt.
44 %if "%{_lib}" == "lib64"
49 export QTDIR=%{_libdir}/qt4
50 # the qmakespec in qt4 is somewhat broken, need to look at this
51 #export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/
53 qmake-qt4 qtcreator.pro \
54 QMAKE_CXX="%{__cxx}" \
55 QMAKE_LINK="%{__cxx}" \
56 QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_desktopdir}
65 export QTDIR=%{_libdir}/qt4
67 INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix}
69 %if "%{_lib}" == "lib64"
70 mv -f $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}}
73 mv -f $RPM_BUILD_ROOT%{_bindir}/{qtcreator.bin,qtcreator}
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
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
81 rm -rf $RPM_BUILD_ROOT
85 %update_desktop_database
89 %update_desktop_database_postun
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_bindir}/qtcreator
94 %attr(755,root,root) %{_bindir}/qtcreator_process_stub
95 %{_sysconfdir}/ld.so.conf.d/qtcreator.conf
96 %dir %{_libdir}/qtcreator
97 %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.*
98 %attr(755,root,root) %{_libdir}/qtcreator/lib*.so
99 %attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.1
100 %dir %{_libdir}/qtcreator/plugins
101 %dir %{_libdir}/qtcreator/plugins/Nokia
102 %{_libdir}/qtcreator/plugins/Nokia/*.pluginspec
103 %attr(755,root,root) %{_libdir}/qtcreator/plugins/Nokia/*.so
104 %{_datadir}/qtcreator
105 %{_defaultdocdir}/qtcreator
106 %{_desktopdir}/qt-creator.desktop
107 %{_pixmapsdir}/qtcreator_logo*.png