|
|
37875f4 |
## NOTE: Lots of files in various subdirectories have the same name (such as
|
|
|
37875f4 |
## "LICENSE") so this short macro allows us to distinguish them by using their
|
|
|
37875f4 |
## directory names (from the source tree) as prefixes for the files.
|
|
|
37875f4 |
%global add_to_license_files() \
|
|
|
37875f4 |
mkdir -p _license_files ; \
|
|
|
37875f4 |
cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g')
|
|
|
37875f4 |
|
|
|
37875f4 |
Name: webkitgtk4
|
|
|
37875f4 |
Version: 2.5.3
|
|
|
3570d6f |
Release: 7%{?dist}
|
|
|
37875f4 |
Summary: GTK+ Web content engine library
|
|
|
37875f4 |
|
|
|
37875f4 |
License: LGPLv2
|
|
|
37875f4 |
URL: http://www.webkitgtk.org/
|
|
|
37875f4 |
Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
|
|
|
37875f4 |
|
|
|
912a257 |
Patch0: webkit-1.1.14-nspluginwrapper.patch
|
|
|
912a257 |
Patch1: webkitgtk-aarch64.patch
|
|
|
912a257 |
Patch2: webkitgtk-2.5.2-cloop_fix.patch
|
|
|
912a257 |
Patch3: webkitgtk-2.5.2-cloop_fix_32.patch
|
|
|
912a257 |
Patch4: webkitgtk-2.5.2-commit_align.patch
|
|
|
912a257 |
# https://bugs.webkit.org/show_bug.cgi?id=135647
|
|
|
912a257 |
Patch5: webkitgtk-2.4.2-ppc64le.patch
|
|
Michael Catanzaro |
3b35e86 |
# https://bugs.webkit.org/show_bug.cgi?id=136130
|
|
|
912a257 |
Patch6: webkitgtk-2.5.3-toggle-buttons.patch
|
|
Michael Catanzaro |
3b35e86 |
|
|
|
37875f4 |
BuildRequires: at-spi2-core-devel
|
|
|
37875f4 |
BuildRequires: bison
|
|
|
37875f4 |
BuildRequires: cairo-devel
|
|
|
37875f4 |
BuildRequires: cmake
|
|
|
37875f4 |
BuildRequires: enchant-devel
|
|
|
37875f4 |
BuildRequires: flex
|
|
|
37875f4 |
BuildRequires: fontconfig-devel
|
|
|
37875f4 |
BuildRequires: freetype-devel
|
|
|
37875f4 |
BuildRequires: geoclue2-devel
|
|
|
37875f4 |
BuildRequires: gettext
|
|
|
37875f4 |
BuildRequires: glib2-devel
|
|
|
37875f4 |
BuildRequires: gobject-introspection-devel
|
|
|
37875f4 |
BuildRequires: gperf
|
|
|
37875f4 |
BuildRequires: gstreamer1-devel
|
|
|
37875f4 |
BuildRequires: gstreamer1-plugins-base-devel
|
|
|
37875f4 |
BuildRequires: gtk2-devel
|
|
|
37875f4 |
BuildRequires: gtk3-devel
|
|
|
37875f4 |
BuildRequires: harfbuzz-devel
|
|
|
37875f4 |
BuildRequires: libicu-devel
|
|
|
37875f4 |
BuildRequires: libjpeg-devel
|
|
|
37875f4 |
BuildRequires: libpng-devel
|
|
|
37875f4 |
BuildRequires: libsecret-devel
|
|
|
37875f4 |
BuildRequires: libsoup-devel
|
|
|
37875f4 |
BuildRequires: libwebp-devel
|
|
|
37875f4 |
BuildRequires: libxslt-devel
|
|
|
37875f4 |
BuildRequires: libXt-devel
|
|
|
37875f4 |
BuildRequires: mesa-libGL-devel
|
|
|
37875f4 |
BuildRequires: pcre-devel
|
|
|
37875f4 |
BuildRequires: perl-Switch
|
|
|
37875f4 |
BuildRequires: ruby
|
|
|
37875f4 |
BuildRequires: sqlite-devel
|
|
|
912a257 |
%ifarch ppc
|
|
|
912a257 |
BuildRequires: libatomic
|
|
|
912a257 |
%endif
|
|
|
37875f4 |
Requires: geoclue2
|
|
|
37875f4 |
|
|
|
3570d6f |
# Obsolete libwebkit2gtk from the webkitgtk3 package
|
|
|
3570d6f |
Obsoletes: libwebkit2gtk < 2.4.5-3
|
|
|
3570d6f |
Provides: libwebkit2gtk = %{version}-%{release}
|
|
|
3570d6f |
|
|
|
37875f4 |
# Filter out provides for private libraries
|
|
|
37875f4 |
%global __provides_exclude_from ^%{_libdir}/webkit2gtk-4\\.0/.*\\.so$
|
|
|
37875f4 |
|
|
|
37875f4 |
%description
|
|
|
37875f4 |
WebKitGTK+ is the port of the portable web rendering engine WebKit to the
|
|
|
37875f4 |
GTK+ platform.
|
|
|
37875f4 |
|
|
|
37875f4 |
This package contains WebKitGTK+ for GTK+ 3.
|
|
|
37875f4 |
|
|
|
37875f4 |
%package devel
|
|
|
37875f4 |
Summary: Development files for %{name}
|
|
|
37875f4 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
37875f4 |
|
|
|
37875f4 |
%description devel
|
|
|
37875f4 |
The %{name}-devel package contains libraries, build data, and header
|
|
|
37875f4 |
files for developing applications that use %{name}.
|
|
|
37875f4 |
|
|
|
37875f4 |
%prep
|
|
|
37875f4 |
%setup -q -n webkitgtk-%{version}
|
|
|
912a257 |
%patch0 -p1 -b .nspluginwrapper
|
|
|
912a257 |
%patch2 -p1 -b .cloop_fix
|
|
|
912a257 |
%ifarch s390 ppc
|
|
|
912a257 |
%patch3 -p1 -b .cloop_fix_32
|
|
|
912a257 |
%endif
|
|
|
912a257 |
%ifarch aarch64
|
|
|
912a257 |
%patch1 -p1 -b .aarch64
|
|
|
912a257 |
%endif
|
|
|
912a257 |
%ifarch %{power64} aarch64 ppc
|
|
|
912a257 |
%patch4 -p1 -b .commit_align
|
|
|
912a257 |
%endif
|
|
|
912a257 |
%ifarch %{power64}
|
|
|
912a257 |
%patch5 -p1 -b .ppc64le
|
|
|
912a257 |
%endif
|
|
|
912a257 |
%patch6 -p1 -b .toggle-buttons
|
|
|
37875f4 |
|
|
|
37875f4 |
# Remove bundled libraries
|
|
|
37875f4 |
rm -rf Source/ThirdParty/leveldb/
|
|
|
37875f4 |
rm -rf Source/ThirdParty/gtest/
|
|
|
37875f4 |
rm -rf Source/ThirdParty/qunit/
|
|
|
37875f4 |
|
|
|
37875f4 |
%build
|
|
|
37875f4 |
# Use linker flags to reduce memory consumption
|
|
|
37875f4 |
%global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
|
|
|
37875f4 |
|
|
|
37875f4 |
%ifarch s390 %{arm}
|
|
|
37875f4 |
# Decrease debuginfo verbosity to reduce memory consumption even more
|
|
|
37875f4 |
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
|
|
37875f4 |
%endif
|
|
|
37875f4 |
|
|
|
912a257 |
%ifarch ppc
|
|
|
912a257 |
# Use linker flag -relax to get WebKit build under ppc(32) with JIT disabled
|
|
|
912a257 |
%global optflags %{optflags} -Wl,-relax -latomic
|
|
|
912a257 |
%endif
|
|
|
912a257 |
|
|
|
912a257 |
%ifarch s390 s390x ppc %{power64} aarch64
|
|
|
912a257 |
%global optflags %{optflags} -DENABLE_YARR_JIT=0
|
|
|
912a257 |
%endif
|
|
|
912a257 |
|
|
|
37875f4 |
mkdir -p %{_target_platform}
|
|
|
37875f4 |
pushd %{_target_platform}
|
|
|
37875f4 |
%cmake \
|
|
|
37875f4 |
-DPORT=GTK \
|
|
|
37875f4 |
-DCMAKE_BUILD_TYPE=Release \
|
|
|
912a257 |
%ifarch s390 s390x ppc %{power64} aarch64
|
|
|
912a257 |
-DENABLE_JIT=OFF \
|
|
|
912a257 |
-DENABLE_LLINT_C_LOOP=ON \
|
|
|
912a257 |
%endif
|
|
|
37875f4 |
..
|
|
|
37875f4 |
popd
|
|
|
37875f4 |
|
|
|
37875f4 |
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
37875f4 |
|
|
|
37875f4 |
%install
|
|
|
37875f4 |
%make_install -C %{_target_platform}
|
|
|
37875f4 |
|
|
|
37875f4 |
%find_lang WebKit2GTK-4.0
|
|
|
37875f4 |
|
|
|
37875f4 |
# Finally, copy over and rename various files for %%license inclusion
|
|
|
37875f4 |
%add_to_license_files Source/JavaScriptCore/COPYING.LIB
|
|
|
37875f4 |
%add_to_license_files Source/JavaScriptCore/icu/LICENSE
|
|
|
37875f4 |
%add_to_license_files Source/ThirdParty/ANGLE/LICENSE
|
|
|
37875f4 |
%add_to_license_files Source/ThirdParty/ANGLE/src/third_party/compiler/LICENSE
|
|
|
37875f4 |
%add_to_license_files Source/ThirdParty/ANGLE/src/third_party/murmurhash/LICENSE
|
|
|
37875f4 |
%add_to_license_files Source/WebCore/icu/LICENSE
|
|
|
37875f4 |
%add_to_license_files Source/WebCore/LICENSE-APPLE
|
|
|
37875f4 |
%add_to_license_files Source/WebCore/LICENSE-LGPL-2
|
|
|
37875f4 |
%add_to_license_files Source/WebCore/LICENSE-LGPL-2.1
|
|
|
37875f4 |
%add_to_license_files Source/WebInspectorUI/APPLE_IMAGES_LICENSE.rtf
|
|
|
37875f4 |
%add_to_license_files Source/WebInspectorUI/UserInterface/External/CodeMirror/LICENSE
|
|
|
37875f4 |
%add_to_license_files Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE
|
|
|
37875f4 |
%add_to_license_files Source/WTF/icu/LICENSE
|
|
|
37875f4 |
%add_to_license_files Source/WTF/wtf/dtoa/COPYING
|
|
|
37875f4 |
%add_to_license_files Source/WTF/wtf/dtoa/LICENSE
|
|
|
37875f4 |
|
|
|
37875f4 |
%post -p /sbin/ldconfig
|
|
|
37875f4 |
%postun -p /sbin/ldconfig
|
|
|
37875f4 |
|
|
|
37875f4 |
%files -f WebKit2GTK-4.0.lang
|
|
|
37875f4 |
%license _license_files/*
|
|
|
37875f4 |
%{_libdir}/libjavascriptcoregtk-4.0.so.*
|
|
|
37875f4 |
%{_libdir}/libwebkit2gtk-4.0.so.*
|
|
|
37875f4 |
%{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib
|
|
|
37875f4 |
%{_libdir}/girepository-1.0/WebKit2-4.0.typelib
|
|
|
37875f4 |
%{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib
|
|
|
37875f4 |
%{_libdir}/webkit2gtk-4.0/
|
|
|
37875f4 |
%{_libexecdir}/webkitgtk-4.0/
|
|
|
37875f4 |
|
|
|
37875f4 |
%files devel
|
|
|
37875f4 |
%{_bindir}/jsc
|
|
|
37875f4 |
%{_includedir}/webkitgtk-4.0/
|
|
|
37875f4 |
%{_libdir}/libjavascriptcoregtk-4.0.so
|
|
|
37875f4 |
%{_libdir}/libwebkit2gtk-4.0.so
|
|
|
37875f4 |
%{_libdir}/pkgconfig/javascriptcoregtk-4.0.pc
|
|
|
37875f4 |
%{_libdir}/pkgconfig/webkit2gtk-4.0.pc
|
|
|
37875f4 |
%{_libdir}/pkgconfig/webkit2gtk-web-extension-4.0.pc
|
|
|
37875f4 |
%{_datadir}/gir-1.0/JavaScriptCore-4.0.gir
|
|
|
37875f4 |
%{_datadir}/gir-1.0/WebKit2-4.0.gir
|
|
|
37875f4 |
%{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir
|
|
|
37875f4 |
|
|
|
37875f4 |
%changelog
|
|
|
3570d6f |
* Tue Aug 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-7
|
|
|
3570d6f |
- Obsolete libwebkit2gtk from the webkitgtk3 package
|
|
|
3570d6f |
|
|
|
49489a6 |
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 2.5.3-6
|
|
|
49489a6 |
- rebuild for ICU 53.1
|
|
|
49489a6 |
|
|
|
912a257 |
* Mon Aug 25 2014 Tomas Popela <tpopela@redhat.com> - 2.5.3-5
|
|
|
912a257 |
- Add support for secondary arches
|
|
|
912a257 |
|
|
Michael Catanzaro |
3b35e86 |
* Fri Aug 22 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.5.3-4
|
|
Michael Catanzaro |
3b35e86 |
- Add webkitgtk-2.5.3-toggle-buttons.patch
|
|
Michael Catanzaro |
3b35e86 |
|
|
|
37875f4 |
* Thu Aug 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-3
|
|
|
37875f4 |
- More package review fixes (#1131284)
|
|
|
37875f4 |
- Correct the license tag to read LGPLv2
|
|
|
37875f4 |
- Filter out provides for private libraries
|
|
|
37875f4 |
|
|
|
37875f4 |
* Tue Aug 19 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-2
|
|
|
37875f4 |
- Remove bundled leveldb, gtest, qunit in %%prep (#1131284)
|
|
|
37875f4 |
|
|
|
37875f4 |
* Fri Aug 15 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-1
|
|
|
37875f4 |
- Update to 2.5.3
|
|
|
37875f4 |
|
|
|
37875f4 |
* Fri Aug 01 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.1-1
|
|
|
37875f4 |
- Initial Fedora packaging, based on the webkitgtk3 package
|