]>
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 JR |
29 | Version: 5.8.0 |
30 | Release: 0.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 |
68e7984a WF |
75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
76 | ||
68e7984a | 77 | %define specflags -fno-strict-aliasing |
50a36e1f | 78 | %define qt5dir %{_libdir}/qt5 |
68e7984a WF |
79 | |
80 | %description | |
50a36e1f JB |
81 | Qt is a cross-platform application and UI framework. Using Qt, you can |
82 | write web-enabled applications once and deploy them across desktop, | |
83 | mobile and embedded systems without rewriting the source code. | |
84 | ||
85 | This package contains Qt5 WebKit libraries. | |
86 | ||
87 | %description -l pl.UTF-8 | |
88 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
89 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
90 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
91 | źródłowego. | |
92 | ||
93 | Ten pakiet zawiera biblioteki Qt5 WebKit. | |
68e7984a | 94 | |
255f7f61 | 95 | %package -n Qt5WebKit |
50a36e1f JB |
96 | Summary: The Qt5 WebKit libraries |
97 | Summary(pl.UTF-8): Biblioteki Qt5 WebKit | |
255f7f61 | 98 | Group: X11/Libraries |
5da6712d JB |
99 | Requires: Qt5Core >= %{qtbase_ver} |
100 | Requires: Qt5Gui >= %{qtbase_ver} | |
1239c82a | 101 | %{?with_qtmultimedia:Requires: Qt5MultimediaWidgets >= %{qtmultimedia_ver}} |
5da6712d JB |
102 | Requires: Qt5Network >= %{qtbase_ver} |
103 | Requires: Qt5OpenGL >= %{qtbase_ver} | |
1239c82a | 104 | Requires: Qt5Positioning >= %{qtlocation_ver} |
5da6712d JB |
105 | Requires: Qt5PrintSupport >= %{qtbase_ver} |
106 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
107 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
1239c82a | 108 | Requires: Qt5Sensors >= %{qtsensors_ver} |
5da6712d JB |
109 | Requires: Qt5Sql >= %{qtbase_ver} |
110 | Requires: Qt5Widgets >= %{qtbase_ver} | |
255f7f61 WF |
111 | |
112 | %description -n Qt5WebKit | |
5da6712d JB |
113 | Qt5 WebKit libraries provide a web browser engine as well as C++ |
114 | classes to render and interact with web content. | |
50a36e1f JB |
115 | |
116 | %description -n Qt5WebKit -l pl.UTF-8 | |
5da6712d JB |
117 | Biblioteki Qt5 WebKit dostarczają silnik przeglądarki WWW, a także |
118 | klasy C++ do renderowania i interakcji z treścią WWW. | |
255f7f61 WF |
119 | |
120 | %package -n Qt5WebKit-devel | |
50a36e1f JB |
121 | Summary: Qt5 WebKit libraries - development files |
122 | Summary(pl.UTF-8): Biblioteki Qt5 WebKit - pliki programistyczne | |
68e7984a | 123 | Group: X11/Development/Libraries |
5da6712d JB |
124 | Requires: Qt5Core-devel >= %{qtbase_ver} |
125 | Requires: Qt5Gui-devel >= %{qtbase_ver} | |
1239c82a | 126 | %{?with_qtmultimedia:Requires: Qt5MultimediaWidgets-devel >= %{qtmultimedia_ver}} |
5da6712d JB |
127 | Requires: Qt5Network-devel >= %{qtbase_ver} |
128 | Requires: Qt5OpenGL-devel >= %{qtbase_ver} | |
1239c82a | 129 | Requires: Qt5Positioning-devel >= %{qtlocation_ver} |
5da6712d JB |
130 | Requires: Qt5PrintSupport-devel >= %{qtbase_ver} |
131 | Requires: Qt5Quick-devel >= %{qtbase_ver} | |
1239c82a | 132 | Requires: Qt5Sensors-devel >= %{qtsensors_ver} |
255f7f61 | 133 | Requires: Qt5WebKit = %{version}-%{release} |
5da6712d | 134 | Requires: Qt5Widgets-devel >= %{qtbase_ver} |
68e7984a | 135 | |
255f7f61 | 136 | %description -n Qt5WebKit-devel |
50a36e1f JB |
137 | Qt5 WebKit libraries - development files. |
138 | ||
139 | %description -n Qt5WebKit-devel -l pl.UTF-8 | |
140 | Biblioteki Qt5 WebKit - pliki programistyczne. | |
68e7984a WF |
141 | |
142 | %package doc | |
50a36e1f JB |
143 | Summary: Qt5 WebKit documentation in HTML format |
144 | Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 WebKit w formacie HTML | |
68e7984a | 145 | Group: Documentation |
50a36e1f | 146 | Requires: qt5-doc-common >= %{qtbase_ver} |
983a5b21 ER |
147 | %if "%{_rpmversion}" >= "5" |
148 | BuildArch: noarch | |
149 | %endif | |
68e7984a WF |
150 | |
151 | %description doc | |
50a36e1f JB |
152 | Qt5 WebKit documentation in HTML format. |
153 | ||
154 | %description doc -l pl.UTF-8 | |
155 | Dokumentacja do bibliotek Qt5 WebKit w formacie HTML. | |
156 | ||
157 | %package doc-qch | |
158 | Summary: Qt5 WebKit documentation in QCH format | |
159 | Summary(pl.UTF-8): Dokumentacja do bibliotek Qt5 WebKit w formacie QCH | |
160 | Group: Documentation | |
161 | Requires: qt5-doc-common >= %{qtbase_ver} | |
162 | %if "%{_rpmversion}" >= "5" | |
163 | BuildArch: noarch | |
164 | %endif | |
165 | ||
166 | %description doc-qch | |
167 | Qt5 WebKit documentation in QCH format. | |
168 | ||
169 | %description doc-qch -l pl.UTF-8 | |
170 | Dokumentacja do bibliotek Qt5 WebKit w formacie QCH. | |
68e7984a | 171 | |
68e7984a WF |
172 | %prep |
173 | %setup -q -n %{orgname}-opensource-src-%{version} | |
370e02b1 | 174 | %patch0 -p1 |
50e4885e | 175 | %patch1 -p1 |
68e7984a WF |
176 | |
177 | %build | |
1239c82a JB |
178 | qmake-qt5 \ |
179 | %{?with_qtmultimedia:WEBKIT_CONFIG+=use_qtmultimedia} | |
5da6712d | 180 | |
68e7984a | 181 | %{__make} |
50a36e1f | 182 | %{__make} %{!?with_qch:html_}docs |
68e7984a WF |
183 | |
184 | %install | |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | %{__make} install \ | |
187 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
188 | ||
50a36e1f | 189 | %{__make} install_%{!?with_qch:html_}docs \ |
68e7984a WF |
190 | INSTALL_ROOT=$RPM_BUILD_ROOT |
191 | ||
5da6712d JB |
192 | # kill unnecessary -L%{_libdir} from *.la, *.prl, *.pc |
193 | %{__sed} -i -e "s,-L%{_libdir} \?,,g" \ | |
194 | $RPM_BUILD_ROOT%{_libdir}/*.{la,prl} \ | |
195 | $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
196 | # kill unwanted Libs.private (containing many bogus entries) from *.pc files | |
197 | %{__sed} -i -e '/^Libs\.private/d' $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
50a36e1f JB |
198 | # useless symlinks |
199 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.? | |
200 | # actually drop *.la, follow policy of not packaging them when *.pc exist | |
201 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
202 | ||
68e7984a WF |
203 | %clean |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
50a36e1f JB |
206 | %post -n Qt5WebKit -p /sbin/ldconfig |
207 | %postun -n Qt5WebKit -p /sbin/ldconfig | |
68e7984a | 208 | |
255f7f61 | 209 | %files -n Qt5WebKit |
68e7984a | 210 | %defattr(644,root,root,755) |
50a36e1f | 211 | %attr(755,root,root) %{_libdir}/libQt5WebKit.so.*.*.* |
255f7f61 | 212 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebKit.so.5 |
50a36e1f | 213 | %attr(755,root,root) %{_libdir}/libQt5WebKitWidgets.so.*.*.* |
255f7f61 | 214 | %attr(755,root,root) %ghost %{_libdir}/libQt5WebKitWidgets.so.5 |
255f7f61 WF |
215 | %dir %{_libdir}/qt5/qml/QtWebKit |
216 | %attr(755,root,root) %{_libdir}/qt5/qml/QtWebKit/libqmlwebkitplugin.so | |
53fad3a3 | 217 | %{_libdir}/qt5/qml/QtWebKit/plugins.qmltypes |
255f7f61 WF |
218 | %{_libdir}/qt5/qml/QtWebKit/qmldir |
219 | %dir %{_libdir}/qt5/qml/QtWebKit/experimental | |
220 | %attr(755,root,root) %{_libdir}/qt5/qml/QtWebKit/experimental/libqmlwebkitexperimentalplugin.so | |
221 | %{_libdir}/qt5/qml/QtWebKit/experimental/qmldir | |
5da6712d JB |
222 | %dir %{_libdir}/qt5/libexec |
223 | %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebPluginProcess | |
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 |