]>
Commit | Line | Data |
---|---|---|
2aefa737 | 1 | # |
2 | ||
3 | Summary: An IDE tailored to the needs of Qt developers | |
4 | Summary(pl.UTF-8): IDE dostosowane do potrzeb developerow Qt | |
5 | Name: qt-creator | |
6 | Version: 1.0.0 | |
2b26ffea | 7 | Release: 2 |
2aefa737 | 8 | Epoch: 1 |
9 | License: LGPL v2.1 | |
10 | Group: Libraries | |
11 | Source0: http://download.qtsoftware.com/qtcreator/%{name}-%{version}-src.zip | |
12 | # Source0-md5: 5478124035d80a90e66a3db67ab4477a | |
2b26ffea | 13 | Patch0: %{name}-pluginpath64.patch |
2aefa737 | 14 | URL: http://www.qtsoftware.com/developer/qt-creator |
a2bb26e4 | 15 | BuildRequires: QtDBus-devel |
2aefa737 | 16 | BuildRequires: QtGui-devel |
a2bb26e4 KK |
17 | BuildRequires: QtHelp-devel |
18 | BuildRequires: QtNetwork-devel | |
19 | BuildRequires: QtScript-devel | |
5eafeef8 | 20 | BuildRequires: QtSql-sqlite3 |
a2bb26e4 KK |
21 | BuildRequires: QtSvg-devel |
22 | BuildRequires: QtWebKit-devel | |
23 | BuildRequires: QtXml-devel | |
24 | BuildRequires: qt4-build >= 4.5.0-3 | |
25 | BuildRequires: qt4-qmake >= 4.5.0-3 | |
26 | BuildRequires: unzip | |
2aefa737 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Qt Creator is a cross-platform integrated development environment (IDE) | |
31 | tailored to the needs of Qt developers. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow Qt. | |
35 | ||
36 | %prep | |
37 | %setup -q -n %{name}-%{version}-src | |
38 | ||
2b26ffea | 39 | %if "%{_lib}" == "lib64" |
40 | %patch0 -p1 | |
41 | %endif | |
42 | ||
2aefa737 | 43 | %build |
44 | export QTDIR=%{_libdir}/qt4 | |
45 | # the qmakespec in qt4 is somewhat broken, need to look at this | |
46 | #export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/ | |
47 | ||
48 | qmake-qt4 qtcreator.pro \ | |
49 | QMAKE_CXX="%{__cxx}" \ | |
50 | QMAKE_LINK="%{__cxx}" \ | |
51 | QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \ | |
52 | QMAKE_RPATH= | |
53 | ||
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | export QTDIR=%{_libdir}/qt4 | |
2aefa737 | 60 | %{__make} install \ |
61 | INSTALL_ROOT=$RPM_BUILD_ROOT/%{_prefix} | |
62 | ||
5eafeef8 | 63 | %if "%{_lib}" == "lib64" |
2aefa737 | 64 | mv -f $RPM_BUILD_ROOT/{%{_prefix}/lib,%{_libdir}} |
5eafeef8 | 65 | %endif |
2aefa737 | 66 | |
2b26ffea | 67 | install -d $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d |
68 | echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/qtcreator.conf | |
69 | ||
2aefa737 | 70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %attr(755,root,root) %{_bindir}/* | |
2b26ffea | 76 | %{_sysconfdir}/ld.so.conf.d/qtcreator.conf |
2aefa737 | 77 | %dir %{_libdir}/qtcreator |
2b26ffea | 78 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.* |
79 | %attr(755,root,root) %{_libdir}/qtcreator/lib*.so | |
5eafeef8 | 80 | %attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.1 |
2aefa737 | 81 | %dir %{_libdir}/qtcreator/plugins |
82 | %dir %{_libdir}/qtcreator/plugins/Nokia | |
a2bb26e4 | 83 | %{_libdir}/qtcreator/plugins/Nokia/*.pluginspec |
2aefa737 | 84 | %attr(755,root,root) %{_libdir}/qtcreator/plugins/Nokia/*.so |
85 | %{_datadir}/qtcreator | |
2b26ffea | 86 | %{_defaultdocdir}/qtcreator |
2aefa737 | 87 | %{_pixmapsdir}/qtcreator_logo*.png |
2b26ffea | 88 | |
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig |