|
|
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
|
|
|
5486b8f |
Version: 2.7.2
|
|
|
5486b8f |
Release: 1%{?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
|
|
|
79bec1c |
Patch2: webkitgtk-2.5.90-cloop_fix.patch
|
|
|
16c78cf |
Patch3: webkitgtk-2.5.2-commit_align.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
|
|
|
1356fc5 |
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
|
|
|
912a257 |
%ifarch ppc
|
|
|
912a257 |
BuildRequires: libatomic
|
|
|
912a257 |
%endif
|
|
|
37875f4 |
Requires: geoclue2
|
|
|
37875f4 |
|
|
|
3570d6f |
# Obsolete libwebkit2gtk from the webkitgtk3 package
|
|
Michael Catanzaro |
01ee7f4 |
Obsoletes: libwebkit2gtk < 2.5.0
|
|
|
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 |
|
|
|
1356fc5 |
%package doc
|
|
|
1356fc5 |
Summary: Documentation files for %{name}
|
|
|
1356fc5 |
BuildArch: noarch
|
|
|
1356fc5 |
Requires: %{name} = %{version}-%{release}
|
|
|
1356fc5 |
|
|
|
1356fc5 |
%description doc
|
|
|
1356fc5 |
This package contains developer documentation for %{name}.
|
|
|
1356fc5 |
|
|
|
37875f4 |
%prep
|
|
|
37875f4 |
%setup -q -n webkitgtk-%{version}
|
|
|
912a257 |
%patch0 -p1 -b .nspluginwrapper
|
|
|
79bec1c |
%patch2 -p1 -b .cloop_fix
|
|
|
912a257 |
%ifarch %{power64} aarch64 ppc
|
|
|
16c78cf |
%patch3 -p1 -b .commit_align
|
|
|
912a257 |
%endif
|
|
|
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 |
|
|
|
a992b0b |
%ifarch s390 s390x ppc %{power64} aarch64
|
|
|
912a257 |
%global optflags %{optflags} -DENABLE_YARR_JIT=0
|
|
|
a992b0b |
%endif
|
|
|
912a257 |
|
|
|
83c4c8c |
# Disable ld.gold for now as s390 does not have it.
|
|
|
83c4c8c |
# Also aarch64 have it in upstream, but not packaged in Fedora.
|
|
|
37875f4 |
mkdir -p %{_target_platform}
|
|
|
37875f4 |
pushd %{_target_platform}
|
|
|
37875f4 |
%cmake \
|
|
|
37875f4 |
-DPORT=GTK \
|
|
|
37875f4 |
-DCMAKE_BUILD_TYPE=Release \
|
|
|
1356fc5 |
-DENABLE_GTKDOC=ON \
|
|
|
83c4c8c |
-DUSE_LD_GOLD=OFF \
|
|
|
a992b0b |
%ifarch s390 s390x ppc %{power64} aarch64
|
|
|
912a257 |
-DENABLE_JIT=OFF \
|
|
|
912a257 |
-DENABLE_LLINT_C_LOOP=ON \
|
|
|
a992b0b |
%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/
|
|
|
16c78cf |
%{_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 |
|
|
|
1356fc5 |
%files doc
|
|
|
1356fc5 |
%dir %{_datadir}/gtk-doc
|
|
|
1356fc5 |
%dir %{_datadir}/gtk-doc/html
|
|
|
1356fc5 |
%{_datadir}/gtk-doc/html/webkit2gtk-4.0/
|
|
|
1356fc5 |
%{_datadir}/gtk-doc/html/webkitdomgtk-4.0/
|
|
|
1356fc5 |
|
|
|
37875f4 |
%changelog
|
|
|
5486b8f |
* Mon Nov 24 2014 Tomas Popela <tpopela@redhat.com> - 2.7.2-1
|
|
|
5486b8f |
- Update to 2.7.2
|
|
|
83c4c8c |
- Don't use ld.gold
|
|
|
5486b8f |
|
|
|
a992b0b |
* Wed Nov 12 2014 Tomas Popela <tpopela@redhat.com> - 2.7.1-5
|
|
|
a992b0b |
- Enable JIT where possible (accidentally turned off when updating to 2.5.90)
|
|
|
a992b0b |
|
|
|
1356fc5 |
* Fri Nov 07 2014 Kalev Lember <kalevlember@gmail.com> - 2.7.1-4
|
|
|
1356fc5 |
- Build developer documentation
|
|
|
1356fc5 |
|
|
Michael Catanzaro |
01ee7f4 |
* Fri Oct 31 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.7.1-3
|
|
Michael Catanzaro |
01ee7f4 |
- Obsolete libwebkit2gtk < 2.5.0 to be future-proof
|
|
Michael Catanzaro |
01ee7f4 |
|
|
|
6022978 |
* Fri Oct 31 2014 Kalev Lember <kalevlember@gmail.com> - 2.7.1-2
|
|
|
6022978 |
- Bump libwebkit2gtk obsoletes version
|
|
|
6022978 |
|
|
|
944cc48 |
* Wed Oct 29 2014 Tomas Popela <tpopela@redhat.com> - 2.7.1-1
|
|
|
944cc48 |
- Update to 2.7.1
|
|
|
944cc48 |
|
|
|
a9d1cda |
* Wed Oct 22 2014 Tomas Popela <tpopela@redhat.com> - 2.6.2-1
|
|
|
a9d1cda |
- Update to 2.6.2
|
|
|
a9d1cda |
|
|
|
b01709f |
* Tue Oct 21 2014 Tomas Popela <tpopela@redhat.com> - 2.6.1-2
|
|
|
b01709f |
- Disable the SSLv3 to address the POODLE vulnerability
|
|
|
b01709f |
|
|
|
36b6980 |
* Tue Oct 14 2014 Tomas Popela <tpopela@redhat.com> - 2.6.1-1
|
|
|
36b6980 |
- Update to 2.6.1
|
|
|
36b6980 |
|
|
|
79bec1c |
* Thu Sep 25 2014 Tomas Popela <tpopela@redhat.com> - 2.6.0-1
|
|
|
79bec1c |
- Add the wrongly removed CLoop patch and remove the one that was upstreamed
|
|
|
79bec1c |
|
|
|
c8b3845 |
* Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.0-1
|
|
|
c8b3845 |
- Update to 2.6.0
|
|
|
c8b3845 |
|
|
|
16c78cf |
* Mon Sep 22 2014 Tomas Popela <tpopela@redhat.com> - 2.5.90-1
|
|
|
16c78cf |
- Update to 2.5.90
|
|
|
16c78cf |
|
|
|
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
|