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