]> git.pld-linux.org Git - packages/qt-creator.git/blame - qt-creator.spec
- updated to 2.3.0
[packages/qt-creator.git] / qt-creator.spec
CommitLineData
2aefa737 1Summary: An IDE tailored to the needs of Qt developers
2Summary(pl.UTF-8): IDE dostosowane do potrzeb developerow Qt
3Name: qt-creator
e2bdaf8d 4Version: 2.3.0
d715c69d 5Release: 1
2aefa737 6Epoch: 1
7License: LGPL v2.1
0bdd3f4c 8Group: X11/Development/Tools
913e68eb 9Source0: http://get.qt.nokia.com/qtcreator/%{name}-%{version}-src.zip
e2bdaf8d 10# Source0-md5: 9d0ca1d39cb7f6d54d86d16ba1593b2f
0bdd3f4c 11Source1: %{name}.desktop
2b26ffea 12Patch0: %{name}-pluginpath64.patch
0bf5b59e 13URL: http://qt.nokia.com/products/developer-tools
a2bb26e4 14BuildRequires: QtDBus-devel
913e68eb 15BuildRequires: QtDeclarative-devel
99bec638 16BuildRequires: QtDesigner-devel
2aefa737 17BuildRequires: QtGui-devel
a2bb26e4
KK
18BuildRequires: QtHelp-devel
19BuildRequires: QtNetwork-devel
20BuildRequires: QtScript-devel
5eafeef8 21BuildRequires: QtSql-sqlite3
a2bb26e4
KK
22BuildRequires: QtSvg-devel
23BuildRequires: QtWebKit-devel
24BuildRequires: QtXml-devel
913e68eb 25BuildRequires: qt4-build >= 4.7.0
4208b10d 26BuildRequires: qt4-linguist
913e68eb 27BuildRequires: qt4-qmake >= 4.7.0
333344fa 28BuildRequires: rpmbuild(macros) >= 1.602
a2bb26e4 29BuildRequires: unzip
0bdd3f4c 30Requires(post,postun): desktop-file-utils
4208b10d 31%requires_eq QtCore
1f8887fa 32Requires: QtSql-sqlite3
333344fa 33Requires: hicolor-icon-theme
0bdd3f4c
MB
34# for xdg-open
35Suggests: xdg-utils
2aefa737 36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
913e68eb 39Qt Creator is a cross-platform integrated development environment (IDE)
2aefa737 40tailored to the needs of Qt developers.
41
42%description -l pl.UTF-8
43Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow Qt.
44
45%prep
8fd6a200 46%setup -q -n %{name}-%{version}-src
2aefa737 47
2b26ffea 48%if "%{_lib}" == "lib64"
49%patch0 -p1
50%endif
51
2aefa737 52%build
53export QTDIR=%{_libdir}/qt4
54# the qmakespec in qt4 is somewhat broken, need to look at this
55#export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/
56
57qmake-qt4 qtcreator.pro \
58 QMAKE_CXX="%{__cxx}" \
59 QMAKE_LINK="%{__cxx}" \
60 QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \
913e68eb 61 QMAKE_RPATH=
2aefa737 62
63%{__make}
64
65%install
66rm -rf $RPM_BUILD_ROOT
0bdd3f4c 67install -d $RPM_BUILD_ROOT%{_desktopdir}
2aefa737 68
69export QTDIR=%{_libdir}/qt4
2aefa737 70%{__make} install \
08788771 71 INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix}
2aefa737 72
5eafeef8 73%if "%{_lib}" == "lib64"
08788771 74mv -f $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}}
5eafeef8 75%endif
2aefa737 76
08788771
KK
77install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
78echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
2b26ffea 79
0bdd3f4c
MB
80install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
81
2aefa737 82%clean
83rm -rf $RPM_BUILD_ROOT
84
0bdd3f4c
MB
85%post
86/sbin/ldconfig
87%update_desktop_database
333344fa 88%update_icon_cache hicolor
0bdd3f4c
MB
89
90%postun
91/sbin/ldconfig
92%update_desktop_database_postun
333344fa 93%update_icon_cache hicolor
0bdd3f4c 94
2aefa737 95%files
96%defattr(644,root,root,755)
4208b10d
KK
97%attr(755,root,root) %{_bindir}/qtcreator
98%attr(755,root,root) %{_bindir}/qtcreator_process_stub
d715c69d 99%attr(755,root,root) %{_bindir}/qtpromaker
2b26ffea 100%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
2aefa737 101%dir %{_libdir}/qtcreator
2b26ffea 102%attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.*
103%attr(755,root,root) %{_libdir}/qtcreator/lib*.so
5eafeef8 104%attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.1
2aefa737 105%dir %{_libdir}/qtcreator/plugins
106%dir %{_libdir}/qtcreator/plugins/Nokia
a2bb26e4 107%{_libdir}/qtcreator/plugins/Nokia/*.pluginspec
2aefa737 108%attr(755,root,root) %{_libdir}/qtcreator/plugins/Nokia/*.so
e2bdaf8d 109%{_libdir}/qtcreator/qtcomponents
2aefa737 110%{_datadir}/qtcreator
2b26ffea 111%{_defaultdocdir}/qtcreator
0bdd3f4c 112%{_desktopdir}/qt-creator.desktop
333344fa 113%{_iconsdir}/hicolor/*/*/*.png
This page took 0.037208 seconds and 4 git commands to generate.