|
Richard Hughes |
af857da |
# Fix rebuild on non-Fedora
|
|
Richard Hughes |
af857da |
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|
Richard Hughes |
af857da |
|
|
|
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
|
|
|
d73294c |
Version: 2.6.5
|
|
Michael Catanzaro |
8d1193c |
Release: 2%{?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 |
|
|
|
40af07a |
Patch0: webkit-1.1.14-nspluginwrapper.patch
|
|
Michael Catanzaro |
283c62b |
Patch1: webkitgtk-2.6.4-disable-codec-installer.patch
|
|
|
483d269 |
Patch2: webkitgtk-2.5.90-cloop_fix.patch
|
|
|
c706328 |
Patch3: webkitgtk-2.5.2-commit_align.patch
|
|
Michael Catanzaro |
8d1193c |
# https://bugs.webkit.org/show_bug.cgi?id=142309
|
|
Michael Catanzaro |
8d1193c |
Patch4: webkitgtk-2.6.5-ax-child-changed.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
|
|
|
ebbccd3 |
BuildRequires: gtk-doc
|
|
|
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
|
|
|
d73294c |
|
|
|
37875f4 |
Requires: geoclue2
|
|
|
37875f4 |
|
|
|
878d8ca |
# Obsolete libwebkit2gtk from the webkitgtk3 package
|
|
Michael Catanzaro |
a5aeccc |
Obsoletes: libwebkit2gtk < 2.5.0
|
|
|
878d8ca |
Provides: libwebkit2gtk = %{version}-%{release}
|
|
|
878d8ca |
|
|
|
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 |
|
|
|
ebbccd3 |
%package doc
|
|
|
ebbccd3 |
Summary: Documentation files for %{name}
|
|
|
ebbccd3 |
BuildArch: noarch
|
|
|
ebbccd3 |
Requires: %{name} = %{version}-%{release}
|
|
|
ebbccd3 |
|
|
|
ebbccd3 |
%description doc
|
|
|
ebbccd3 |
This package contains developer documentation for %{name}.
|
|
|
ebbccd3 |
|
|
|
37875f4 |
%prep
|
|
|
37875f4 |
%setup -q -n webkitgtk-%{version}
|
|
|
40af07a |
%patch0 -p1 -b .nspluginwrapper
|
|
Michael Catanzaro |
283c62b |
%patch1 -p1 -b .disable_codec_installer
|
|
|
483d269 |
%patch2 -p1 -b .cloop_fix
|
|
|
40af07a |
%ifarch %{power64} aarch64 ppc
|
|
|
c706328 |
%patch3 -p1 -b .commit_align
|
|
|
40af07a |
%endif
|
|
Michael Catanzaro |
8d1193c |
%patch4 -p1 -b .ax_child_changed
|
|
|
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 |
|
|
|
40af07a |
%ifarch ppc
|
|
|
40af07a |
# Use linker flag -relax to get WebKit build under ppc(32) with JIT disabled
|
|
|
40af07a |
%global optflags %{optflags} -Wl,-relax -latomic
|
|
|
40af07a |
%endif
|
|
|
40af07a |
|
|
|
e27e9d1 |
%ifarch s390 s390x ppc %{power64} aarch64
|
|
|
40af07a |
%global optflags %{optflags} -DENABLE_YARR_JIT=0
|
|
|
e27e9d1 |
%endif
|
|
|
40af07a |
|
|
|
37875f4 |
mkdir -p %{_target_platform}
|
|
|
37875f4 |
pushd %{_target_platform}
|
|
|
37875f4 |
%cmake \
|
|
|
37875f4 |
-DPORT=GTK \
|
|
|
37875f4 |
-DCMAKE_BUILD_TYPE=Release \
|
|
|
ebbccd3 |
-DENABLE_GTKDOC=ON \
|
|
|
e27e9d1 |
%ifarch s390 s390x ppc %{power64} aarch64
|
|
|
40af07a |
-DENABLE_JIT=OFF \
|
|
|
40af07a |
-DENABLE_LLINT_C_LOOP=ON \
|
|
|
e27e9d1 |
%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/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/
|
|
|
c706328 |
%{_libexecdir}/webkit2gtk-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 |
|
|
|
ebbccd3 |
%files doc
|
|
|
ebbccd3 |
%dir %{_datadir}/gtk-doc
|
|
|
ebbccd3 |
%dir %{_datadir}/gtk-doc/html
|
|
|
ebbccd3 |
%{_datadir}/gtk-doc/html/webkit2gtk-4.0/
|
|
|
ebbccd3 |
%{_datadir}/gtk-doc/html/webkitdomgtk-4.0/
|
|
|
ebbccd3 |
|
|
|
37875f4 |
%changelog
|
|
Michael Catanzaro |
8d1193c |
* Mon Mar 16 2015 Michael Catanzaro <mcatanzaro@gnome.org> - 2.6.5-2
|
|
Michael Catanzaro |
8d1193c |
- Add patch for rbz#1156330
|
|
Michael Catanzaro |
8d1193c |
|
|
|
d73294c |
* Thu Jan 15 2015 Tomas Popela <tpopela@redhat.com> - 2.6.5-1
|
|
|
d73294c |
- Update to 2.6.5
|
|
|
d73294c |
|
|
Michael Catanzaro |
283c62b |
* Thu Dec 11 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.6.4-2
|
|
Michael Catanzaro |
283c62b |
- Disable the PackageKit codec installer
|
|
Michael Catanzaro |
283c62b |
|
|
|
25a2f36 |
* Fri Nov 21 2014 Tomas Popela <tpopela@redhat.com> - 2.6.4-1
|
|
|
25a2f36 |
- Update to 2.6.4
|
|
|
25a2f36 |
|
|
|
e27e9d1 |
* Wed Nov 12 2014 Tomas Popela <tpopela@redhat.com> - 2.6.3-1
|
|
|
e27e9d1 |
- Update to 2.6.3
|
|
|
e27e9d1 |
- Enable JIT where possible (accidentally turned off when updating to 2.5.90)
|
|
|
e27e9d1 |
|
|
|
ebbccd3 |
* Fri Nov 07 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.2-5
|
|
|
ebbccd3 |
- Build developer documentation
|
|
|
ebbccd3 |
|
|
Richard Hughes |
af857da |
* Tue Nov 04 2014 Richard Hughes <richard@hughsie.com> - 2.6.2-4
|
|
Richard Hughes |
af857da |
- Fix non-Fedora build
|
|
Richard Hughes |
af857da |
|
|
Michael Catanzaro |
a5aeccc |
* Fri Oct 31 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.6.2-3
|
|
Michael Catanzaro |
a5aeccc |
- Obsolete libwebkit2gtk < 2.5.0 to be future-proof
|
|
Michael Catanzaro |
a5aeccc |
|
|
|
ce49a84 |
* Fri Oct 31 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.2-2
|
|
|
ce49a84 |
- Bump libwebkit2gtk obsoletes version
|
|
|
ce49a84 |
|
|
|
37d7fef |
* Wed Oct 22 2014 Tomas Popela <tpopela@redhat.com> - 2.6.2-1
|
|
|
37d7fef |
- Update to 2.6.2
|
|
|
37d7fef |
|
|
|
fd05532 |
* Tue Oct 21 2014 Tomas Popela <tpopela@redhat.com> - 2.6.1-2
|
|
|
fd05532 |
- Disable the SSLv3 to address the POODLE vulnerability
|
|
|
fd05532 |
|
|
|
3a0f764 |
* Tue Oct 14 2014 Tomas Popela <tpopela@redhat.com> - 2.6.1-1
|
|
|
3a0f764 |
- Update to 2.6.1
|
|
|
3a0f764 |
|
|
|
483d269 |
* Thu Sep 25 2014 Tomas Popela <tpopela@redhat.com> - 2.6.0-1
|
|
|
483d269 |
- Add the wrongly removed CLoop patch and remove the one that was upstreamed
|
|
|
483d269 |
|
|
|
a7cbac6 |
* Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.0-1
|
|
|
a7cbac6 |
- Update to 2.6.0
|
|
|
a7cbac6 |
|
|
|
c706328 |
* Mon Sep 22 2014 Tomas Popela <tpopela@redhat.com> - 2.5.90-1
|
|
|
c706328 |
- Update to 2.5.90
|
|
|
c706328 |
|
|
|
878d8ca |
* Tue Aug 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-6
|
|
|
878d8ca |
- Obsolete libwebkit2gtk from the webkitgtk3 package
|
|
|
878d8ca |
|
|
|
40af07a |
* Mon Aug 25 2014 Tomas Popela <tpopela@redhat.com> - 2.5.3-5
|
|
|
40af07a |
- Add support for secondary arches
|
|
|
40af07a |
|
|
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
|