- release 3 (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
35dc8805 4Version: 4.13.0
95db4017 5Release: 3
2aefa737 6Epoch: 1
7License: LGPL v2.1
0bdd3f4c 8Group: X11/Development/Tools
35dc8805
JR
9Source0: http://download.qt.io/official_releases/qtcreator/4.13/%{version}/%{name}-opensource-src-%{version}.tar.xz
10# Source0-md5: de422b823ddf4d5c70bdfa455d96e1b9
459239b6 11URL: http://doc.qt.io/qt-5/topics-app-development.html
f0f82bee
BS
12BuildRequires: Qt5Concurrent-devel >= 5.9.0
13BuildRequires: Qt5Designer-devel >= 5.9.0
14BuildRequires: Qt5Gui-devel >= 5.9.0
15BuildRequires: Qt5Help-devel >= 5.9.0
16BuildRequires: Qt5Network-devel >= 5.9.0
17BuildRequires: Qt5Quick-controls >= 5.9.0
18BuildRequires: Qt5Quick-devel >= 5.9.0
19BuildRequires: Qt5Script-devel >= 5.9.0
20BuildRequires: Qt5Svg-devel >= 5.9.0
21BuildRequires: Qt5UiTools-devel >= 5.9.0
22BuildRequires: Qt5WebKit-devel >= 5.9.0
23BuildRequires: Qt5Xml-devel >= 5.9.0
24BuildRequires: clang-devel >= 6.0.0
ed875dd6 25BuildRequires: gdb
c031d74e 26BuildRequires: libstdc++-devel
e6ea2852 27BuildRequires: llvm-devel >= 7.0.0
f0f82bee 28BuildRequires: qt5-build >= 5.9.0
a18d73a7 29BuildRequires: qt5-linguist
f0f82bee 30BuildRequires: qt5-qmake >= 5.9.0
333344fa 31BuildRequires: rpmbuild(macros) >= 1.602
0bdd3f4c 32Requires(post,postun): desktop-file-utils
a18d73a7 33%requires_eq Qt5Core
381d3501
MB
34Requires: Qt5Gui-platform-xcb
35Requires: Qt5Quick-controls
36Requires: Qt5Sql-sqldriver-sqlite3
333344fa 37Requires: hicolor-icon-theme
273f85fd 38Requires: qt5-qtdeclarative
0bdd3f4c
MB
39# for xdg-open
40Suggests: xdg-utils
2aefa737 41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
273f85fd
JR
43%define skip_post_check_so 'libClangsupport\.so.*'
44
2aefa737 45%description
ed875dd6
ER
46Qt Creator is a cross-platform integrated development environment
47(IDE) tailored to the needs of Qt developers.
2aefa737 48
49%description -l pl.UTF-8
ed875dd6
ER
50Qt Creator to wieloplatformowe IDE dostosowane do potrzeb developerow
51Qt.
2aefa737 52
53%prep
78e69ec7 54%setup -q -n %{name}-opensource-src-%{version}
2b26ffea 55
e3112323 56# fix unresolved symbols in libQtcSsh
cd01c355
JR
57echo >> src/libs/ssh/ssh_dependencies.pri
58echo "LIBS += -ldl" >> src/libs/ssh/ssh_dependencies.pri
e3112323 59
ebd8bd57
JP
60sed -i '1s|^#!.*python\b|#!%{__python}|' src/shared/qbs/src/3rdparty/python/bin/dmgbuild
61
2aefa737 62%build
dd3dfda8 63export QTDIR=%{_libdir}/qt5
2aefa737 64# the qmakespec in qt4 is somewhat broken, need to look at this
65#export QMAKESPEC=%{_datadir}/qt4/mkspecs/linux-g++/
66
dd3dfda8 67qmake-qt5 qtcreator.pro \
381d3501
MB
68 IDE_LIBRARY_BASENAME="%{_lib}" \
69 LLVM_INSTALL_DIR="%{_prefix}" \
2aefa737 70 QMAKE_CXX="%{__cxx}" \
71 QMAKE_LINK="%{__cxx}" \
273f85fd 72 QMAKE_CFLAGS_ISYSTEM=-I \
381d3501 73 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
913e68eb 74 QMAKE_RPATH=
2aefa737 75
76%{__make}
77
78%install
79rm -rf $RPM_BUILD_ROOT
0bdd3f4c 80install -d $RPM_BUILD_ROOT%{_desktopdir}
2aefa737 81
dd3dfda8 82export QTDIR=%{_libdir}/qt5
2aefa737 83%{__make} install \
08788771 84 INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix}
2aefa737 85
08788771
KK
86install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
87echo "%{_libdir}/qtcreator" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
2b26ffea 88
f6428af6 89rm -f $RPM_BUILD_ROOT%{_libdir}/qtcreator/*.prl
0bdd3f4c 90
2aefa737 91%clean
92rm -rf $RPM_BUILD_ROOT
93
0bdd3f4c
MB
94%post
95/sbin/ldconfig
96%update_desktop_database
333344fa 97%update_icon_cache hicolor
0bdd3f4c
MB
98
99%postun
100/sbin/ldconfig
101%update_desktop_database_postun
333344fa 102%update_icon_cache hicolor
0bdd3f4c 103
2aefa737 104%files
105%defattr(644,root,root,755)
cd01c355
JR
106%attr(755,root,root) %{_bindir}/qbs
107%attr(755,root,root) %{_bindir}/qbs-config
108%attr(755,root,root) %{_bindir}/qbs-config-ui
f6428af6 109%attr(755,root,root) %{_bindir}/qbs-create-project
cd01c355
JR
110%attr(755,root,root) %{_bindir}/qbs-setup-android
111%attr(755,root,root) %{_bindir}/qbs-setup-qt
112%attr(755,root,root) %{_bindir}/qbs-setup-toolchains
4208b10d 113%attr(755,root,root) %{_bindir}/qtcreator
2b26ffea 114%{_sysconfdir}/ld.so.conf.d/qtcreator.conf
273f85fd
JR
115%dir %{_libexecdir}/qtcreator
116%attr(755,root,root) %{_libexecdir}/qtcreator/buildoutputparser
117%attr(755,root,root) %{_libexecdir}/qtcreator/clangbackend
118%attr(755,root,root) %{_libexecdir}/qtcreator/cpaster
119%attr(755,root,root) %{_libexecdir}/qtcreator/dmgbuild
e6ea2852 120%attr(755,root,root) %{_libexecdir}/qtcreator/perfparser
273f85fd
JR
121%attr(755,root,root) %{_libexecdir}/qtcreator/qbs_processlauncher
122%attr(755,root,root) %{_libexecdir}/qtcreator/qml2puppet
123%attr(755,root,root) %{_libexecdir}/qtcreator/qtcreator_process_stub
e6ea2852 124%attr(755,root,root) %{_libexecdir}/qtcreator/qtc-askpass
273f85fd
JR
125%attr(755,root,root) %{_libexecdir}/qtcreator/qtpromaker
126%attr(755,root,root) %{_libexecdir}/qtcreator/sdktool
2aefa737 127%dir %{_libdir}/qtcreator
2b26ffea 128%attr(755,root,root) %{_libdir}/qtcreator/lib*.so.*.*
129%attr(755,root,root) %{_libdir}/qtcreator/lib*.so
5eafeef8 130%attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.1
add0d0e8 131%attr(755,root,root) %ghost %{_libdir}/qtcreator/lib*.so.4
2aefa737 132%dir %{_libdir}/qtcreator/plugins
cd01c355
JR
133%attr(755,root,root) %{_libdir}/qtcreator/plugins/lib*.so
134%dir %{_libdir}/qtcreator/plugins/qbs
135%dir %{_libdir}/qtcreator/plugins/qbs/plugins
273f85fd 136%attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libclangcompilationdbgenerator.so
87fcbcc4
JP
137%attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libiarewgenerator.so
138%attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libkeiluvgenerator.so
f0f82bee 139%attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libmakefilegenerator.so
cd01c355
JR
140%attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libqbs_cpp_scanner.so
141%attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libqbs_qt_scanner.so
273f85fd 142%attr(755,root,root) %{_libdir}/qtcreator/plugins/qbs/plugins/libvisualstudiogenerator.so
cd01c355 143%dir %{_libdir}/qtcreator/plugins/qmldesigner
35dc8805 144%attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libassetexporterplugin.so
cd01c355 145%attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libcomponentsplugin.so
eb07e32c 146%attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libqmlpreviewplugin.so
cd01c355 147%attr(755,root,root) %{_libdir}/qtcreator/plugins/qmldesigner/libqtquickplugin.so
2aefa737 148%{_datadir}/qtcreator
f6428af6
BS
149%{_datadir}/metainfo/org.qt-project.qtcreator.appdata.xml
150%{_desktopdir}/org.qt-project.qtcreator.desktop
333344fa 151%{_iconsdir}/hicolor/*/*/*.png
This page took 1.170969 seconds and 4 git commands to generate.