]> git.pld-linux.org Git - packages/qt-creator.git/blame - qt-creator.spec
- release 2 (by relup.sh)
[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
b54e6fc2 4Version: 2.5.2
04269445 5Release: 2
2aefa737 6Epoch: 1
7License: LGPL v2.1
0bdd3f4c 8Group: X11/Development/Tools
913e68eb 9Source0: http://get.qt.nokia.com/qtcreator/%{name}-%{version}-src.zip
b54e6fc2 10# Source0-md5: 26fe8d7980f53ca07fdd1c959f4866d4
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
4a3ca2fd 25BuildRequires: qt4-build >= 4.7.4
4208b10d 26BuildRequires: qt4-linguist
4a3ca2fd 27BuildRequires: qt4-qmake >= 4.7.4
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
5549a3e0
MB
82# not supported by hicolor-icon-theme
83rm -rf $RPM_BUILD_ROOT%{_iconsdir}/hicolor/512x512
84
2aefa737 85%clean
86rm -rf $RPM_BUILD_ROOT
87
0bdd3f4c
MB
88%post
89/sbin/ldconfig
90%update_desktop_database
333344fa 91%update_icon_cache hicolor
0bdd3f4c
MB
92
93%postun
94/sbin/ldconfig
95%update_desktop_database_postun
333344fa 96%update_icon_cache hicolor
0bdd3f4c 97
2aefa737 98%files
99%defattr(644,root,root,755)
4208b10d
KK
100%attr(755,root,root) %{_bindir}/qtcreator
101%attr(755,root,root) %{_bindir}/qtcreator_process_stub
3ead9984 102%attr(755,root,root) %{_bindir}/qmlprofiler
d715c69d 103%attr(755,root,root) %{_bindir}/qtpromaker
2b26ffea 104%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
2aefa737 105%dir %{_libdir}/qtcreator
2b26ffea 106%attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.*
107%attr(755,root,root) %{_libdir}/qtcreator/lib*.so
5eafeef8 108%attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.1
2aefa737 109%dir %{_libdir}/qtcreator/plugins
110%dir %{_libdir}/qtcreator/plugins/Nokia
a2bb26e4 111%{_libdir}/qtcreator/plugins/Nokia/*.pluginspec
2aefa737 112%attr(755,root,root) %{_libdir}/qtcreator/plugins/Nokia/*.so
e2bdaf8d 113%{_libdir}/qtcreator/qtcomponents
2aefa737 114%{_datadir}/qtcreator
0bdd3f4c 115%{_desktopdir}/qt-creator.desktop
333344fa 116%{_iconsdir}/hicolor/*/*/*.png
This page took 0.070392 seconds and 4 git commands to generate.