Blame webkitgtk4.spec

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