Commit c78ecb4e authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add webkitgtk4

parent 89b2b3ef
......@@ -45,7 +45,7 @@ PACKAGES = \
gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
dconf gvfs desktop-file-utils json-glib libnotify vte mozjs24 gjs \
cogl clutter clutter-gtk \
cogl clutter clutter-gtk webkitgtk4 \
zenity \
......@@ -40,6 +40,7 @@ Requires: clutter
Requires: clutter-gtk
Requires: pulseaudio-libs-glib2
Requires: libsecret
Requires: webkitgtk4
Meta package for Gnome SDK dependencies
......@@ -36,6 +36,7 @@ BuildRequires: clutter-gtk-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: dconf-devel
BuildRequires: libsecret-devel
BuildRequires: webkitgtk4-devel
Requires: gtk2-devel gtk2-immodules
Requires: gtk3-devel gtk3-immodules
......@@ -106,6 +107,7 @@ Requires: clutter-devel
Requires: clutter-gtk-devel
Requires: pulseaudio-libs-devel
Requires: libsecret-devel
Requires: webkitgtk4-devel
Meta package for Gnome SDK dependencies
## NOTE: Lots of files in various subdirectories have the same name (such as
## "LICENSE") so this short macro allows us to distinguish them by using their
## directory names (from the source tree) as prefixes for the files.
%global add_to_license_files() \
mkdir -p _license_files ; \
cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g')
%global _hardened_build 1
Name: webkitgtk4
Version: 2.7.3
Release: 1%{?dist}
Summary: GTK+ Web content engine library
License: LGPLv2
BuildRequires: at-spi2-core-devel
BuildRequires: cairo-devel
#BuildRequires: enchant-devel
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel
#BuildRequires: geoclue2-devel
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
#BuildRequires: gstreamer1-devel
#BuildRequires: gstreamer1-plugins-base-devel
BuildRequires: gtk2-devel
BuildRequires: gtk3-devel
#BuildRequires: gtk-doc
BuildRequires: harfbuzz-devel
#BuildRequires: libicu-devel
BuildRequires: libsecret-devel
BuildRequires: libsoup-devel
#BuildRequires: libwebp-devel
BuildRequires: libXt-devel
BuildRequires: mesa-libGL-devel
#Requires: geoclue2
# Filter out provides for private libraries
%global __provides_exclude_from ^%{_libdir}/webkit2gtk-4\\.0/.*\\.so$
WebKitGTK+ is the port of the portable web rendering engine WebKit to the
GTK+ platform.
This package contains WebKitGTK+ for GTK+ 3.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries, build data, and header
files for developing applications that use %{name}.
%setup -q -n webkitgtk-%{version}
# Decrease debuginfo verbosity to reduce memory consumption even more
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
# Disable on s390 as it does not have it.
# Also for aarch64 as the support is in upstream, but not packaged in Fedora.
mkdir -p %{_target_platform}
pushd %{_target_platform}
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \
/usr/bin/cmake \
make %{?_smp_mflags} -C %{_target_platform}
%make_install -C %{_target_platform}
%find_lang WebKit2GTK-4.0
# Finally, copy over and rename various files for %%license inclusion
%add_to_license_files Source/JavaScriptCore/COPYING.LIB
%add_to_license_files Source/JavaScriptCore/icu/LICENSE
%add_to_license_files Source/ThirdParty/ANGLE/LICENSE
%add_to_license_files Source/ThirdParty/ANGLE/src/third_party/compiler/LICENSE
%add_to_license_files Source/ThirdParty/ANGLE/src/third_party/murmurhash/LICENSE
%add_to_license_files Source/WebCore/icu/LICENSE
%add_to_license_files Source/WebCore/LICENSE-APPLE
%add_to_license_files Source/WebCore/LICENSE-LGPL-2
%add_to_license_files Source/WebCore/LICENSE-LGPL-2.1
%add_to_license_files Source/WebInspectorUI/UserInterface/External/CodeMirror/LICENSE
%add_to_license_files Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE
%add_to_license_files Source/WTF/icu/LICENSE
%add_to_license_files Source/WTF/wtf/dtoa/COPYING
%add_to_license_files Source/WTF/wtf/dtoa/LICENSE
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f WebKit2GTK-4.0.lang
%license _license_files/*
%files devel
* Thu Jan 8 2015 Alexander Larsson <> - 2.7.3-1
- import from fedora
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment