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