From 0bdd3f4c4554fbc38a8ca5f04396b7f18f9fc280 Mon Sep 17 00:00:00 2001 From: Marcin Banasiak Date: Sat, 26 Dec 2009 13:16:42 +0000 Subject: [PATCH] - added desktop file - changed group to X11/Development/Tools - added S: xdg-utils (qtcreator uses xdg-open) Changed files: qt-creator.spec -> 1.12 --- qt-creator.spec | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/qt-creator.spec b/qt-creator.spec index a501667..323c013 100644 --- a/qt-creator.spec +++ b/qt-creator.spec @@ -1,5 +1,3 @@ -# - Summary: An IDE tailored to the needs of Qt developers Summary(pl.UTF-8): IDE dostosowane do potrzeb developerow Qt Name: qt-creator @@ -7,9 +5,10 @@ Version: 1.3.0 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 @@ -26,7 +25,10 @@ BuildRequires: qt4-build >= 4.6.0 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 @@ -58,6 +60,7 @@ qmake-qt4 qtcreator.pro \ %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_desktopdir} export QTDIR=%{_libdir}/qt4 %{__make} install \ @@ -72,9 +75,19 @@ 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 + %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 @@ -90,7 +103,5 @@ rm -rf $RPM_BUILD_ROOT %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 -- 2.43.0