]>
Commit | Line | Data |
---|---|---|
daa4415e JB |
1 | # |
2 | # Conditional build: | |
de8a9faa | 3 | %bcond_without doc # Documentation |
daa4415e JB |
4 | |
5 | %define orgname qtwebengine | |
6 | %define qtbase_ver %{version} | |
7 | %define qtdeclarative_ver %{version} | |
8 | %define qttools_ver %{version} | |
9 | %define qtwebchannel_ver %{version} | |
10 | Summary: The Qt5 WebEngine library | |
11 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine | |
12 | Name: qt5-%{orgname} | |
7ed59526 | 13 | Version: 5.11.1 |
daa4415e JB |
14 | Release: 0.1 |
15 | License: LGPL v3 or GPL v2+ or commercial | |
16 | Group: X11/Libraries | |
7ed59526 AM |
17 | Source0: http://download.qt.io/official_releases/qt/5.11/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
18 | # Source0-md5: 75d2ff31addba4ec41981b0f459cc587 | |
abfabd27 | 19 | Patch0: remove-compiler-check.patch |
1abc1d3c | 20 | Patch1: chromium-66.0.3359.170-gcc8-alignof.patch |
daa4415e JB |
21 | URL: http://www.qt.io/ |
22 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} | |
23 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
24 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} | |
25 | BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
26 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
27 | BuildRequires: Qt5WebChannel-devel >= %{qtwebchannel_ver} | |
28 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
de8a9faa | 29 | %if %{with doc} |
daa4415e JB |
30 | BuildRequires: qt5-assistant >= %{qttools_ver} |
31 | %endif | |
32 | BuildRequires: qt5-build >= %{qtbase_ver} | |
33 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
34 | BuildRequires: rpmbuild(macros) >= 1.654 | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %define specflags -fno-strict-aliasing | |
40 | %define qt5dir %{_libdir}/qt5 | |
41 | ||
42 | %description | |
43 | Qt is a cross-platform application and UI framework. Using Qt, you can | |
44 | write web-enabled applications once and deploy them across desktop, | |
45 | mobile and embedded systems without rewriting the source code. | |
46 | ||
47 | This package contains Qt5 WebEngine library. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
51 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
52 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
53 | źródłowego. | |
54 | ||
55 | Ten pakiet zawiera bibliotekę Qt5 WebEngine. | |
56 | ||
57 | %package -n Qt5WebEngine | |
58 | Summary: The Qt5 WebEngine library | |
59 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine | |
60 | Group: Libraries | |
61 | Requires: Qt5Core >= %{qtbase_ver} | |
62 | Requires: Qt5Network >= %{qtbase_ver} | |
63 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
64 | ||
65 | %description -n Qt5WebEngine | |
66 | Qt5 WebEngine library provides seamless integration of C++ and QML | |
67 | applications with HTML/JavaScript clients. | |
68 | ||
69 | %description -n Qt5WebEngine -l pl.UTF-8 | |
70 | Biblioteka Qt5 WebEngine udostępnia integrację aplikacji C++ i QML z | |
71 | klientami w HTML-u/JavaScripcie. | |
72 | ||
73 | %package -n Qt5WebEngine-devel | |
74 | Summary: Qt5 WebEngine library - development files | |
75 | Summary(pl.UTF-8): Biblioteka Qt5 WebEngine - pliki programistyczne | |
76 | Group: Development/Libraries | |
77 | Requires: Qt5Core-devel >= %{qtbase_ver} | |
78 | Requires: Qt5Network-devel >= %{qtbase_ver} | |
79 | Requires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
80 | Requires: Qt5WebEngine = %{version}-%{release} | |
81 | ||
82 | %description -n Qt5WebEngine-devel | |
83 | Qt5 WebEngine library - development files. | |
84 | ||
85 | %description -n Qt5WebEngine-devel -l pl.UTF-8 | |
86 | Biblioteka Qt5 WebEngine - pliki programistyczne. | |
87 | ||
88 | %package doc | |
89 | Summary: Qt5 WebEngine documentation in HTML format | |
90 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML | |
91 | Group: Documentation | |
92 | Requires: qt5-doc-common >= %{qtbase_ver} | |
93 | %if "%{_rpmversion}" >= "5" | |
94 | BuildArch: noarch | |
95 | %endif | |
96 | ||
97 | %description doc | |
98 | Qt5 WebEngine documentation in HTML format. | |
99 | ||
100 | %description doc -l pl.UTF-8 | |
101 | Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML. | |
102 | ||
103 | %package doc-qch | |
104 | Summary: Qt5 WebEngine documentation in QCH format | |
105 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH | |
106 | Group: Documentation | |
107 | Requires: qt5-doc-common >= %{qtbase_ver} | |
108 | %if "%{_rpmversion}" >= "5" | |
109 | BuildArch: noarch | |
110 | %endif | |
111 | ||
112 | %description doc-qch | |
113 | Qt5 WebEngine documentation in QCH format. | |
114 | ||
115 | %description doc-qch -l pl.UTF-8 | |
116 | Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH. | |
117 | ||
118 | %package examples | |
119 | Summary: Qt5 WebEngine examples | |
120 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 WebEngine | |
121 | Group: X11/Development/Libraries | |
122 | %if "%{_rpmversion}" >= "5" | |
123 | BuildArch: noarch | |
124 | %endif | |
125 | ||
126 | %description examples | |
127 | Qt5 WebEngine examples. | |
128 | ||
129 | %description examples -l pl.UTF-8 | |
130 | Przykłady do biblioteki Qt5 WebEngine. | |
131 | ||
132 | %prep | |
7ed59526 | 133 | %setup -q -n %{orgname}-everywhere-src-%{version} |
abfabd27 | 134 | %patch0 -p1 |
1abc1d3c AM |
135 | cd ./src/3rdparty/chromium |
136 | %patch1 -p1 | |
137 | ||
daa4415e JB |
138 | |
139 | %build | |
140 | qmake-qt5 | |
1abc1d3c | 141 | %{__make} |
de8a9faa | 142 | %{?with_doc:%{__make} docs} |
daa4415e JB |
143 | |
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | %{__make} install \ | |
147 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
148 | ||
de8a9faa JR |
149 | %if %{with doc} |
150 | %{__make} install_docs \ | |
daa4415e | 151 | INSTALL_ROOT=$RPM_BUILD_ROOT |
de8a9faa | 152 | %endif |
daa4415e JB |
153 | |
154 | # useless symlinks | |
7ed59526 | 155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
daa4415e JB |
156 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
157 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
158 | ||
159 | # Prepare some files list | |
160 | ifecho() { | |
161 | r="$RPM_BUILD_ROOT$2" | |
162 | if [ -d "$r" ]; then | |
163 | echo "%%dir $2" >> $1.files | |
164 | elif [ -x "$r" ] ; then | |
165 | echo "%%attr(755,root,root) $2" >> $1.files | |
166 | elif [ -f "$r" ]; then | |
167 | echo "$2" >> $1.files | |
168 | else | |
169 | echo "Error generation $1 files list!" | |
170 | echo "$r: no such file or directory!" | |
171 | return 1 | |
172 | fi | |
173 | } | |
174 | ifecho_tree() { | |
175 | ifecho $1 $2 | |
176 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
177 | ifecho $1 $2/$f | |
178 | done | |
179 | } | |
180 | ||
181 | echo "%defattr(644,root,root,755)" > examples.files | |
daa4415e | 182 | ifecho_tree examples %{_examplesdir}/qt5/webengine |
1abc1d3c | 183 | ifecho_tree examples %{_examplesdir}/qt5/webenginewidgets |
daa4415e JB |
184 | |
185 | %clean | |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
188 | %post -n Qt5WebEngine -p /sbin/ldconfig | |
189 | %postun -n Qt5WebEngine -p /sbin/ldconfig | |
190 | ||
191 | %files -n Qt5WebEngine | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/libQt5WebEngine.so.*.*.* | |
194 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngine.so.5 | |
1abc1d3c AM |
195 | %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so.*.*.* |
196 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngineCore.so.5 | |
197 | %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so.*.*.* | |
198 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngineWidgets.so.5 | |
daa4415e | 199 | %dir %{qt5dir}/qml/QtWebEngine |
daa4415e JB |
200 | %{qt5dir}/qml/QtWebEngine/plugins.qmltypes |
201 | %{qt5dir}/qml/QtWebEngine/qmldir | |
1abc1d3c AM |
202 | %{qt5dir}/qml/QtWebEngine/Controls1Delegates |
203 | %{qt5dir}/qml/QtWebEngine/Controls2Delegates | |
204 | %attr(755,root,root) %{qt5dir}/qml/QtWebEngine/libqtwebengineplugin.so | |
205 | %{_datadir}/qt5/resources/icudtl.dat | |
206 | %{_datadir}/qt5/resources/qtwebengine*.pak | |
207 | %attr(755,root,root) %{_libdir}/qt5/bin/qwebengine_convert_dict | |
208 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebEngineProcess | |
209 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/libqwebengineview.so | |
daa4415e JB |
210 | |
211 | %files -n Qt5WebEngine-devel | |
212 | %defattr(644,root,root,755) | |
213 | %attr(755,root,root) %{_libdir}/libQt5WebEngine.so | |
1abc1d3c AM |
214 | %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so |
215 | %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so | |
daa4415e | 216 | %{_libdir}/libQt5WebEngine.prl |
1abc1d3c AM |
217 | %{_libdir}/libQt5WebEngineCore.prl |
218 | %{_libdir}/libQt5WebEngineWidgets.prl | |
daa4415e | 219 | %{_includedir}/qt5/QtWebEngine |
1abc1d3c AM |
220 | %{_includedir}/qt5/QtWebEngineCore |
221 | %{_includedir}/qt5/QtWebEngineWidgets | |
daa4415e | 222 | %{_pkgconfigdir}/Qt5WebEngine.pc |
1abc1d3c AM |
223 | %{_pkgconfigdir}/Qt5WebEngineCore.pc |
224 | %{_pkgconfigdir}/Qt5WebEngineWidgets.pc | |
daa4415e | 225 | %{_libdir}/cmake/Qt5WebEngine |
1abc1d3c AM |
226 | %{_libdir}/cmake/Qt5WebEngineCore |
227 | %{_libdir}/cmake/Qt5WebEngineWidgets | |
228 | %{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake | |
daa4415e JB |
229 | %{qt5dir}/mkspecs/modules/qt_lib_webengine.pri |
230 | %{qt5dir}/mkspecs/modules/qt_lib_webengine_private.pri | |
1abc1d3c AM |
231 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecore.pri |
232 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecore_private.pri | |
233 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri | |
234 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginewidgets.pri | |
235 | %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginewidgets_private.pri | |
daa4415e | 236 | |
de8a9faa | 237 | %if %{with doc} |
daa4415e JB |
238 | %files doc |
239 | %defattr(644,root,root,755) | |
240 | %{_docdir}/qt5-doc/qtwebengine | |
241 | ||
daa4415e JB |
242 | %files doc-qch |
243 | %defattr(644,root,root,755) | |
244 | %{_docdir}/qt5-doc/qtwebengine.qch | |
245 | %endif | |
246 | ||
247 | %files examples -f examples.files | |
248 | %defattr(644,root,root,755) | |
249 | # XXX: dir shared with qt5-qtbase-examples | |
250 | %dir %{_examplesdir}/qt5 |