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