-#
-
Summary: An IDE tailored to the needs of Qt developers
Summary(pl.UTF-8): IDE dostosowane do potrzeb developerow Qt
Name: qt-creator
Release: 1
Epoch: 1
License: LGPL v2.1
-Group: Libraries
+Group: X11/Development/Tools
Source0: http://download.qtsoftware.com/qtcreator/%{name}-%{version}-src.zip
# Source0-md5: c4c0450099a76099917687f3f05604d9
+Source1: %{name}.desktop
Patch0: %{name}-pluginpath64.patch
URL: http://www.qtsoftware.com/developer/qt-creator
BuildRequires: QtDBus-devel
BuildRequires: qt4-linguist
BuildRequires: qt4-qmake >= 4.6.0
BuildRequires: unzip
+Requires(post,postun): desktop-file-utils
%requires_eq QtCore
+# for xdg-open
+Suggests: xdg-utils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_desktopdir}
export QTDIR=%{_libdir}/qt4
%{__make} install \
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
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/ldconfig
+%update_desktop_database
+
+%postun
+/sbin/ldconfig
+%update_desktop_database_postun
+
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/qtcreator
%attr(755,root,root) %{_libdir}/qtcreator/plugins/Nokia/*.so
%{_datadir}/qtcreator
%{_defaultdocdir}/qtcreator
+%{_desktopdir}/qt-creator.desktop
%{_pixmapsdir}/qtcreator_logo*.png
-
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig