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