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