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