]> git.pld-linux.org Git - packages/gtk-webkit4.git/blame - gtk-webkit4.spec
- updated to 2.10.2
[packages/gtk-webkit4.git] / gtk-webkit4.spec
CommitLineData
91c1decc 1# TODO: review configure options:
e761a49a
JB
2# - GAMEPAD
3# - BATTERY_STATUS (BR: upower-devel)
4# - FTL_JIT (BR: llvm, libcxxabi?)
9a76c25d 5# - MEDIA_STREAM (BR: openwebrtc)
f8e56294
AF
6#
7# Conditional build:
816ef86e 8%bcond_without gtk2 # WebKitPluginProcess2 to load GTK+ 2.x based plugins
f8e56294 9%bcond_without introspection # disable introspection
e761a49a
JB
10%bcond_with seccomp # seccomp filters (broken as of 2.6.5)
11%bcond_with wayland # Wayland target (broken as of 2.6.[0-5])
f8e56294 12#
4bb10dff
JR
13# it's not possible to build this with debuginfo on 32bit archs due to
14# memory constraints during linking
15%ifarch %{ix86} x32
16%define _enable_debug_packages 0
17%endif
97c9d259
JB
18Summary: Port of WebKit embeddable web component to GTK+ 3
19Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3
e761a49a 20Name: gtk-webkit4
9a76c25d
JB
21Version: 2.10.2
22Release: 1
f8e56294
AF
23License: BSD-like
24Group: X11/Libraries
9130be70 25Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
9a76c25d 26# Source0-md5: 892e3077ad6c10c8233e7e8b5497cd7a
72628bc4 27Patch0: x32.patch
f8e56294 28URL: http://webkitgtk.org/
8f69f015 29BuildRequires: /usr/bin/ld.gold
e3d059d0
JB
30BuildRequires: EGL-devel
31BuildRequires: OpenGL-GLX-devel
bbd2fab2 32BuildRequires: at-spi2-core-devel >= 2.6.0
e761a49a
JB
33BuildRequires: atk-devel
34BuildRequires: bison >= 2.3
35BuildRequires: cairo-devel >= 1.10.2
9a76c25d 36BuildRequires: cmake >= 2.8.12
f8e56294 37BuildRequires: enchant-devel >= 0.22
e761a49a
JB
38BuildRequires: flex >= 2.5.34
39BuildRequires: fontconfig-devel >= 2.8.0
40BuildRequires: freetype-devel >= 1:2.4.2
9a76c25d 41BuildRequires: gcc-c++ >= 6:4.9
b19bf66f 42BuildRequires: geoclue2-devel >= 2.1.5
e761a49a 43BuildRequires: gettext-devel
bbd2fab2 44BuildRequires: glib2-devel >= 1:2.36.0
f8e56294 45BuildRequires: glibc-misc
e761a49a 46BuildRequires: gnutls-devel >= 3.0.0
bbd2fab2 47%{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0}
e761a49a 48BuildRequires: gperf >= 3.0.1
bbd2fab2
MB
49BuildRequires: gstreamer-devel >= 1.0.3
50BuildRequires: gstreamer-plugins-base-devel >= 1.0.3
816ef86e 51%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.24.10}
e761a49a 52BuildRequires: gtk+3-devel >= 3.12.0
f8e56294 53BuildRequires: gtk-doc >= 1.10
bbd2fab2 54BuildRequires: harfbuzz-devel >= 0.9.7
333087b6 55BuildRequires: harfbuzz-icu-devel >= 0.9.7
9a76c25d 56BuildRequires: hyphen-devel
f8e56294
AF
57BuildRequires: libicu-devel >= 4.2.1
58BuildRequires: libjpeg-devel
ad56e591 59BuildRequires: libnotify-devel
f8e56294 60BuildRequires: libpng-devel
bbd2fab2
MB
61BuildRequires: libsecret-devel
62BuildRequires: libsoup-devel >= 2.42.0
9a76c25d 63BuildRequires: libstdc++-devel >= 6:4.9
bbd2fab2 64BuildRequires: libwebp-devel
e761a49a 65BuildRequires: libxml2-devel >= 1:2.8.0
f8e56294 66BuildRequires: libxslt-devel >= 1.1.7
bbd2fab2 67BuildRequires: pango-devel >= 1:1.32.0
e761a49a 68BuildRequires: perl-base >= 1:5.10.0
f8e56294 69BuildRequires: pkgconfig
ad56e591 70BuildRequires: python >= 1:2.7.0
01e3a259 71BuildRequires: rpmbuild(macros) >= 1.699
e761a49a 72BuildRequires: ruby >= 1.8.7
333087b6 73BuildRequires: sqlite3-devel >= 3
09aa776b 74BuildRequires: tar >= 1:1.22
e761a49a 75#BuildRequires: udev-glib-devel
e9e9ae8f 76BuildRequires: xorg-lib-libXcomposite-devel
e3d059d0 77BuildRequires: xorg-lib-libXdamage-devel
cf9395dc 78BuildRequires: xorg-lib-libXrender-devel
09ca9f01 79BuildRequires: xorg-lib-libXt-devel
09aa776b 80BuildRequires: xz
09ca9f01 81BuildRequires: zlib-devel
e761a49a 82Requires: cairo >= 1.10.2
f8e56294 83Requires: enchant >= 0.22
e761a49a
JB
84Requires: fontconfig-libs >= 2.8.0
85Requires: freetype >= 1:2.4.2
bbd2fab2
MB
86Requires: glib2 >= 1:2.36.0
87Requires: gstreamer >= 1.0.3
88Requires: gstreamer-plugins-base >= 1.0.3
816ef86e 89%{?with_gtk2:Requires: gtk+2 >= 2:2.24.10}
e761a49a 90Requires: gtk+3 >= 3.12.0
e3d059d0 91Requires: harfbuzz >= 0.9.7
bbd2fab2 92Requires: libsoup >= 2.42.0
e761a49a 93Requires: libxml2 >= 1:2.8.0
f8e56294 94Requires: libxslt >= 1.1.7
bbd2fab2 95Requires: pango >= 1:1.32.0
f8e56294
AF
96%{?with_introspection:Conflicts: gir-repository < 0.6.5-7}
97BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
98
b19bf66f 99# __once_call, __once_called non-function symbols from libstdc++
3e7920f5 100%define skip_post_check_so lib.*gtk-4.0.*
b19bf66f 101
f8e56294 102%description
3e7920f5 103gtk-webkit4 is a port of the WebKit embeddable web component to GTK+
b19bf66f 1043.
f8e56294
AF
105
106%description -l pl.UTF-8
3e7920f5 107gtk-webkit4 to port osadzalnego komponentu WWW WebKit do GTK+ 3.
f8e56294
AF
108
109%package devel
97c9d259
JB
110Summary: Development files for WebKit for GTK+ 3
111Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3
f8e56294
AF
112Group: X11/Development/Libraries
113Requires: %{name} = %{version}-%{release}
bbd2fab2 114Requires: glib2-devel >= 1:2.36.0
e761a49a 115Requires: gtk+3-devel >= 3.12.0
bbd2fab2 116Requires: libsoup-devel >= 2.42.0
9a76c25d 117Requires: libstdc++-devel >= 6:4.9
f8e56294
AF
118
119%description devel
97c9d259 120Development files for WebKit for GTK+ 3.
f8e56294
AF
121
122%description devel -l pl.UTF-8
97c9d259 123Pliki programistyczne komponentu WebKit dla GTK+ 3.
f8e56294 124
09ca9f01
MB
125%package apidocs
126Summary: WebKit API documentation
127Summary(pl.UTF-8): Dokumentacja API WebKita
128Group: Documentation
129Requires: gtk-doc-common
8f69f015
ER
130%if "%{_rpmversion}" >= "5"
131BuildArch: noarch
132%endif
09ca9f01
MB
133
134%description apidocs
135WebKit API documentation.
136
137%description apidocs -l pl.UTF-8
138Dokumentacja API WebKita.
139
f8e56294 140%prep
9130be70 141%setup -q -n webkitgtk-%{version}
72628bc4 142%patch0 -p1
97c9d259 143
f8e56294 144%build
e761a49a
JB
145install -d build
146cd build
147%cmake .. \
148 -DENABLE_CREDENTIAL_STORAGE=ON \
149 -DENABLE_GEOLOCATION=ON \
150 -DENABLE_GTKDOC=ON \
816ef86e
JB
151 %{!?with_introspection:-DENABLE_INTROSPECTION=OFF} \
152 %{!?with_gtk2:-DENABLE_PLUGIN_PROCESS_GTK2=OFF} \
e761a49a
JB
153 %{?with_seccomp:-DENABLE_SECCOMP_FILTERS=ON} \
154 %{?with_wayland:-DENABLE_WAYLAND_TARGET=ON} \
72628bc4
JR
155%ifarch x32
156 -DENABLE_JIT=OFF \
157%endif
e761a49a
JB
158 -DENABLE_VIDEO=ON \
159 -DENABLE_WEB_AUDIO=ON \
160 -DENABLE_WEBGL=ON \
161 -DPORT=GTK \
162 -DSHOULD_INSTALL_JS_SHELL=ON
163
e761a49a 164%{__make}
f8e56294
AF
165
166%install
167rm -rf $RPM_BUILD_ROOT
168
e761a49a 169%{__make} -C build install \
f8e56294
AF
170 DESTDIR=$RPM_BUILD_ROOT
171
3e7920f5
JB
172%if "%{_gtkdocdir}" != "%{_datadir}/gtk-doc/html"
173install -d $RPM_BUILD_ROOT%{_gtkdocdir}
174%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir}
175%endif
176
177%find_lang WebKit2GTK-4.0
f8e56294
AF
178
179%clean
180rm -rf $RPM_BUILD_ROOT
181
09aa776b
JB
182%post -p /sbin/ldconfig
183%postun -p /sbin/ldconfig
f8e56294 184
3e7920f5 185%files -f WebKit2GTK-4.0.lang
f8e56294 186%defattr(644,root,root,755)
e761a49a
JB
187%doc NEWS
188%attr(755,root,root) %{_bindir}/jsc
189%attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so.*.*.*
190%attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-4.0.so.37
191%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so.*.*.*
192%attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-4.0.so.18
f8e56294 193%if %{with introspection}
e761a49a
JB
194%{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib
195%{_libdir}/girepository-1.0/WebKit2-4.0.typelib
196%{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib
f8e56294 197%endif
e761a49a 198%dir %{_libdir}/webkit2gtk-4.0
9a76c25d 199%attr(755,root,root) %{_libdir}/webkit2gtk-4.0/WebKitDatabaseProcess
e761a49a
JB
200%attr(755,root,root) %{_libdir}/webkit2gtk-4.0/WebKitNetworkProcess
201%attr(755,root,root) %{_libdir}/webkit2gtk-4.0/WebKitPluginProcess
202%attr(755,root,root) %{_libdir}/webkit2gtk-4.0/WebKitPluginProcess2
203%attr(755,root,root) %{_libdir}/webkit2gtk-4.0/WebKitWebProcess
204%dir %{_libdir}/webkit2gtk-4.0/injected-bundle
205%attr(755,root,root) %{_libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so
f8e56294
AF
206
207%files devel
208%defattr(644,root,root,755)
e761a49a
JB
209%attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so
210%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so
f8e56294 211%if %{with introspection}
e761a49a
JB
212%{_datadir}/gir-1.0/JavaScriptCore-4.0.gir
213%{_datadir}/gir-1.0/WebKit2-4.0.gir
214%{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir
f8e56294 215%endif
e761a49a
JB
216%{_includedir}/webkitgtk-4.0
217%{_pkgconfigdir}/javascriptcoregtk-4.0.pc
218%{_pkgconfigdir}/webkit2gtk-4.0.pc
219%{_pkgconfigdir}/webkit2gtk-web-extension-4.0.pc
09ca9f01
MB
220
221%files apidocs
222%defattr(644,root,root,755)
e761a49a
JB
223%{_gtkdocdir}/webkit2gtk-4.0
224%{_gtkdocdir}/webkitdomgtk-4.0
This page took 0.0646 seconds and 4 git commands to generate.