]> git.pld-linux.org Git - packages/qt-creator.git/commitdiff
- added desktop file auto/th/qt-creator-1_3_0-1
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sat, 26 Dec 2009 13:16:42 +0000 (13:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- changed group to X11/Development/Tools
- added S: xdg-utils (qtcreator uses xdg-open)

Changed files:
    qt-creator.spec -> 1.12

qt-creator.spec

index a501667cb8735001e799f8e62d7a33338fde004c..323c013fd4aa8fe2d8e0761700eda941259a3398 100644 (file)
@@ -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
This page took 0.038402 seconds and 4 git commands to generate.