Summary: An IDE tailored to the needs of Qt developers
Summary(pl.UTF-8): IDE dostosowane do potrzeb developerow Qt
Name: qt-creator
-Version: 1.3.0
+Version: 2.2.0
Release: 1
Epoch: 1
License: LGPL v2.1
Group: X11/Development/Tools
-Source0: http://download.qtsoftware.com/qtcreator/%{name}-%{version}-src.zip
-# Source0-md5: c4c0450099a76099917687f3f05604d9
+Source0: http://get.qt.nokia.com/qtcreator/%{name}-%{version}-src.zip
+# Source0-md5: cc16de5357516c513d07a4a4fcdc533a
Source1: %{name}.desktop
Patch0: %{name}-pluginpath64.patch
URL: http://www.qtsoftware.com/developer/qt-creator
BuildRequires: QtDBus-devel
+BuildRequires: QtDeclarative-devel
BuildRequires: QtDesigner-devel
BuildRequires: QtGui-devel
BuildRequires: QtHelp-devel
BuildRequires: QtSvg-devel
BuildRequires: QtWebKit-devel
BuildRequires: QtXml-devel
-BuildRequires: qt4-build >= 4.6.0
+BuildRequires: qt4-build >= 4.7.0
BuildRequires: qt4-linguist
-BuildRequires: qt4-qmake >= 4.6.0
+BuildRequires: qt4-qmake >= 4.7.0
+BuildRequires: rpmbuild(macros) >= 1.602
BuildRequires: unzip
Requires(post,postun): desktop-file-utils
%requires_eq QtCore
+Requires: QtSql-sqlite3
+Requires: hicolor-icon-theme
# for xdg-open
Suggests: xdg-utils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Qt Creator is a cross-platform integrated development environment (IDE)
+Qt Creator is a cross-platform integrated development environment (IDE)
tailored to the needs of Qt developers.
%description -l pl.UTF-8
Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow Qt.
%prep
-%setup -q
+%setup -q -n %{name}-%{version}-src
%if "%{_lib}" == "lib64"
%patch0 -p1
QMAKE_CXX="%{__cxx}" \
QMAKE_LINK="%{__cxx}" \
QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \
- QMAKE_RPATH=
+ QMAKE_RPATH=
%{__make}
mv -f $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}}
%endif
-mv -f $RPM_BUILD_ROOT%{_bindir}/{qtcreator.bin,qtcreator}
-
install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+for i in 16 24 32 48 64 128 256
+do
+ install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps
+ ln -s ../../../../pixmaps/qtcreator_logo_${i}.png \
+ $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps/qtcreator.png
+done
+
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%update_desktop_database
+%update_icon_cache hicolor
%postun
/sbin/ldconfig
%update_desktop_database_postun
+%update_icon_cache hicolor
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/qtcreator
%attr(755,root,root) %{_bindir}/qtcreator_process_stub
+%attr(755,root,root) %{_bindir}/qtpromaker
%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
%dir %{_libdir}/qtcreator
%attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.*
%{_defaultdocdir}/qtcreator
%{_desktopdir}/qt-creator.desktop
%{_pixmapsdir}/qtcreator_logo*.png
+%{_iconsdir}/hicolor/*/*/*.png