Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 0c3765ff524d6e18feace3fc590557e6 > files > 2

webkit2-2.18.5-1.mga6.src.rpm

# Seems not to build with -j24, we choose -j6
%global make %(cpus=%_smp_mflags;if [ "${cpus##-j}" -gt 6 ];then echo make -j6;else echo make $cpus;fi)

%define oname webkitgtk

%define api 4.0

%define javascriptcoregtk_major 18
%define libjavascriptcoregtk %mklibname javascriptcoregtk %{api} %{javascriptcoregtk_major}
%define javascriptcoregtk_gir %mklibname javascriptcore-gir %{api}

%define webkit2_major 37
%define libwebkit2 %mklibname webkit2gtk %{api} %{webkit2_major}
%define webkit2_gir %mklibname webkit2gtk-gir %{api}

%define develname %mklibname -d webkit2

Name:		webkit2
Version:	2.18.5
Release:	%mkrel 1
Summary:	GTK+ Web content engine library
License:	BSD and LGPLv2+
Group:		System/Libraries
Source0:	http://webkitgtk.org/releases/%{oname}-%{version}.tar.xz
Patch0:		webkitgtk-typelib-sharelib-link.patch
#From Debian:
Patch1:		fix-ftbfs-armel.patch
URL:		http://www.webkitgtk.org
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0) >= 1.0.3
BuildRequires:	pkgconfig(gstreamer-app-1.0) >= 1.0.3
BuildRequires:	pkgconfig(gstreamer-audio-1.0) >= 1.0.3
BuildRequires:	pkgconfig(gstreamer-base-1.0) >= 1.0.3
BuildRequires:	pkgconfig(gstreamer-fft-1.0) >= 1.0.3
BuildRequires:	pkgconfig(gstreamer-gl-1.0) >= 1.5.0
BuildRequires:	pkgconfig(gstreamer-mpegts-1.0) >= 1.4.0
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0) >= 1.0.3
BuildRequires:	pkgconfig(gstreamer-tag-1.0) >= 1.0.3
BuildRequires:	pkgconfig(gstreamer-video-1.0) >= 1.0.3
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk+-unix-print-3.0)
BuildRequires:	pkgconfig(gtk+-wayland-3.0)
BuildRequires:	pkgconfig(gtk+-x11-3.0)
BuildRequires:	pkgconfig(harfbuzz) >= 0.9.7
BuildRequires:	pkgconfig(harfbuzz-icu) >= 0.9.18
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	bison >= 2.3
BuildRequires:	gperf >= 3.0.1
BuildRequires:	python-devel >= 2.7.0
BuildRequires:	ruby >= 1.8.7
BuildRequires:	cairo-devel >= 1.10.2
BuildRequires:	libnotify-devel
BuildRequires:	libjpeg-devel
BuildRequires:	libsoup-devel >= 2.42.0
BuildRequires:	libxml2-devel >= 2.8.0
BuildRequires:	libxslt-devel >= 1.1.7
BuildRequires:	zlib-devel
BuildRequires:	libpng-devel
BuildRequires:	hyphen-devel
BuildRequires:	libx11-devel
BuildRequires:	libxcomposite-devel
BuildRequires:	libxdamage-devel
BuildRequires:	libxrender-devel
BuildRequires:	libxt-devel
BuildRequires:	cmake
Requires:	%{libwebkit2} = %{version}

%description
WebKitGTK+ is the port of the portable web rendering engine WebKit to the
GTK+ platform.

%package	jsc
Summary:	JavaScriptCore shell for WebKit GTK+
Group:		Development/GNOME and GTK+

%description	jsc
jsc is a shell for JavaScriptCore, WebKit's JavaScript engine. It
allows you to interact with the JavaScript engine directly.

%package -n	%{libwebkit2}
Summary:	GTK+ port of WebKit web browser engine
Group:		System/Libraries
Requires:	%{name} >= %{version}

%description -n	%{libwebkit2}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+ UI toolkit on platforms like
Linux.

%package -n	%{libjavascriptcoregtk}
Summary:        GTK+ port of WebKit web browser engine
Group:          System/Libraries

%description -n	%{libjavascriptcoregtk}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+ UI toolkit on platforms like
Linux.

%package -n	%{develname}
Summary:	Development files for WebKit GTK+ port
Group:		Development/GNOME and GTK+
Provides:	%{name}-devel = %{version}-%{release}
Provides:	libwebkit2gtk-devel = %{version}-%{release}
Requires:	%{libjavascriptcoregtk} = %{version}
Requires:	%{libwebkit2} = %{version}
Requires:	%{javascriptcoregtk_gir} = %{version}
Requires:	%{webkit2_gir} = %{version}
Requires:	%{name}-jsc = %{version}

%description -n	%{develname}
The %{name}-devel package contains libraries, build data, and header
files for developing applications that use %{name}.

%package -n	%{javascriptcoregtk_gir}
Summary:        GObject Introspection interface description for JSCore
Group:          System/Libraries
Requires:       %{libjavascriptcoregtk} = %{version}-%{release}

%description -n	%{javascriptcoregtk_gir}
GObject Introspection interface description for JSCore.

%package -n	%{webkit2_gir}
Summary:        GObject Introspection interface description for %{name}
Group:          System/Libraries
Requires:       %{libwebkit2} = %{version}-%{release}

%description -n	%{webkit2_gir}
GObject Introspection interface description for WebKit.

%prep
%setup -qn %{oname}-%{version}
%autopatch -p1

%build
# Decrease debuginfo verbosity to reduce memory consumption even more
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
# remove -O2 -g from RELWITHDEBINFO flags, since this is already in our C[XX]FLAGS
# and would prevent overriding them
# only keep -DNDEBUG

# We actually want RelWithDebInfo, not Release, but it is currently broken
# c.f. https://bugs.mageia.org/show_bug.cgi?id=19470 and
# https://bugs.webkit.org/show_bug.cgi?id=163897 
%cmake \
    -DPORT=GTK \
%ifarch armv5tl
    -DENABLE_JIT=OFF \
%endif
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_C_FLAGS_RELWITHDEBINFO="-DNDEBUG" \
    -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-DNDEBUG"
%make_build

%install
%make_install -C build

%find_lang WebKit2GTK-%{api}

%files -f WebKit2GTK-%{api}.lang
%dir %{_libexecdir}/webkit2gtk-%{api}
%{_libexecdir}/webkit2gtk-%{api}/WebKit*
%dir %{_libdir}/webkit2gtk-%{api}
%{_libdir}/webkit2gtk-%{api}/injected-bundle/libwebkit2gtkinjectedbundle.so
%{_bindir}/WebKitWebDriver

%files jsc
%{_libexecdir}/webkit2gtk-%{api}/jsc

%files -n %{libjavascriptcoregtk}
%{_libdir}/libjavascriptcoregtk-%{api}.so.%{javascriptcoregtk_major}
%{_libdir}/libjavascriptcoregtk-%{api}.so.%{javascriptcoregtk_major}.*

%files -n %{libwebkit2}
%{_libdir}/libwebkit2gtk-%{api}.so.%{webkit2_major}
%{_libdir}/libwebkit2gtk-%{api}.so.%{webkit2_major}.*

%files -n %{develname}
%{_includedir}/webkitgtk-%{api}
%{_libdir}/*-%{api}.so
%{_libdir}/pkgconfig/*-%{api}.pc
%{_datadir}/gir-1.0/*-%{api}.gir

%files -n %{javascriptcoregtk_gir}
%{_libdir}/girepository-1.0/JavaScriptCore-%{api}.typelib

%files -n %{webkit2_gir}
%{_libdir}/girepository-1.0/WebKit2-%{api}.typelib
%{_libdir}/girepository-1.0/WebKit2WebExtension-%{api}.typelib


%changelog
* Wed Jan 10 2018 luigiwalser <luigiwalser> 2.18.5-1.mga6
+ Revision: 1192108
- 2.18.5
- 2.18.3
- 2.16.6

  + ns80 <ns80>
    - new version 2.18.4 (mga#22245)
    - new version 2.18.2 (mga#21894)
    - rediff patch fix-ftbfs-armel

* Fri Jul 07 2017 luigiwalser <luigiwalser> 2.16.5-1.mga6
+ Revision: 1109431
- 2.16.5

* Fri Jun 23 2017 luigiwalser <luigiwalser> 2.16.4-1.mga6
+ Revision: 1108261
- 2.16.4

* Fri May 26 2017 luigiwalser <luigiwalser> 2.16.3-1.mga6
+ Revision: 1104888
- 2.16.3

* Sat May 13 2017 ovitters <ovitters> 2.16.2-1.mga6
+ Revision: 1100791
- new version 2.16.2

* Tue May 02 2017 akien <akien> 2.16.1-4.mga6
+ Revision: 1098648
- Fix conflicts with jsc packaged in both webkit2 and webkit2-jsc

* Sat Apr 22 2017 wally <wally> 2.16.1-3.mga6
+ Revision: 1097052
- add patch from Debian to fix ARM build

* Fri Apr 21 2017 wally <wally> 2.16.1-2.mga6
+ Revision: 1097006
- rebuild for ARM

* Fri Apr 07 2017 ns80 <ns80> 2.16.1-1.mga6
+ Revision: 1096078
- new version 2.16.1 that fix several crashes and rendering issues

* Wed Mar 29 2017 luigiwalser <luigiwalser> 2.16.0-1.mga6
+ Revision: 1095162
- 2.16.0

* Thu Mar 16 2017 mrambo3501 <mrambo3501> 2.14.5-2.mga6
+ Revision: 1093114
- Rebuild for icu-58.2

* Wed Feb 15 2017 ns80 <ns80> 2.14.5-1.mga6
+ Revision: 1086260
- 2.14.5

* Sun Feb 12 2017 luigiwalser <luigiwalser> 2.14.4-1.mga6
+ Revision: 1085867
- 2.14.4

* Tue Jan 31 2017 pterjan <pterjan> 2.14.3-2.mga6
+ Revision: 1084442
- Switch to Release build until RelWithDebInfo gets fixed (mga#19470)

* Wed Jan 18 2017 luigiwalser <luigiwalser> 2.14.3-1.mga6
+ Revision: 1082396
- 2.14.3

* Fri Nov 04 2016 luigiwalser <luigiwalser> 2.14.2-1.mga6
+ Revision: 1065373
- 2.14.2

* Wed Oct 26 2016 tv <tv> 2.14.1-3.mga6
+ Revision: 1063610
- fix description: this is WebKitGTK+, not WebKit
- use %%make_build
- no need to set CFLAGS after previous change
- myflags really is optflags
- more accurate summary

* Sat Oct 22 2016 tv <tv> 2.14.1-2.mga6
+ Revision: 1063186
- jsc is now installed into libexec instead of bin

  + luigiwalser <luigiwalser>
    - 2.14.1

* Mon Sep 26 2016 tv <tv> 2.14.0-2.mga6
+ Revision: 1056768
- rebuild with fixed rpm-mageia-setup for missing generating typelib() requires (mga#19454)

* Sat Sep 24 2016 ovitters <ovitters> 2.14.0-1.mga6
+ Revision: 1055819
- new version 2.14.0

* Wed Sep 14 2016 luigiwalser <luigiwalser> 2.12.5-1.mga6
+ Revision: 1052920
- 2.12.5

* Thu Aug 25 2016 luigiwalser <luigiwalser> 2.12.4-1.mga6
+ Revision: 1048870
- rebuild for release

* Thu Aug 25 2016 wally <wally> 2.12.4-0.1.mga6
+ Revision: 1048742
- new version 2.12.4

* Sat Jun 11 2016 tv <tv> 2.12.3-3.mga6
+ Revision: 1021182
- actually llvm is not more used since webkit switched to B3

* Sat Jun 11 2016 tv <tv> 2.12.3-2.mga6
+ Revision: 1021141
- do not pull llvm

* Mon May 30 2016 luigiwalser <luigiwalser> 2.12.3-1.mga6
+ Revision: 1019446
- 2.12.3

* Fri May 13 2016 shlomif <shlomif> 2.12.2-2.mga6
+ Revision: 1014914
- Rebuild for new ICU

* Tue May 10 2016 luigiwalser <luigiwalser> 2.12.2-1.mga6
+ Revision: 1011822
- 2.12.2

* Mon Apr 25 2016 luigiwalser <luigiwalser> 2.12.1-1.mga6
+ Revision: 1006207
- 2.12.1

* Tue Mar 22 2016 tv <tv> 2.12.0-1.mga6
+ Revision: 994149
- new release

* Thu Mar 17 2016 luigiwalser <luigiwalser> 2.11.92-1.mga6
+ Revision: 992595
- 2.11.92

* Fri Mar 11 2016 luigiwalser <luigiwalser> 2.11.91-1.mga6
+ Revision: 989265
- 2.11.91

* Thu Mar 10 2016 blino <blino> 2.11.5-3.mga6
+ Revision: 988880
- rebuild for armv5tl (also missed in first Mga6 mass rebuild)

* Tue Feb 09 2016 luigiwalser <luigiwalser> 2.11.5-2.mga6
+ Revision: 952978
- 2.11.5

* Mon Jan 25 2016 luigiwalser <luigiwalser> 2.11.4-1.mga6
+ Revision: 927488
- 2.11.4

  + wally <wally>
    - loosen requires to not defeat the purpose of libification

* Sat Jan 02 2016 luigiwalser <luigiwalser> 2.11.2-4.mga6
+ Revision: 918369
- rebuild for icu

  + tv <tv>
    - BR llvm on x86_64
    - new release

* Sat Nov 21 2015 blino <blino> 2.10.4-2.mga6
+ Revision: 904683
- disable JIT on armv5tl since there is no VFP

* Tue Nov 17 2015 luigiwalser <luigiwalser> 2.10.4-1.mga6
+ Revision: 903841
- 2.10.4

* Tue Nov 03 2015 blino <blino> 2.10.3-3.mga6
+ Revision: 897538
- remove -O2 -g from cmake RELWITHDEBINFO flags, since we want -g1 to be applied
- 2.10.2 (fixes build with cmake 3.4)

  + tv <tv>
    - new release

* Mon Sep 28 2015 fwang <fwang> 2.10.0-3.mga6
+ Revision: 884337
- rebuild for new gst

* Wed Sep 23 2015 fwang <fwang> 2.10.0-2.mga6
+ Revision: 882421
- add more br
- add more br
- add wayland br
- disable gstreamer-gl for now, as we currently only have 1.4.5
- cleanup br

* Wed Sep 23 2015 fwang <fwang> 2.10.0-1.mga6
+ Revision: 882384
- br hyphen
- br geoclue
- requires libnotify
- 2.10.0

* Tue Aug 18 2015 luigiwalser <luigiwalser> 2.8.5-1.mga6
+ Revision: 865707
- 2.8.5

* Fri Jul 24 2015 cjw <cjw> 2.8.4-2.mga6
+ Revision: 856760
- rebuild for icu 55

* Mon Jul 20 2015 luigiwalser <luigiwalser> 2.8.4-1.mga6
+ Revision: 855788
- 2.8.4

* Mon Jun 22 2015 ovitters <ovitters> 2.8.3-1.mga6
+ Revision: 839807
- new version 2.8.3

* Fri Apr 17 2015 luigiwalser <luigiwalser> 2.6.6-1.mga5
+ Revision: 820355
- remove CVE-2015-2330 patch (fixed upstream)
- 2.6.6

* Wed Mar 18 2015 luigiwalser <luigiwalser> 2.6.5-2.mga5
+ Revision: 818873
- add upstream patch to fix CVE-2015-2330

* Fri Feb 13 2015 luigiwalser <luigiwalser> 2.6.5-1.mga5
+ Revision: 814862
- 2.6.5

* Fri Dec 19 2014 luigiwalser <luigiwalser> 2.6.4-1.mga5
+ Revision: 804320
- 2.6.4

  + fwang <fwang>
    - use JAVASCRIPTCORE_VERSION_MAJOR macro rather than hardcode soversion

* Fri Oct 24 2014 fwang <fwang> 2.6.2-2.mga5
+ Revision: 792910
- force -j6 for more than 6 cpus
- bump rel
- 2.6.2

* Wed Oct 15 2014 umeabot <umeabot> 2.6.1-2.mga5
+ Revision: 745955
- Second Mageia 5 Mass Rebuild

* Tue Oct 14 2014 luigiwalser <luigiwalser> 2.6.1-1.mga5
+ Revision: 738653
- 2.6.1

* Tue Sep 30 2014 tv <tv> 2.6.0-3.mga5
+ Revision: 731942
- adjust gir requires

* Mon Sep 29 2014 tv <tv> 2.6.0-2.mga5
+ Revision: 731804
- add patch from suse: fixup the .gir file to contain the full library name for libjavascriptcore

* Mon Sep 29 2014 wally <wally> 2.6.0-1.mga5
+ Revision: 731714
- new version 2.6.0
- rebuild with new rpm-mageia-setup to generate requires for .typelib files

* Tue Sep 16 2014 umeabot <umeabot> 2.5.3-3.mga5
+ Revision: 690286
- Mageia 5 Mass Rebuild

* Thu Aug 28 2014 fwang <fwang> 2.5.3-2.mga5
+ Revision: 669056
- drop obsoletes

* Thu Aug 28 2014 fwang <fwang> 2.5.3-1.mga5
+ Revision: 669027
- update file list
- build gtk port
- imported package webkit2