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