- unconditional noarch subpackages
[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
JB
18# NOTE: 2.30.x is stable, 2.31.x devel
19Version: 2.30.0
20Release: 1
8dd13544
JB
21License: BSD-like
22Group: X11/Libraries
23Source0: https://wpewebkit.org/releases/wpewebkit-%{version}.tar.xz
d0c0d9b5 24# Source0-md5: b91b85b645061189765a9455a0539df1
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
73BuildRequires: rpmbuild(macros) >= 1.699
74BuildRequires: ruby >= 1:1.9
75BuildRequires: ruby-modules >= 1:1.9
76BuildRequires: sqlite3-devel >= 3
77BuildRequires: tar >= 1:1.22
78BuildRequires: wayland-devel
79BuildRequires: wayland-egl-devel
d0c0d9b5 80BuildRequires: wpebackend-fdo-devel >= 1.8.0
8dd13544
JB
81BuildRequires: woff2-devel >= 1.0.2
82BuildRequires: xdg-dbus-proxy
83BuildRequires: xorg-lib-libICE-devel
84BuildRequires: xorg-lib-libXcomposite-devel
85BuildRequires: xorg-lib-libXdamage-devel
86BuildRequires: xorg-lib-libXext-devel
87BuildRequires: xorg-lib-libXrender-devel
88BuildRequires: xorg-lib-libXt-devel
89BuildRequires: xz
90BuildRequires: zlib-devel
91Requires: at-spi2-atk-libs >= 2.5.3
92Requires: atk >= 1:2.16.0
93Requires: cairo >= 1.16.0
94Requires: fontconfig-libs >= 2.13.0
95Requires: freetype >= 1:2.9.0
96Requires: glib2 >= 1:2.44
97Requires: gstreamer >= 1.2.3
98Requires: gstreamer-plugins-base >= 1.2.3
99Requires: harfbuzz >= 1.4.2
100Requires: libepoxy >= 1.4.0
101Requires: libgcrypt >= 1.7.0
102Requires: libsoup >= 2.54.0
103Requires: libxml2 >= 1:2.8.0
104Requires: libxslt >= 1.1.7
105Requires: openjpeg2 >= 2.2.0
106Requires: woff2 >= 1.0.2
d0c0d9b5 107Requires: wpebackend-fdo >= 1.8.0
8dd13544
JB
108# Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_
109ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4
110BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
111
112%description
113wpe-webkit is a port of the WebKit embeddable web component to WPE.
114
115WPE (Webkit Port for Embedded) is the reference WebKit port for
116embedded and low-consumption computer devices.
117
118%description -l pl.UTF-8
119wpe-webkit to port osadzalnego komponentu WWW WebKit do WPE.
120
121WPE (Webkit Port for Embedded) to wzorcowy port biblioteki WebKit dla
122urządzeń komputerowych wbudowanych oraz o niskim poborze energii.
123
124%package devel
125Summary: Development files for WebKit for WPE
126Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla WPE
127Group: X11/Development/Libraries
128Requires: %{name} = %{version}-%{release}
129Requires: glib2-devel >= 1:2.44
130Requires: libsoup-devel >= 2.54.0
131Requires: libstdc++-devel >= 6:7.3.0
388c1ed5 132Requires: libwpe-devel >= 1.5.0
8dd13544
JB
133
134%description devel
135Development files for WebKit for WPE.
136
137%description devel -l pl.UTF-8
138Pliki programistyczne komponentu WebKit dla WPE.
139
140%package apidocs
141Summary: WebKit API documentation
142Summary(pl.UTF-8): Dokumentacja API WebKita
143Group: Documentation
144Requires: gtk-doc-common
8dd13544 145BuildArch: noarch
8dd13544
JB
146
147%description apidocs
148WebKit API documentation.
149
150%description apidocs -l pl.UTF-8
151Dokumentacja API WebKita.
152
153%prep
154%setup -q -n wpewebkit-%{version}
155%patch0 -p1
156
157%build
158install -d build
159cd build
160%cmake .. \
161 %{?with_cairogl:-DENABLE_ACCELERATED_2D_CANVAS=ON} \
162 -DENABLE_GEOLOCATION=ON \
163 -DENABLE_GTKDOC=ON \
164%ifarch x32
165 -DENABLE_C_LOOP=ON \
166 -DENABLE_JIT=OFF \
167 -DENABLE_SAMPLING_PROFILER=OFF \
168%endif
169 -DENABLE_VIDEO=ON \
170 -DENABLE_WEB_AUDIO=ON \
171 -DENABLE_WEBGL=ON \
172%ifarch %{ix86} %{x8664} x32
173 -DHAVE_SSE2_EXTENSIONS=ON \
174%endif
175 -DPORT=WPE \
176 -DSHOULD_INSTALL_JS_SHELL=ON
177
178%{__make}
179
180%install
181rm -rf $RPM_BUILD_ROOT
182
183%{__make} -C build install \
184 DESTDIR=$RPM_BUILD_ROOT
185
186%if "%{_gtkdocdir}" != "%{_datadir}/gtk-doc/html"
187install -d $RPM_BUILD_ROOT%{_gtkdocdir}
188%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir}
189%endif
190
191%clean
192rm -rf $RPM_BUILD_ROOT
193
194%post -p /sbin/ldconfig
195%postun -p /sbin/ldconfig
196
197%files
198%defattr(644,root,root,755)
199%doc NEWS
200%attr(755,root,root) %{_bindir}/WPEWebDriver
201%attr(755,root,root) %{_libdir}/libWPEWebKit-1.0.so.*.*.*
202%attr(755,root,root) %ghost %{_libdir}/libWPEWebKit-1.0.so.3
203%if "%{_libexecdir}" != "%{_libdir}"
204%dir %{_libexecdir}/wpe-webkit-1.0
205%endif
206%attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/WPENetworkProcess
207%attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/WPEWebProcess
208%attr(755,root,root) %{_libexecdir}/wpe-webkit-1.0/jsc
209%dir %{_libdir}/wpe-webkit-1.0
210%attr(755,root,root) %{_libdir}/wpe-webkit-1.0/libWPEWebInspectorResources.so
211%dir %{_libdir}/wpe-webkit-1.0/injected-bundle
212%attr(755,root,root) %{_libdir}/wpe-webkit-1.0/injected-bundle/libWPEInjectedBundle.so
213
214%files devel
215%defattr(644,root,root,755)
216%attr(755,root,root) %{_libdir}/libWPEWebKit-1.0.so
217%{_includedir}/wpe-webkit-1.0
218%{_pkgconfigdir}/wpe-web-extension-1.0.pc
219%{_pkgconfigdir}/wpe-webkit-1.0.pc
220
221%files apidocs
222%defattr(644,root,root,755)
223%{_gtkdocdir}/wpe-1.0
224%{_gtkdocdir}/wpe-webextensions-1.0
This page took 0.126254 seconds and 4 git commands to generate.