- rediffed x32 patch; release 2
[packages/wpe-webkit.git] / wpe-webkit.spec
CommitLineData
8dd13544 1# TODO: review configure options:
d0c0d9b5
JB
2# - ENABLE_WEBXR (BR: OpenXR >= 1.0.9, openxr.pc)?
3# - ENABLE_THUNDER (https://github.com/rdkcentral/Thunder)?
8dd13544
JB
4# - FTL_JIT on !x86_64?
5# - WEB_RTC+MEDIA_STREAM (BR: openwebrtc)
6#
7# Conditional build:
8%bcond_with cairogl # accelerated 2D canvas using cairo-gl
9#
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
15Summary: Port of WebKit embeddable web component to WPE
16Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do WPE
17Name: wpe-webkit
d0c0d9b5 18# NOTE: 2.30.x is stable, 2.31.x devel
a525c447 19Version: 2.30.5
a359e76e 20Release: 2
8dd13544
JB
21License: BSD-like
22Group: X11/Libraries
23Source0: https://wpewebkit.org/releases/wpewebkit-%{version}.tar.xz
a525c447 24# Source0-md5: 63a9a7b7f29862ec827a730ba6542e80
8dd13544
JB
25Patch0: %{name}-x32.patch
26URL: https://wpewebkit.org/
27BuildRequires: /usr/bin/ld.gold
28BuildRequires: EGL-devel
29BuildRequires: OpenGLESv2-devel
30BuildRequires: at-spi2-atk-devel >= 2.5.3
31BuildRequires: atk-devel >= 1:2.16.0
32BuildRequires: bubblewrap >= 0.3.1
33BuildRequires: cairo-devel >= 1.16.0
34BuildRequires: cmake >= 3.10
35BuildRequires: docbook-dtd412-xml
36BuildRequires: fontconfig-devel >= 2.13.0
37BuildRequires: freetype-devel >= 1:2.9.0
38BuildRequires: gcc-c++ >= 6:7.3.0
39BuildRequires: glib2-devel >= 1:2.44
40BuildRequires: glibc-misc
41BuildRequires: gperf >= 3.0.1
42BuildRequires: gstreamer-devel >= 1.14
43BuildRequires: 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
47BuildRequires: gstreamer-plugins-base-devel >= 1.10.0
48BuildRequires: gtk-doc >= 1.10
49BuildRequires: harfbuzz-devel >= 1.4.2
50BuildRequires: harfbuzz-icu-devel >= 1.4.2
51BuildRequires: libepoxy-devel >= 1.4.0
52BuildRequires: libgcrypt-devel >= 1.7.0
d0c0d9b5 53BuildRequires: libicu-devel >= 60.2
8dd13544
JB
54BuildRequires: libjpeg-devel
55BuildRequires: libpng-devel
56BuildRequires: libseccomp-devel
57BuildRequires: libsoup-devel >= 2.54.0
58BuildRequires: libstdc++-devel >= 6:7.3.0
59BuildRequires: libtasn1-devel
60BuildRequires: libwebp-devel
d0c0d9b5 61BuildRequires: libwpe-devel >= 1.8.0
8dd13544
JB
62BuildRequires: libxml2-devel >= 1:2.8.0
63BuildRequires: libxslt-devel >= 1.1.7
64BuildRequires: openjpeg2-devel >= 2.2.0
65BuildRequires: perl-base >= 1:5.10.0
66BuildRequires: pkgconfig
67%if %{with cairogl}
68BuildRequires: pkgconfig(cairo-egl) >= 1.10.2
69BuildRequires: pkgconfig(cairo-gl) >= 1.10.2
70BuildRequires: pkgconfig(cairo-glx) >= 1.10.2
71%endif
72BuildRequires: python >= 1:2.7.0
a525c447 73BuildRequires: rpm-build >= 4.6
8dd13544
JB
74BuildRequires: rpmbuild(macros) >= 1.699
75BuildRequires: ruby >= 1:1.9
76BuildRequires: ruby-modules >= 1:1.9
77BuildRequires: sqlite3-devel >= 3
78BuildRequires: tar >= 1:1.22
79BuildRequires: wayland-devel
80BuildRequires: wayland-egl-devel
d0c0d9b5 81BuildRequires: wpebackend-fdo-devel >= 1.8.0
8dd13544
JB
82BuildRequires: woff2-devel >= 1.0.2
83BuildRequires: xdg-dbus-proxy
84BuildRequires: xorg-lib-libICE-devel
85BuildRequires: xorg-lib-libXcomposite-devel
86BuildRequires: xorg-lib-libXdamage-devel
87BuildRequires: xorg-lib-libXext-devel
88BuildRequires: xorg-lib-libXrender-devel
89BuildRequires: xorg-lib-libXt-devel
90BuildRequires: xz
91BuildRequires: zlib-devel
92Requires: at-spi2-atk-libs >= 2.5.3
93Requires: atk >= 1:2.16.0
94Requires: cairo >= 1.16.0
95Requires: fontconfig-libs >= 2.13.0
96Requires: freetype >= 1:2.9.0
97Requires: glib2 >= 1:2.44
98Requires: gstreamer >= 1.2.3
99Requires: gstreamer-plugins-base >= 1.2.3
100Requires: harfbuzz >= 1.4.2
101Requires: libepoxy >= 1.4.0
102Requires: libgcrypt >= 1.7.0
103Requires: libsoup >= 2.54.0
104Requires: libxml2 >= 1:2.8.0
105Requires: libxslt >= 1.1.7
106Requires: openjpeg2 >= 2.2.0
107Requires: woff2 >= 1.0.2
d0c0d9b5 108Requires: wpebackend-fdo >= 1.8.0
8dd13544
JB
109# Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_
110ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4
111BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
112
113%description
114wpe-webkit is a port of the WebKit embeddable web component to WPE.
115
116WPE (Webkit Port for Embedded) is the reference WebKit port for
117embedded and low-consumption computer devices.
118
119%description -l pl.UTF-8
120wpe-webkit to port osadzalnego komponentu WWW WebKit do WPE.
121
122WPE (Webkit Port for Embedded) to wzorcowy port biblioteki WebKit dla
123urządzeń komputerowych wbudowanych oraz o niskim poborze energii.
124
125%package devel
126Summary: Development files for WebKit for WPE
127Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla WPE
128Group: X11/Development/Libraries
129Requires: %{name} = %{version}-%{release}
130Requires: glib2-devel >= 1:2.44
131Requires: libsoup-devel >= 2.54.0
132Requires: libstdc++-devel >= 6:7.3.0
388c1ed5 133Requires: libwpe-devel >= 1.5.0
8dd13544
JB
134
135%description devel
136Development files for WebKit for WPE.
137
138%description devel -l pl.UTF-8
139Pliki programistyczne komponentu WebKit dla WPE.
140
141%package apidocs
142Summary: WebKit API documentation
143Summary(pl.UTF-8): Dokumentacja API WebKita
144Group: Documentation
145Requires: gtk-doc-common
8dd13544 146BuildArch: noarch
8dd13544
JB
147
148%description apidocs
149WebKit API documentation.
150
151%description apidocs -l pl.UTF-8
152Dokumentacja API WebKita.
153
154%prep
155%setup -q -n wpewebkit-%{version}
156%patch0 -p1
157
158%build
159install -d build
160cd build
161%cmake .. \
162 %{?with_cairogl:-DENABLE_ACCELERATED_2D_CANVAS=ON} \
163 -DENABLE_GEOLOCATION=ON \
164 -DENABLE_GTKDOC=ON \
165%ifarch x32
166 -DENABLE_C_LOOP=ON \
167 -DENABLE_JIT=OFF \
168 -DENABLE_SAMPLING_PROFILER=OFF \
169%endif
170 -DENABLE_VIDEO=ON \
171 -DENABLE_WEB_AUDIO=ON \
172 -DENABLE_WEBGL=ON \
173%ifarch %{ix86} %{x8664} x32
174 -DHAVE_SSE2_EXTENSIONS=ON \
175%endif
176 -DPORT=WPE \
177 -DSHOULD_INSTALL_JS_SHELL=ON
178
179%{__make}
180
181%install
182rm -rf $RPM_BUILD_ROOT
183
184%{__make} -C build install \
185 DESTDIR=$RPM_BUILD_ROOT
186
187%if "%{_gtkdocdir}" != "%{_datadir}/gtk-doc/html"
188install -d $RPM_BUILD_ROOT%{_gtkdocdir}
189%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir}
190%endif
191
192%clean
193rm -rf $RPM_BUILD_ROOT
194
195%post -p /sbin/ldconfig
196%postun -p /sbin/ldconfig
197
198%files
199%defattr(644,root,root,755)
200%doc NEWS
201%attr(755,root,root) %{_bindir}/WPEWebDriver
202%attr(755,root,root) %{_libdir}/libWPEWebKit-1.0.so.*.*.*
203%attr(755,root,root) %ghost %{_libdir}/libWPEWebKit-1.0.so.3
204%if "%{_libexecdir}" != "%{_libdir}"
205%dir %{_libexecdir}/wpe-webkit-1.0
206%endif
207%attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/WPENetworkProcess
208%attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/WPEWebProcess
209%attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/jsc
210%dir %{_libdir}/wpe-webkit-1.0
211%attr(755,root,root) %{_libdir}/wpe-webkit-1.0/libWPEWebInspectorResources.so
212%dir %{_libdir}/wpe-webkit-1.0/injected-bundle
213%attr(755,root,root) %{_libdir}/wpe-webkit-1.0/injected-bundle/libWPEInjectedBundle.so
214
215%files devel
216%defattr(644,root,root,755)
217%attr(755,root,root) %{_libdir}/libWPEWebKit-1.0.so
218%{_includedir}/wpe-webkit-1.0
219%{_pkgconfigdir}/wpe-web-extension-1.0.pc
220%{_pkgconfigdir}/wpe-webkit-1.0.pc
221
222%files apidocs
223%defattr(644,root,root,755)
224%{_gtkdocdir}/wpe-1.0
225%{_gtkdocdir}/wpe-webextensions-1.0
This page took 0.114193 seconds and 4 git commands to generate.