3 Summary: An IDE tailored to the needs of Qt developers
4 Summary(pl.UTF-8): IDE dostosowane do potrzeb developerow Qt
11 Source0: http://download.qtsoftware.com/qtcreator/%{name}-%{version}-src.zip
12 # Source0-md5: 5478124035d80a90e66a3db67ab4477a
13 Patch0: %{name}-pluginpath64.patch
14 URL: http://www.qtsoftware.com/developer/qt-creator
15 BuildRequires: libstdc++-devel
16 BuildRequires: qt4-qmake >= 4.5.0-3
17 BuildRequires: QtSql-sqlite
18 BuildRequires: QtGui-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Qt Creator is a cross-platform integrated development environment (IDE)
23 tailored to the needs of Qt developers.
25 %description -l pl.UTF-8
26 Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow Qt.
29 %setup -q -n %{name}-%{version}-src
31 %if "%{_lib}" == "lib64"
36 export QTDIR=%{_libdir}/qt4
37 # the qmakespec in qt4 is somewhat broken, need to look at this
38 #export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/
40 qmake-qt4 qtcreator.pro \
41 QMAKE_CXX="%{__cxx}" \
42 QMAKE_LINK="%{__cxx}" \
43 QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \
49 rm -rf $RPM_BUILD_ROOT
51 export QTDIR=%{_libdir}/qt4
52 #export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/
54 INSTALL_ROOT=$RPM_BUILD_ROOT/%{_prefix}
56 mv -f $RPM_BUILD_ROOT/{%{_prefix}/lib,%{_libdir}}
58 install -d $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
59 echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_bindir}/*
67 %{_sysconfdir}/ld.so.conf.d/qtcreator.conf
68 %dir %{_libdir}/qtcreator
69 %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.*
70 %attr(755,root,root) %{_libdir}/qtcreator/lib*.so
71 %dir %{_libdir}/qtcreator/plugins
72 %dir %{_libdir}/qtcreator/plugins/Nokia
73 %{_libdir}/qtcreator/plugins/Nokia/*.pluginspec
74 %attr(755,root,root) %{_libdir}/qtcreator/plugins/Nokia/*.so
76 %{_defaultdocdir}/qtcreator
77 %{_pixmapsdir}/qtcreator_logo*.png
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig