]>
Commit | Line | Data |
---|---|---|
68e7984a | 1 | # TODO: |
1239c82a JB |
2 | # - opencl support (BR: OpenCL-devel, WEBKIT_CONFIG+=opencl) ? |
3 | # - seccomp support (BR: libseccomp-devel, WEBKIT_CONFIG+=seccomp_filters) ? | |
5da6712d JB |
4 | # - system leveldb (requires memenv helper library) |
5 | # NOTE: not splitting WebKit/WebKitWidgets, interdependencies are not clear | |
6 | # (e.g. WebProcess requires WebKitWidgets) | |
50a36e1f JB |
7 | # |
8 | # Conditional build: | |
b0970bd0 ER |
9 | %bcond_with bootstrap # disable features to able to build without installed qt5 |
10 | # -- build targets | |
1239c82a | 11 | %bcond_without qch # documentation in QCH format |
b0970bd0 | 12 | # -- features |
1239c82a | 13 | %bcond_with qtmultimedia # QtMultimedia support |
68e7984a | 14 | |
b0970bd0 ER |
15 | %if %{with bootstrap} |
16 | %undefine with_qch | |
17 | %endif | |
18 | ||
5da6712d JB |
19 | %define orgname qtwebkit |
20 | %define qtbase_ver %{version} | |
21 | %define qtdeclarative_ver %{version} | |
1239c82a | 22 | %define qtlocation_ver %{version} |
5da6712d JB |
23 | %define qtmultimedia_ver %{version} |
24 | %define qtsensors_ver %{version} | |
31f483fb | 25 | %define qttools_ver 5.4 |
50a36e1f JB |
26 | Summary: The Qt5 WebKit libraries |
27 | Summary(pl.UTF-8): Biblioteki Qt5 WebKit | |
68e7984a | 28 | Name: qt5-%{orgname} |
ffe1c460 | 29 | Version: 5.8.0 |
9c35e8aa | 30 | Release: 1 |
1239c82a | 31 | License: LGPL v2+ |
68e7984a | 32 | Group: X11/Libraries |
ffe1c460 JR |
33 | Source0: http://download.qt.io/community_releases/5.8/%{version}-final/%{orgname}-opensource-src-%{version}.tar.xz |
34 | # Source0-md5: 60a6935aca4a7c553d0ec4646ceed3b4 | |
370e02b1 | 35 | Patch0: icu59.patch |
50e4885e | 36 | Patch1: new-char-types.patch |
fbaab0e1 | 37 | URL: http://www.qt.io/ |
5da6712d JB |
38 | BuildRequires: OpenGL-devel |
39 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} | |
40 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
1239c82a | 41 | %{?with_qtmultimedia:BuildRequires: Qt5MultimediaWidgets-devel >= %{qtmultimedia_ver}} |
5da6712d JB |
42 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} |
43 | BuildRequires: Qt5OpenGL-devel >= %{qtbase_ver} | |
1239c82a | 44 | BuildRequires: Qt5Positioning-devel >= %{qtlocation_ver} |
5da6712d JB |
45 | BuildRequires: Qt5PrintSupport-devel >= %{qtbase_ver} |
46 | BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
47 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
1239c82a | 48 | BuildRequires: Qt5Sensors-devel >= %{qtsensors_ver} |
5da6712d JB |
49 | BuildRequires: Qt5Sql-devel >= %{qtbase_ver} |
50 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
51 | BuildRequires: glib2-devel >= 2.0 | |
52 | BuildRequires: gstreamer-devel >= 1.0 | |
53 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
54 | BuildRequires: libicu-devel | |
55 | BuildRequires: libjpeg-devel | |
56 | BuildRequires: libpng-devel | |
57 | BuildRequires: libwebp-devel | |
58 | BuildRequires: libxml2-devel >= 2.0 | |
59 | BuildRequires: libxslt-devel | |
60 | BuildRequires: pkgconfig | |
50a36e1f JB |
61 | BuildRequires: rpmbuild(macros) >= 1.654 |
62 | %if %{with qch} | |
63 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
64 | %endif | |
65 | BuildRequires: qt5-build >= %{qtbase_ver} | |
66 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
68e7984a | 67 | BuildRequires: rpmbuild(macros) >= 1.654 |
5da6712d | 68 | BuildRequires: sqlite3-devel >= 3 |
983a5b21 | 69 | BuildRequires: tar >= 1:1.22 |
5da6712d JB |
70 | BuildRequires: xorg-lib-libX11-devel |
71 | BuildRequires: xorg-lib-libXcomposite-devel | |
72 | BuildRequires: xorg-lib-libXrender-devel | |
983a5b21 | 73 | BuildRequires: xz |
5da6712d | 74 | BuildRequires: zlib-devel |
a4846994 | 75 | BuildConflicts: leveldb-devel |
68e7984a WF |
76 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
77 | ||
68e7984a | 78 | %define specflags -fno-strict-aliasing |
50a36e1f | 79 | %define qt5dir %{_libdir}/qt5 |
68e7984a WF |
80 | |
81 | %description | |
50a36e1f JB |
82 | Qt is a cross-platform application and UI framework. Using Qt, you can |
83 | write web-enabled applications once and deploy them across desktop, | |
84 | mobile and embedded systems without rewriting the source code. | |
85 | ||
86 | This package contains Qt5 WebKit libraries. | |
87 | ||
88 | %description -l pl.UTF-8 | |
89 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
90 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
91 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
92 | źródłowego. | |
93 | ||
94 | Ten pakiet zawiera biblioteki Qt5 WebKit. | |
68e7984a | 95 | |
255f7f61 | 96 | %package -n Qt5WebKit |
50a36e1f JB |
97 | Summary: The Qt5 WebKit libraries |
98 | Summary(pl.UTF-8): Biblioteki Qt5 WebKit | |
255f7f61 | 99 | Group: X11/Libraries |
5da6712d JB |
100 | Requires: Qt5Core >= %{qtbase_ver} |
101 | Requires: Qt5Gui >= %{qtbase_ver} | |
1239c82a | 102 | %{?with_qtmultimedia:Requires: Qt5MultimediaWidgets >= %{qtmultimedia_ver}} |
5da6712d JB |
103 | Requires: Qt5Network >= %{qtbase_ver} |
104 | Requires: Qt5OpenGL >= %{qtbase_ver} | |
1239c82a | 105 | Requires: Qt5Positioning >= %{qtlocation_ver} |
5da6712d JB |
106 | Requires: Qt5PrintSupport >= %{qtbase_ver} |
107 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
108 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
1239c82a | 109 | Requires: Qt5Sensors >= %{qtsensors_ver} |
5da6712d JB |
110 | Requires: Qt5Sql >= %{qtbase_ver} |
111 | Requires: Qt5Widgets >= %{qtbase_ver} | |
255f7f61 WF |
112 | |
113 | %description -n Qt5WebKit | |
5da6712d JB |
114 | Qt5 WebKit libraries provide a web browser engine as well as C++ |
115 | classes to render and interact with web content. | |
50a36e1f JB |
116 | |
117 | %description -n Qt5WebKit -l pl.UTF-8 | |
5da6712d JB |
118 | Biblioteki Qt5 WebKit dostarczają silnik przeglądarki WWW, a także |
119 | klasy C++ do renderowania i interakcji z treścią WWW. | |
255f7f61 WF |
120 | |
121 | %package -n Qt5WebKit-devel | |
50a36e1f JB |
122 | Summary: Qt5 WebKit libraries - development files |
123 | Summary(pl.UTF-8): Biblioteki Qt5 WebKit - pliki programistyczne | |
68e7984a | 124 | Group: X11/Development/Libraries |
5da6712d JB |
125 | Requires: Qt5Core-devel >= %{qtbase_ver} |
126 | Requires: Qt5Gui-devel >= %{qtbase_ver} | |
1239c82a | 127 | %{?with_qtmultimedia:Requires: Qt5MultimediaWidgets-devel >= %{qtmultimedia_ver}} |
5da6712d JB |
128 | Requires: Qt5Network-devel >= %{qtbase_ver} |
129 | Requires: Qt5OpenGL-devel >= %{qtbase_ver} | |
1239c82a | 130 | Requires: Qt5Positioning-devel >= %{qtlocation_ver} |
5da6712d JB |
131 | Requires: Qt5PrintSupport-devel >= %{qtbase_ver} |
132 | Requires: Qt5Quick-devel >= %{qtbase_ver} | |
1239c82a | 133 | Requires: Qt5Sensors-devel >= %{qtsensors_ver} |
255f7f61 | 134 | Requires: Qt5WebKit = %{version}-%{release} |
5da6712d | 135 | Requires: Qt5Widgets-devel >= %{qtbase_ver} |
68e7984a | 136 | |
255f7f61 | 137 | %description -n Qt5WebKit-devel |
50a36e1f JB |
138 | Qt5 WebKit libraries - development files. |
139 | ||
140 | %description -n Qt5WebKit-devel -l pl.UTF-8 | |
141 | Biblioteki Qt5 WebKit - pliki programistyczne. | |
68e7984a WF |
142 | |
143 | %package doc | |
50a36e1f JB |
144 | Summary: Qt5 WebKit documentation in HTML format |
145 | Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 WebKit w formacie HTML | |
68e7984a | 146 | Group: Documentation |
50a36e1f | 147 | Requires: qt5-doc-common >= %{qtbase_ver} |
983a5b21 ER |
148 | %if "%{_rpmversion}" >= "5" |
149 | BuildArch: noarch | |
150 | %endif | |
68e7984a WF |
151 | |
152 | %description doc | |
50a36e1f JB |
153 | Qt5 WebKit documentation in HTML format. |
154 | ||
155 | %description doc -l pl.UTF-8 | |
156 | Dokumentacja do bibliotek Qt5 WebKit w formacie HTML. | |
157 | ||
158 | %package doc-qch | |
159 | Summary: Qt5 WebKit documentation in QCH format | |
160 | Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 WebKit w formacie QCH | |
161 | Group: Documentation | |
162 | Requires: qt5-doc-common >= %{qtbase_ver} | |
163 | %if "%{_rpmversion}" >= "5" | |
164 | BuildArch: noarch | |
165 | %endif | |
166 | ||
167 | %description doc-qch | |
168 | Qt5 WebKit documentation in QCH format. | |
169 | ||
170 | %description doc-qch -l pl.UTF-8 | |
171 | Dokumentacja do bibliotek Qt5 WebKit w formacie QCH. | |
68e7984a | 172 | |
68e7984a WF |
173 | %prep |
174 | %setup -q -n %{orgname}-opensource-src-%{version} | |
370e02b1 | 175 | %patch0 -p1 |
50e4885e | 176 | %patch1 -p1 |
68e7984a WF |
177 | |
178 | %build | |
1239c82a JB |
179 | qmake-qt5 \ |
180 | %{?with_qtmultimedia:WEBKIT_CONFIG+=use_qtmultimedia} | |
5da6712d | 181 | |
68e7984a | 182 | %{__make} |
50a36e1f | 183 | %{__make} %{!?with_qch:html_}docs |
68e7984a WF |
184 | |
185 | %install | |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | %{__make} install \ | |
188 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
189 | ||
50a36e1f | 190 | %{__make} install_%{!?with_qch:html_}docs \ |
68e7984a WF |
191 | INSTALL_ROOT=$RPM_BUILD_ROOT |
192 | ||
5da6712d JB |
193 | # kill unnecessary -L%{_libdir} from *.la, *.prl, *.pc |
194 | %{__sed} -i -e "s,-L%{_libdir} \?,,g" \ | |
195 | $RPM_BUILD_ROOT%{_libdir}/*.{la,prl} \ | |
196 | $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
197 | # kill unwanted Libs.private (containing many bogus entries) from *.pc files | |
198 | %{__sed} -i -e '/^Libs\.private/d' $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
50a36e1f JB |
199 | # useless symlinks |
200 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.? | |
201 | # actually drop *.la, follow policy of not packaging them when *.pc exist | |
202 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
203 | ||
68e7984a WF |
204 | %clean |
205 | rm -rf $RPM_BUILD_ROOT | |
206 | ||
50a36e1f JB |
207 | %post -n Qt5WebKit -p /sbin/ldconfig |
208 | %postun -n Qt5WebKit -p /sbin/ldconfig | |
68e7984a | 209 | |
255f7f61 | 210 | %files -n Qt5WebKit |
68e7984a | 211 | %defattr(644,root,root,755) |
50a36e1f | 212 | %attr(755,root,root) %{_libdir}/libQt5WebKit.so.*.*.* |
255f7f61 | 213 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebKit.so.5 |
50a36e1f | 214 | %attr(755,root,root) %{_libdir}/libQt5WebKitWidgets.so.*.*.* |
255f7f61 | 215 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebKitWidgets.so.5 |
255f7f61 WF |
216 | %dir %{_libdir}/qt5/qml/QtWebKit |
217 | %attr(755,root,root) %{_libdir}/qt5/qml/QtWebKit/libqmlwebkitplugin.so | |
53fad3a3 | 218 | %{_libdir}/qt5/qml/QtWebKit/plugins.qmltypes |
255f7f61 WF |
219 | %{_libdir}/qt5/qml/QtWebKit/qmldir |
220 | %dir %{_libdir}/qt5/qml/QtWebKit/experimental | |
221 | %attr(755,root,root) %{_libdir}/qt5/qml/QtWebKit/experimental/libqmlwebkitexperimentalplugin.so | |
222 | %{_libdir}/qt5/qml/QtWebKit/experimental/qmldir | |
5da6712d | 223 | %dir %{_libdir}/qt5/libexec |
5da6712d | 224 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebProcess |
255f7f61 WF |
225 | |
226 | %files -n Qt5WebKit-devel | |
68e7984a | 227 | %defattr(644,root,root,755) |
255f7f61 WF |
228 | %attr(755,root,root) %{_libdir}/libQt5WebKit.so |
229 | %attr(755,root,root) %{_libdir}/libQt5WebKitWidgets.so | |
255f7f61 WF |
230 | %{_libdir}/libQt5WebKit.prl |
231 | %{_libdir}/libQt5WebKitWidgets.prl | |
255f7f61 WF |
232 | %{_includedir}/qt5/QtWebKit |
233 | %{_includedir}/qt5/QtWebKitWidgets | |
234 | %{_pkgconfigdir}/Qt5WebKit.pc | |
235 | %{_pkgconfigdir}/Qt5WebKitWidgets.pc | |
50a36e1f JB |
236 | %{_libdir}/cmake/Qt5WebKit |
237 | %{_libdir}/cmake/Qt5WebKitWidgets | |
5da6712d JB |
238 | %{qt5dir}/mkspecs/modules/qt_lib_webkit.pri |
239 | %{qt5dir}/mkspecs/modules/qt_lib_webkit_private.pri | |
240 | %{qt5dir}/mkspecs/modules/qt_lib_webkitwidgets.pri | |
241 | %{qt5dir}/mkspecs/modules/qt_lib_webkitwidgets_private.pri | |
68e7984a WF |
242 | |
243 | %files doc | |
244 | %defattr(644,root,root,755) | |
5da6712d | 245 | %{_docdir}/qt5-doc/qtwebkit |
50a36e1f JB |
246 | |
247 | %if %{with qch} | |
248 | %files doc-qch | |
249 | %defattr(644,root,root,755) | |
5da6712d | 250 | %{_docdir}/qt5-doc/qtwebkit.qch |
50a36e1f | 251 | %endif |