]> git.pld-linux.org Git - packages/qt-creator.git/commitdiff
- create links to icons in %{_iconsdir}/hicolor
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 13 Apr 2011 19:33:59 +0000 (19:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 2

Changed files:
    qt-creator.spec -> 1.20

qt-creator.spec

index 57b1e4a860881cbea4e72b0ed5ebe25fde17eae6..2e4daa6273558587a2cacf9b8cdcbebf10cb0098 100644 (file)
@@ -2,7 +2,7 @@ Summary:        An IDE tailored to the needs of Qt developers
 Summary(pl.UTF-8):     IDE dostosowane do potrzeb developerow Qt
 Name:          qt-creator
 Version:       2.1.0
-Release:       1
+Release:       2
 Epoch:         1
 License:       LGPL v2.1
 Group:         X11/Development/Tools
@@ -25,10 +25,12 @@ BuildRequires:      QtXml-devel
 BuildRequires: qt4-build >= 4.7.0
 BuildRequires: qt4-linguist
 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)
@@ -77,16 +79,25 @@ echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreat
 
 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)
@@ -105,3 +116,4 @@ rm -rf $RPM_BUILD_ROOT
 %{_defaultdocdir}/qtcreator
 %{_desktopdir}/qt-creator.desktop
 %{_pixmapsdir}/qtcreator_logo*.png
+%{_iconsdir}/hicolor/*/*/*.png
This page took 0.188669 seconds and 4 git commands to generate.