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