1 # TODO: review configure options:
2 # - ENABLE_WEBXR (BR: OpenXR >= 1.0.9, openxr.pc)?
3 # - ENABLE_THUNDER (https://github.com/rdkcentral/Thunder)?
4 # - FTL_JIT on !x86_64?
5 # - WEB_RTC+MEDIA_STREAM (BR: openwebrtc)
8 %bcond_with cairogl # accelerated 2D canvas using cairo-gl
10 # it's not possible to build this with debuginfo on 32bit archs due to
11 # memory constraints during linking
13 %define _enable_debug_packages 0
15 Summary: Port of WebKit embeddable web component to WPE
16 Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do WPE
18 # NOTE: 2.30.x is stable, 2.31.x devel
23 Source0: https://wpewebkit.org/releases/wpewebkit-%{version}.tar.xz
24 # Source0-md5: b91b85b645061189765a9455a0539df1
25 Patch0: %{name}-x32.patch
26 URL: https://wpewebkit.org/
27 BuildRequires: /usr/bin/ld.gold
28 BuildRequires: EGL-devel
29 BuildRequires: OpenGLESv2-devel
30 BuildRequires: at-spi2-atk-devel >= 2.5.3
31 BuildRequires: atk-devel >= 1:2.16.0
32 BuildRequires: bubblewrap >= 0.3.1
33 BuildRequires: cairo-devel >= 1.16.0
34 BuildRequires: cmake >= 3.10
35 BuildRequires: docbook-dtd412-xml
36 BuildRequires: fontconfig-devel >= 2.13.0
37 BuildRequires: freetype-devel >= 1:2.9.0
38 BuildRequires: gcc-c++ >= 6:7.3.0
39 BuildRequires: glib2-devel >= 1:2.44
40 BuildRequires: glibc-misc
41 BuildRequires: gperf >= 3.0.1
42 BuildRequires: gstreamer-devel >= 1.14
43 BuildRequires: gstreamer-gl-devel >= 1.10.0
44 # codecparsers,mpegts with -DUSE_GSTREAMER_MPEGTS=ON
45 #BuildRequires: gstreamer-plugins-bad-devel >= 1.10.0
46 # app,audio,fft,pbutils,tag,video
47 BuildRequires: gstreamer-plugins-base-devel >= 1.10.0
48 BuildRequires: gtk-doc >= 1.10
49 BuildRequires: harfbuzz-devel >= 1.4.2
50 BuildRequires: harfbuzz-icu-devel >= 1.4.2
51 BuildRequires: libepoxy-devel >= 1.4.0
52 BuildRequires: libgcrypt-devel >= 1.7.0
53 BuildRequires: libicu-devel >= 60.2
54 BuildRequires: libjpeg-devel
55 BuildRequires: libpng-devel
56 BuildRequires: libseccomp-devel
57 BuildRequires: libsoup-devel >= 2.54.0
58 BuildRequires: libstdc++-devel >= 6:7.3.0
59 BuildRequires: libtasn1-devel
60 BuildRequires: libwebp-devel
61 BuildRequires: libwpe-devel >= 1.8.0
62 BuildRequires: libxml2-devel >= 1:2.8.0
63 BuildRequires: libxslt-devel >= 1.1.7
64 BuildRequires: openjpeg2-devel >= 2.2.0
65 BuildRequires: perl-base >= 1:5.10.0
66 BuildRequires: pkgconfig
68 BuildRequires: pkgconfig(cairo-egl) >= 1.10.2
69 BuildRequires: pkgconfig(cairo-gl) >= 1.10.2
70 BuildRequires: pkgconfig(cairo-glx) >= 1.10.2
72 BuildRequires: python >= 1:2.7.0
73 BuildRequires: rpmbuild(macros) >= 1.699
74 BuildRequires: ruby >= 1:1.9
75 BuildRequires: ruby-modules >= 1:1.9
76 BuildRequires: sqlite3-devel >= 3
77 BuildRequires: tar >= 1:1.22
78 BuildRequires: wayland-devel
79 BuildRequires: wayland-egl-devel
80 BuildRequires: wpebackend-fdo-devel >= 1.8.0
81 BuildRequires: woff2-devel >= 1.0.2
82 BuildRequires: xdg-dbus-proxy
83 BuildRequires: xorg-lib-libICE-devel
84 BuildRequires: xorg-lib-libXcomposite-devel
85 BuildRequires: xorg-lib-libXdamage-devel
86 BuildRequires: xorg-lib-libXext-devel
87 BuildRequires: xorg-lib-libXrender-devel
88 BuildRequires: xorg-lib-libXt-devel
90 BuildRequires: zlib-devel
91 Requires: at-spi2-atk-libs >= 2.5.3
92 Requires: atk >= 1:2.16.0
93 Requires: cairo >= 1.16.0
94 Requires: fontconfig-libs >= 2.13.0
95 Requires: freetype >= 1:2.9.0
96 Requires: glib2 >= 1:2.44
97 Requires: gstreamer >= 1.2.3
98 Requires: gstreamer-plugins-base >= 1.2.3
99 Requires: harfbuzz >= 1.4.2
100 Requires: libepoxy >= 1.4.0
101 Requires: libgcrypt >= 1.7.0
102 Requires: libsoup >= 2.54.0
103 Requires: libxml2 >= 1:2.8.0
104 Requires: libxslt >= 1.1.7
105 Requires: openjpeg2 >= 2.2.0
106 Requires: woff2 >= 1.0.2
107 Requires: wpebackend-fdo >= 1.8.0
108 # Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_
109 ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4
110 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
113 wpe-webkit is a port of the WebKit embeddable web component to WPE.
115 WPE (Webkit Port for Embedded) is the reference WebKit port for
116 embedded and low-consumption computer devices.
118 %description -l pl.UTF-8
119 wpe-webkit to port osadzalnego komponentu WWW WebKit do WPE.
121 WPE (Webkit Port for Embedded) to wzorcowy port biblioteki WebKit dla
122 urządzeń komputerowych wbudowanych oraz o niskim poborze energii.
125 Summary: Development files for WebKit for WPE
126 Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla WPE
127 Group: X11/Development/Libraries
128 Requires: %{name} = %{version}-%{release}
129 Requires: glib2-devel >= 1:2.44
130 Requires: libsoup-devel >= 2.54.0
131 Requires: libstdc++-devel >= 6:7.3.0
132 Requires: libwpe-devel >= 1.5.0
135 Development files for WebKit for WPE.
137 %description devel -l pl.UTF-8
138 Pliki programistyczne komponentu WebKit dla WPE.
141 Summary: WebKit API documentation
142 Summary(pl.UTF-8): Dokumentacja API WebKita
144 Requires: gtk-doc-common
145 %if "%{_rpmversion}" >= "5"
150 WebKit API documentation.
152 %description apidocs -l pl.UTF-8
153 Dokumentacja API WebKita.
156 %setup -q -n wpewebkit-%{version}
163 %{?with_cairogl:-DENABLE_ACCELERATED_2D_CANVAS=ON} \
164 -DENABLE_GEOLOCATION=ON \
169 -DENABLE_SAMPLING_PROFILER=OFF \
172 -DENABLE_WEB_AUDIO=ON \
174 %ifarch %{ix86} %{x8664} x32
175 -DHAVE_SSE2_EXTENSIONS=ON \
178 -DSHOULD_INSTALL_JS_SHELL=ON
183 rm -rf $RPM_BUILD_ROOT
185 %{__make} -C build install \
186 DESTDIR=$RPM_BUILD_ROOT
188 %if "%{_gtkdocdir}" != "%{_datadir}/gtk-doc/html"
189 install -d $RPM_BUILD_ROOT%{_gtkdocdir}
190 %{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir}
194 rm -rf $RPM_BUILD_ROOT
196 %post -p /sbin/ldconfig
197 %postun -p /sbin/ldconfig
200 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_bindir}/WPEWebDriver
203 %attr(755,root,root) %{_libdir}/libWPEWebKit-1.0.so.*.*.*
204 %attr(755,root,root) %ghost %{_libdir}/libWPEWebKit-1.0.so.3
205 %if "%{_libexecdir}" != "%{_libdir}"
206 %dir %{_libexecdir}/wpe-webkit-1.0
208 %attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/WPENetworkProcess
209 %attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/WPEWebProcess
210 %attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/jsc
211 %dir %{_libdir}/wpe-webkit-1.0
212 %attr(755,root,root) %{_libdir}/wpe-webkit-1.0/libWPEWebInspectorResources.so
213 %dir %{_libdir}/wpe-webkit-1.0/injected-bundle
214 %attr(755,root,root) %{_libdir}/wpe-webkit-1.0/injected-bundle/libWPEInjectedBundle.so
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/libWPEWebKit-1.0.so
219 %{_includedir}/wpe-webkit-1.0
220 %{_pkgconfigdir}/wpe-web-extension-1.0.pc
221 %{_pkgconfigdir}/wpe-webkit-1.0.pc
224 %defattr(644,root,root,755)
225 %{_gtkdocdir}/wpe-1.0
226 %{_gtkdocdir}/wpe-webextensions-1.0