]> git.pld-linux.org Git - packages/gtk-webkit4.git/blame - gtk-webkit4.spec
updated x32 patch (based on debian patch)
[packages/gtk-webkit4.git] / gtk-webkit4.spec
CommitLineData
91c1decc 1# TODO: review configure options:
5e4ace1a 2# - FTL_JIT on !x86_64?
7e29230d 3# - WEB_RTC+MEDIA_STREAM (BR: openwebrtc)
f8e56294
AF
4#
5# Conditional build:
6%bcond_without introspection # disable introspection
5e4ace1a 7%bcond_with cairogl # accelerated 2D canvas using cairo-gl
5e4ace1a 8%bcond_without wayland # Wayland target (requires GTK+ wayland target)
f8e56294 9#
4bb10dff
JR
10# it's not possible to build this with debuginfo on 32bit archs due to
11# memory constraints during linking
12%ifarch %{ix86} x32
13%define _enable_debug_packages 0
14%endif
97c9d259
JB
15Summary: Port of WebKit embeddable web component to GTK+ 3
16Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3
e761a49a 17Name: gtk-webkit4
edf30594
JB
18# NOTE: 2.26.x is stable, 2.27.x devel (see DEVEL-2.27 branch)
19Version: 2.26.1
3929c180 20Release: 2
f8e56294
AF
21License: BSD-like
22Group: X11/Libraries
0fe5cc0d 23Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
edf30594 24# Source0-md5: 08145bd6c1587230f135921c142bc150
72628bc4 25Patch0: x32.patch
9a072c00 26Patch1: %{name}-icu59.patch
27c9a1ed 27Patch2: %{name}-gir.patch
3929c180 28Patch3: %{name}-icu65.patch
0fe5cc0d 29URL: https://webkitgtk.org/
8f69f015 30BuildRequires: /usr/bin/ld.gold
e3d059d0
JB
31BuildRequires: EGL-devel
32BuildRequires: OpenGL-GLX-devel
bbd2fab2 33BuildRequires: at-spi2-core-devel >= 2.6.0
e761a49a
JB
34BuildRequires: atk-devel
35BuildRequires: bison >= 2.3
215513aa 36BuildRequires: bubblewrap >= 0.3.1
7e29230d 37BuildRequires: cairo-devel >= 1.16.0
356167c2 38BuildRequires: cmake >= 3.10
0df10670 39BuildRequires: docbook-dtd412-xml
7e29230d 40BuildRequires: enchant2-devel >= 2
e761a49a 41BuildRequires: flex >= 2.5.34
7e29230d
JB
42BuildRequires: fontconfig-devel >= 2.13.0
43BuildRequires: freetype-devel >= 1:2.9.0
356167c2 44BuildRequires: gcc-c++ >= 6:7.3.0
b19bf66f 45BuildRequires: geoclue2-devel >= 2.1.5
e761a49a 46BuildRequires: gettext-devel
356167c2 47BuildRequires: glib2-devel >= 1:2.44
f8e56294 48BuildRequires: glibc-misc
bbd2fab2 49%{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0}
e761a49a 50BuildRequires: gperf >= 3.0.1
7e29230d 51BuildRequires: gstreamer-devel >= 1.14
ef26b207 52BuildRequires: gstreamer-gl-devel >= 1.8.3
7e29230d
JB
53# mpegts with -DUSE_GSTREAMER_MPEGTS=ON
54#BuildRequires: gstreamer-plugins-bad-devel >= 1.8.3
55# app,audio,fft,pbutils,tag,video
56BuildRequires: gstreamer-plugins-base-devel >= 1.8.3
356167c2 57BuildRequires: gtk+3-devel >= 3.22.0
f8e56294 58BuildRequires: gtk-doc >= 1.10
7e29230d
JB
59BuildRequires: harfbuzz-devel >= 1.4.2
60BuildRequires: harfbuzz-icu-devel >= 1.4.2
9a76c25d 61BuildRequires: hyphen-devel
7e29230d 62BuildRequires: libgcrypt-devel >= 1.7.0
9a072c00 63BuildRequires: libicu-devel >= 59
f8e56294 64BuildRequires: libjpeg-devel
ad56e591 65BuildRequires: libnotify-devel
f8e56294 66BuildRequires: libpng-devel
bbd2fab2 67BuildRequires: libsecret-devel
356167c2 68BuildRequires: libsoup-devel >= 2.54
7e29230d
JB
69BuildRequires: libstdc++-devel >= 6:6.0.0
70BuildRequires: libtasn1-devel
bbd2fab2 71BuildRequires: libwebp-devel
356167c2 72BuildRequires: libwpe-devel >= 1.3.0
e761a49a 73BuildRequires: libxml2-devel >= 1:2.8.0
f8e56294 74BuildRequires: libxslt-devel >= 1.1.7
7e29230d 75BuildRequires: openjpeg2-devel >= 2.2.0
bbd2fab2 76BuildRequires: pango-devel >= 1:1.32.0
e761a49a 77BuildRequires: perl-base >= 1:5.10.0
f8e56294 78BuildRequires: pkgconfig
5e4ace1a
JB
79%if %{with cairogl}
80BuildRequires: pkgconfig(cairo-egl)
81BuildRequires: pkgconfig(cairo-gl)
82BuildRequires: pkgconfig(cairo-glx)
83%endif
ad56e591 84BuildRequires: python >= 1:2.7.0
01e3a259 85BuildRequires: rpmbuild(macros) >= 1.699
0df10670
ER
86BuildRequires: ruby >= 1:1.9
87BuildRequires: ruby-modules >= 1:1.9
333087b6 88BuildRequires: sqlite3-devel >= 3
09aa776b 89BuildRequires: tar >= 1:1.22
356167c2 90BuildRequires: wpebackend-fdo-devel >= 1.4.0
7e29230d 91BuildRequires: woff2-devel >= 1.0.2
215513aa 92BuildRequires: xdg-dbus-proxy
e9e9ae8f 93BuildRequires: xorg-lib-libXcomposite-devel
e3d059d0 94BuildRequires: xorg-lib-libXdamage-devel
cf9395dc 95BuildRequires: xorg-lib-libXrender-devel
09ca9f01 96BuildRequires: xorg-lib-libXt-devel
09aa776b 97BuildRequires: xz
09ca9f01 98BuildRequires: zlib-devel
7e29230d
JB
99Requires: cairo >= 1.16.0
100Requires: fontconfig-libs >= 2.13.0
101Requires: freetype >= 1:2.9.0
102Requires: glib2 >= 1:2.40
6a5b6199
JB
103Requires: gstreamer >= 1.2.3
104Requires: gstreamer-plugins-base >= 1.2.3
e761a49a 105Requires: gtk+3 >= 3.12.0
7e29230d
JB
106Requires: harfbuzz >= 1.4.2
107Requires: libsoup >= 2.48
e761a49a 108Requires: libxml2 >= 1:2.8.0
f8e56294 109Requires: libxslt >= 1.1.7
7e29230d 110Requires: openjpeg2 >= 2.2.0
bbd2fab2 111Requires: pango >= 1:1.32.0
7e29230d 112Requires: woff2 >= 1.0.2
f8e56294 113%{?with_introspection:Conflicts: gir-repository < 0.6.5-7}
5e4ace1a 114# Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_
82029cf4 115ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4
f8e56294
AF
116BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
117
b19bf66f 118# __once_call, __once_called non-function symbols from libstdc++
3e7920f5 119%define skip_post_check_so lib.*gtk-4.0.*
b19bf66f 120
f8e56294 121%description
3e7920f5 122gtk-webkit4 is a port of the WebKit embeddable web component to GTK+
b19bf66f 1233.
f8e56294
AF
124
125%description -l pl.UTF-8
3e7920f5 126gtk-webkit4 to port osadzalnego komponentu WWW WebKit do GTK+ 3.
f8e56294
AF
127
128%package devel
97c9d259
JB
129Summary: Development files for WebKit for GTK+ 3
130Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3
f8e56294
AF
131Group: X11/Development/Libraries
132Requires: %{name} = %{version}-%{release}
7e29230d 133Requires: glib2-devel >= 1:2.40
e761a49a 134Requires: gtk+3-devel >= 3.12.0
7e29230d 135Requires: libsoup-devel >= 2.48
9a76c25d 136Requires: libstdc++-devel >= 6:4.9
f8e56294
AF
137
138%description devel
97c9d259 139Development files for WebKit for GTK+ 3.
f8e56294
AF
140
141%description devel -l pl.UTF-8
97c9d259 142Pliki programistyczne komponentu WebKit dla GTK+ 3.
f8e56294 143
09ca9f01
MB
144%package apidocs
145Summary: WebKit API documentation
146Summary(pl.UTF-8): Dokumentacja API WebKita
147Group: Documentation
148Requires: gtk-doc-common
8f69f015
ER
149%if "%{_rpmversion}" >= "5"
150BuildArch: noarch
151%endif
09ca9f01
MB
152
153%description apidocs
154WebKit API documentation.
155
156%description apidocs -l pl.UTF-8
157Dokumentacja API WebKita.
158
f8e56294 159%prep
9130be70 160%setup -q -n webkitgtk-%{version}
72628bc4 161%patch0 -p1
9a072c00 162%patch1 -p1
27c9a1ed 163%patch2 -p1
3929c180 164%patch3 -p1
97c9d259 165
f8e56294 166%build
e761a49a
JB
167install -d build
168cd build
169%cmake .. \
5e4ace1a 170 %{?with_cairogl:-DENABLE_ACCELERATED_2D_CANVAS=ON} \
e761a49a
JB
171 -DENABLE_GEOLOCATION=ON \
172 -DENABLE_GTKDOC=ON \
816ef86e 173 %{!?with_introspection:-DENABLE_INTROSPECTION=OFF} \
5e4ace1a 174 %{!?with_wayland:-DENABLE_WAYLAND_TARGET=OFF} \
72628bc4 175%ifarch x32
00cdc552 176 -DENABLE_C_LOOP=ON \
72628bc4 177 -DENABLE_JIT=OFF \
00cdc552 178 -DENABLE_SAMPLING_PROFILER=OFF \
72628bc4 179%endif
e761a49a
JB
180 -DENABLE_VIDEO=ON \
181 -DENABLE_WEB_AUDIO=ON \
182 -DENABLE_WEBGL=ON \
7e29230d
JB
183%ifarch %{ix86} %{x8664} x32
184 -DHAVE_SSE2_EXTENSIONS=ON \
185%endif
e761a49a
JB
186 -DPORT=GTK \
187 -DSHOULD_INSTALL_JS_SHELL=ON
188
e761a49a 189%{__make}
f8e56294
AF
190
191%install
192rm -rf $RPM_BUILD_ROOT
193
e761a49a 194%{__make} -C build install \
f8e56294
AF
195 DESTDIR=$RPM_BUILD_ROOT
196
3e7920f5
JB
197%if "%{_gtkdocdir}" != "%{_datadir}/gtk-doc/html"
198install -d $RPM_BUILD_ROOT%{_gtkdocdir}
199%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir}
200%endif
201
202%find_lang WebKit2GTK-4.0
f8e56294
AF
203
204%clean
205rm -rf $RPM_BUILD_ROOT
206
09aa776b
JB
207%post -p /sbin/ldconfig
208%postun -p /sbin/ldconfig
f8e56294 209
3e7920f5 210%files -f WebKit2GTK-4.0.lang
f8e56294 211%defattr(644,root,root,755)
e761a49a 212%doc NEWS
356167c2 213%attr(755,root,root) %{_bindir}/WebKitWebDriver
e761a49a
JB
214%attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so.*.*.*
215%attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-4.0.so.37
216%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so.*.*.*
217%attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-4.0.so.18
f8e56294 218%if %{with introspection}
e761a49a
JB
219%{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib
220%{_libdir}/girepository-1.0/WebKit2-4.0.typelib
221%{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib
f8e56294 222%endif
7e29230d 223%if "%{_libexecdir}" != "%{_libdir}"
4ae8fac8 224%dir %{_libexecdir}/webkit2gtk-4.0
7e29230d 225%endif
4ae8fac8
MB
226%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitNetworkProcess
227%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitPluginProcess
356167c2 228#%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitPluginProcess2
4ae8fac8
MB
229%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitWebProcess
230%attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/jsc
176cc4e5 231%dir %{_libdir}/webkit2gtk-4.0
e761a49a
JB
232%dir %{_libdir}/webkit2gtk-4.0/injected-bundle
233%attr(755,root,root) %{_libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so
f8e56294
AF
234
235%files devel
236%defattr(644,root,root,755)
e761a49a
JB
237%attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so
238%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so
f8e56294 239%if %{with introspection}
e761a49a
JB
240%{_datadir}/gir-1.0/JavaScriptCore-4.0.gir
241%{_datadir}/gir-1.0/WebKit2-4.0.gir
242%{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir
f8e56294 243%endif
e761a49a
JB
244%{_includedir}/webkitgtk-4.0
245%{_pkgconfigdir}/javascriptcoregtk-4.0.pc
246%{_pkgconfigdir}/webkit2gtk-4.0.pc
247%{_pkgconfigdir}/webkit2gtk-web-extension-4.0.pc
09ca9f01
MB
248
249%files apidocs
250%defattr(644,root,root,755)
7e29230d 251%{_gtkdocdir}/jsc-glib-4.0
e761a49a
JB
252%{_gtkdocdir}/webkit2gtk-4.0
253%{_gtkdocdir}/webkitdomgtk-4.0
This page took 0.262456 seconds and 4 git commands to generate.