]> git.pld-linux.org Git - packages/qt-creator.git/blobdiff - qt-creator.spec
- rel 2
[packages/qt-creator.git] / qt-creator.spec
index 4d8c42832db4effe086aa24c42d082d0cc1dd665..af75cf449fee8009cee8733058c49f6c7b9caa84 100644 (file)
@@ -1,18 +1,18 @@
-#
-
 Summary:       An IDE tailored to the needs of Qt developers
 Summary(pl.UTF-8):     IDE dostosowane do potrzeb developerow Qt
 Name:          qt-creator
-Version:       1.1.0
-Release:       1
+Version:       2.4.0
+Release:       2
 Epoch:         1
 License:       LGPL v2.1
-Group:         Libraries
-Source0:       http://download.qtsoftware.com/qtcreator/%{name}-%{version}-src.zip
-# Source0-md5: f0fd01f7c5a1f50c479bed13db2134bf
+Group:         X11/Development/Tools
+Source0:       http://get.qt.nokia.com/qtcreator/%{name}-%{version}-src.zip
+# Source0-md5: ae9dca75b941bcff3833ea3fa26d8b4e
+Source1:       %{name}.desktop
 Patch0:                %{name}-pluginpath64.patch
-URL:           http://www.qtsoftware.com/developer/qt-creator
+URL:           http://qt.nokia.com/products/developer-tools
 BuildRequires: QtDBus-devel
+BuildRequires: QtDeclarative-devel
 BuildRequires: QtDesigner-devel
 BuildRequires: QtGui-devel
 BuildRequires: QtHelp-devel
@@ -22,13 +22,21 @@ BuildRequires:      QtSql-sqlite3
 BuildRequires: QtSvg-devel
 BuildRequires: QtWebKit-devel
 BuildRequires: QtXml-devel
-BuildRequires: qt4-build >= 4.5.0-3
-BuildRequires: qt4-qmake >= 4.5.0-3
+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)
 
 %description
-Qt Creator is a cross-platform integrated development environment (IDE) 
+Qt Creator is a cross-platform integrated development environment (IDE)
 tailored to the needs of Qt developers.
 
 %description -l pl.UTF-8
@@ -50,30 +58,48 @@ qmake-qt4 qtcreator.pro \
        QMAKE_CXX="%{__cxx}" \
        QMAKE_LINK="%{__cxx}" \
        QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \
-       QMAKE_RPATH=    
+       QMAKE_RPATH=
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_desktopdir}
 
 export QTDIR=%{_libdir}/qt4
 %{__make} install \
-       INSTALL_ROOT=$RPM_BUILD_ROOT/%{_prefix}
+       INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix}
 
 %if "%{_lib}" == "lib64"
-mv -f $RPM_BUILD_ROOT/{%{_prefix}/lib,%{_libdir}}
+mv -f $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}}
 %endif
 
-install -d $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
-echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
+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
+
+# not supported by hicolor-icon-theme
+rm -rf $RPM_BUILD_ROOT%{_iconsdir}/hicolor/512x512
 
 %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}/*
+%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.*.*
@@ -83,9 +109,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/qtcreator/plugins/Nokia
 %{_libdir}/qtcreator/plugins/Nokia/*.pluginspec
 %attr(755,root,root) %{_libdir}/qtcreator/plugins/Nokia/*.so
+%{_libdir}/qtcreator/qtcomponents
 %{_datadir}/qtcreator
-%{_defaultdocdir}/qtcreator
-%{_pixmapsdir}/qtcreator_logo*.png
-
-%post  -p /sbin/ldconfig
-%postun        -p /sbin/ldconfig
+%{_desktopdir}/qt-creator.desktop
+%{_iconsdir}/hicolor/*/*/*.png
This page took 0.295967 seconds and 4 git commands to generate.