]> git.pld-linux.org Git - packages/qt5-qtwebengine.git/blob - qt5-qtwebengine.spec
up to 5.13.1
[packages/qt5-qtwebengine.git] / qt5-qtwebengine.spec
1 #
2 # Conditional build:
3 %bcond_without  doc     # Documentation
4 %bcond_without  system_libvpx   # Build with system libvpx
5
6 %define         orgname         qtwebengine
7 Summary:        The Qt5 WebEngine library
8 Summary(pl.UTF-8):      Biblioteka Qt5 WebEngine
9 Name:           qt5-%{orgname}
10 Version:        5.13.1
11 Release:        1
12 License:        LGPL v3 or GPL v2+ or commercial
13 Group:          X11/Libraries
14 Source0:        http://download.qt.io/official_releases/qt/5.13/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
15 # Source0-md5:  0f6a3e3d9c1a17be769fca94d4a8f7cb
16 Patch0:         remove-compiler-check.patch
17 Patch1:         x32.patch
18 Patch2:         pulseaudio13.patch
19 URL:            http://www.qt.io/
20 BuildRequires:  Mesa-khrplatform-devel
21 BuildRequires:  Qt5Core-devel >= %{version}
22 BuildRequires:  Qt5Designer-devel >= %{version}
23 BuildRequires:  Qt5Gui-devel >= %{version}
24 BuildRequires:  Qt5Network-devel >= %{version}
25 BuildRequires:  Qt5Positioning-devel >= %{version}
26 BuildRequires:  Qt5PrintSupport-devel >= %{version}
27 BuildRequires:  Qt5Qml-devel >= %{version}
28 BuildRequires:  Qt5Quick-devel >= %{version}
29 BuildRequires:  Qt5UiTools-devel >= %{version}
30 BuildRequires:  Qt5WebChannel-devel >= %{version}
31 BuildRequires:  Qt5WebSockets-devel >= %{version}
32 BuildRequires:  Qt5Widgets-devel >= %{version}
33 BuildRequires:  alsa-lib-devel >= 1.0.10
34 BuildRequires:  bison
35 BuildRequires:  dbus-devel
36 BuildRequires:  ffmpeg-devel
37 BuildRequires:  flex
38 BuildRequires:  fontconfig-devel
39 BuildRequires:  freetype-devel >= 2.4.2
40 BuildRequires:  glib2-devel >= 1:2.32.0
41 BuildRequires:  glibc-misc >= 2.17
42 BuildRequires:  gperf
43 BuildRequires:  harfbuzz-devel >= 1.4.2
44 BuildRequires:  jsoncpp-devel
45 BuildRequires:  lcms2-devel
46 BuildRequires:  libdrm-devel
47 BuildRequires:  libevent-devel
48 BuildRequires:  libicu-devel >= 53
49 BuildRequires:  libjpeg-devel
50 BuildRequires:  libpng-devel >= 1.6.0
51 BuildRequires:  libstdc++-devel
52 BuildRequires:  libstdc++-static
53 %{?with_system_libvpx:BuildRequires:    libvpx-devel >= 1.8.0}
54 BuildRequires:  libwebp-devel
55 BuildRequires:  libxml2-devel
56 BuildRequires:  libxslt-devel
57 BuildRequires:  minizip-devel
58 BuildRequires:  ninja
59 BuildRequires:  nss-devel >= 3.26
60 BuildRequires:  opus-devel
61 BuildRequires:  pkgconfig
62 BuildRequires:  poppler-cpp-devel
63 BuildRequires:  protobuf-devel
64 BuildRequires:  pulseaudio-devel >= 0.9.10
65 BuildRequires:  re2-devel
66 BuildRequires:  snappy-devel
67 %if %{with doc}
68 BuildRequires:  qt5-assistant >= %{version}
69 %endif
70 BuildRequires:  qt5-build >= %{version}
71 BuildRequires:  qt5-qmake >= %{version}
72 BuildRequires:  rpmbuild(macros) >= 1.654
73 BuildRequires:  tar >= 1:1.22
74 BuildRequires:  xorg-lib-libX11-devel
75 BuildRequires:  xorg-lib-libXcomposite-devel
76 BuildRequires:  xorg-lib-libXcursor-devel
77 BuildRequires:  xorg-lib-libXi-devel
78 BuildRequires:  xorg-lib-libXrandr-devel
79 BuildRequires:  xorg-lib-libXtst-devel
80 BuildRequires:  xz
81 BuildRequires:  zlib-devel
82 BuildConflicts: Qt5WebEngine-devel
83 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84
85 %define         specflags       -fno-strict-aliasing
86 %define         qt5dir          %{_libdir}/qt5
87
88 %description
89 Qt is a cross-platform application and UI framework. Using Qt, you can
90 write web-enabled applications once and deploy them across desktop,
91 mobile and embedded systems without rewriting the source code.
92
93 This package contains Qt5 WebEngine library.
94
95 %description -l pl.UTF-8
96 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
97 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
98 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
99 źródłowego.
100
101 Ten pakiet zawiera bibliotekę Qt5 WebEngine.
102
103 %package -n Qt5WebEngine
104 Summary:        The Qt5 WebEngine library
105 Summary(pl.UTF-8):      Biblioteka Qt5 WebEngine
106 Group:          Libraries
107 Requires:       Qt5Core >= %{version}
108 Requires:       Qt5Network >= %{version}
109 Requires:       Qt5Qml >= %{version}
110
111 %description -n Qt5WebEngine
112 Qt5 WebEngine library provides seamless integration of C++ and QML
113 applications with HTML/JavaScript clients.
114
115 %description -n Qt5WebEngine -l pl.UTF-8
116 Biblioteka Qt5 WebEngine udostępnia integrację aplikacji C++ i QML z
117 klientami w HTML-u/JavaScripcie.
118
119 %package -n Qt5WebEngine-devel
120 Summary:        Qt5 WebEngine library - development files
121 Summary(pl.UTF-8):      Biblioteka Qt5 WebEngine - pliki programistyczne
122 Group:          Development/Libraries
123 Requires:       Qt5Core-devel >= %{version}
124 Requires:       Qt5Network-devel >= %{version}
125 Requires:       Qt5Qml-devel >= %{version}
126 Requires:       Qt5WebEngine = %{version}-%{release}
127
128 %description -n Qt5WebEngine-devel
129 Qt5 WebEngine library - development files.
130
131 %description -n Qt5WebEngine-devel -l pl.UTF-8
132 Biblioteka Qt5 WebEngine - pliki programistyczne.
133
134 %package doc
135 Summary:        Qt5 WebEngine documentation in HTML format
136 Summary(pl.UTF-8):      Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML
137 Group:          Documentation
138 Requires:       qt5-doc-common >= %{version}
139 %if "%{_rpmversion}" >= "5"
140 BuildArch:      noarch
141 %endif
142
143 %description doc
144 Qt5 WebEngine documentation in HTML format.
145
146 %description doc -l pl.UTF-8
147 Dokumentacja do biblioteki Qt5 WebEngine w formacie HTML.
148
149 %package doc-qch
150 Summary:        Qt5 WebEngine documentation in QCH format
151 Summary(pl.UTF-8):      Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH
152 Group:          Documentation
153 Requires:       qt5-doc-common >= %{version}
154 %if "%{_rpmversion}" >= "5"
155 BuildArch:      noarch
156 %endif
157
158 %description doc-qch
159 Qt5 WebEngine documentation in QCH format.
160
161 %description doc-qch -l pl.UTF-8
162 Dokumentacja do biblioteki Qt5 WebEngine w formacie QCH.
163
164 %package examples
165 Summary:        Qt5 WebEngine examples
166 Summary(pl.UTF-8):      Przykłady do biblioteki Qt5 WebEngine
167 Group:          X11/Development/Libraries
168 %if "%{_rpmversion}" >= "5"
169 BuildArch:      noarch
170 %endif
171
172 %description examples
173 Qt5 WebEngine examples.
174
175 %description examples -l pl.UTF-8
176 Przykłady do biblioteki Qt5 WebEngine.
177
178 %prep
179 %setup -q -n %{orgname}-everywhere-src-%{version}
180 %patch0 -p1
181 %ifarch x32
182 %patch1 -p1
183 %endif
184 cd ./src/3rdparty/chromium
185 %patch2 -p2
186
187 %build
188 %ifarch x32
189 export V8_TARGET_ARCH="x32"
190 %endif
191 qmake-qt5 -- \
192         -webengine-ffmpeg \
193         -webengine-icu
194 %{__make}
195 %{?with_doc:%{__make} docs}
196
197 %install
198 rm -rf $RPM_BUILD_ROOT
199 %{__make} install \
200         INSTALL_ROOT=$RPM_BUILD_ROOT
201
202 %if %{with doc}
203 %{__make} install_docs \
204         INSTALL_ROOT=$RPM_BUILD_ROOT
205 %endif
206
207 # useless symlinks
208 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
209 # actually drop *.la, follow policy of not packaging them when *.pc exist
210 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
211
212 # Prepare some files list
213 ifecho() {
214         r="$RPM_BUILD_ROOT$2"
215         if [ -d "$r" ]; then
216                 echo "%%dir $2" >> $1.files
217         elif [ -x "$r" ] ; then
218                 echo "%%attr(755,root,root) $2" >> $1.files
219         elif [ -f "$r" ]; then
220                 echo "$2" >> $1.files
221         else
222                 echo "Error generation $1 files list!"
223                 echo "$r: no such file or directory!"
224                 return 1
225         fi
226 }
227 ifecho_tree() {
228         ifecho $1 $2
229         for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
230                 ifecho $1 $2/$f
231         done
232 }
233
234 echo "%defattr(644,root,root,755)" > examples.files
235 ifecho_tree examples %{_examplesdir}/qt5/webengine
236 ifecho_tree examples %{_examplesdir}/qt5/webenginewidgets
237
238 %clean
239 rm -rf $RPM_BUILD_ROOT
240
241 %post   -n Qt5WebEngine -p /sbin/ldconfig
242 %postun -n Qt5WebEngine -p /sbin/ldconfig
243
244 %files -n Qt5WebEngine
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libQt5WebEngine.so.*.*.*
247 %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngine.so.5
248 %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so.*.*.*
249 %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngineCore.so.5
250 %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so.*.*.*
251 %attr(755,root,root) %ghost %{_libdir}/libQt5WebEngineWidgets.so.5
252 %dir %{qt5dir}/qml/QtWebEngine
253 %{qt5dir}/qml/QtWebEngine/plugins.qmltypes
254 %{qt5dir}/qml/QtWebEngine/qmldir
255 %{qt5dir}/qml/QtWebEngine/Controls1Delegates
256 %{qt5dir}/qml/QtWebEngine/Controls2Delegates
257 %attr(755,root,root) %{qt5dir}/qml/QtWebEngine/libqtwebengineplugin.so
258 %dir %{_datadir}/qt5/resources
259 %{_datadir}/qt5/resources/qtwebengine*.pak
260 %attr(755,root,root)  %{_libdir}/qt5/bin/qwebengine_convert_dict
261 %attr(755,root,root) %{_libdir}/qt5/libexec/QtWebEngineProcess
262 %attr(755,root,root) %{_libdir}/qt5/plugins/designer/libqwebengineview.so
263
264 %files -n Qt5WebEngine-devel
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/libQt5WebEngine.so
267 %attr(755,root,root) %{_libdir}/libQt5WebEngineCore.so
268 %attr(755,root,root) %{_libdir}/libQt5WebEngineWidgets.so
269 %{_libdir}/libQt5WebEngine.prl
270 %{_libdir}/libQt5WebEngineCore.prl
271 %{_libdir}/libQt5WebEngineWidgets.prl
272 %{_includedir}/qt5/QtWebEngine
273 %{_includedir}/qt5/QtWebEngineCore
274 %{_includedir}/qt5/QtWebEngineWidgets
275 %{_pkgconfigdir}/Qt5WebEngine.pc
276 %{_pkgconfigdir}/Qt5WebEngineCore.pc
277 %{_pkgconfigdir}/Qt5WebEngineWidgets.pc
278 %{_libdir}/cmake/Qt5WebEngine
279 %{_libdir}/cmake/Qt5WebEngineCore
280 %{_libdir}/cmake/Qt5WebEngineWidgets
281 %{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake
282 %{qt5dir}/mkspecs/modules/qt_lib_webengine.pri
283 %{qt5dir}/mkspecs/modules/qt_lib_webengine_private.pri
284 %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecore.pri
285 %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecore_private.pri
286 %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri
287 %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginewidgets.pri
288 %{_libdir}/qt5/mkspecs/modules/qt_lib_webenginewidgets_private.pri
289
290 %if %{with doc}
291 %files doc
292 %defattr(644,root,root,755)
293 %{_docdir}/qt5-doc/qtwebengine
294
295 %files doc-qch
296 %defattr(644,root,root,755)
297 %{_docdir}/qt5-doc/qtwebengine.qch
298 %endif
299
300 %files examples -f examples.files
301 %defattr(644,root,root,755)
302 # XXX: dir shared with qt5-qtbase-examples
303 %dir %{_examplesdir}/qt5
This page took 0.087631 seconds and 4 git commands to generate.