]> git.pld-linux.org Git - packages/qt-creator.git/blobdiff - qt-creator.spec
- updated to 2.2.0
[packages/qt-creator.git] / qt-creator.spec
index 8792e24d6d9bca09334902357311bc65438f0496..c8e36efeb3e155ad625a29953cbaa718ac5a5eb5 100644 (file)
@@ -1,13 +1,13 @@
 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.0.1
+Version:       2.2.0
 Release:       1
 Epoch:         1
 License:       LGPL v2.1
 Group:         X11/Development/Tools
 Source0:       http://get.qt.nokia.com/qtcreator/%{name}-%{version}-src.zip
-# Source0-md5: 7b670968ec80d2d413ff22605a31a77d
+# Source0-md5: cc16de5357516c513d07a4a4fcdc533a
 Source1:       %{name}.desktop
 Patch0:                %{name}-pluginpath64.patch
 URL:           http://www.qtsoftware.com/developer/qt-creator
@@ -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,21 +79,31 @@ 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)
 %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.*.*
@@ -105,3 +117,4 @@ rm -rf $RPM_BUILD_ROOT
 %{_defaultdocdir}/qtcreator
 %{_desktopdir}/qt-creator.desktop
 %{_pixmapsdir}/qtcreator_logo*.png
+%{_iconsdir}/hicolor/*/*/*.png
This page took 0.141411 seconds and 4 git commands to generate.