Accepting request 246087 from home:dimstar:branches:GNOME:Next
Let's just add webkit2gtk3 here OBS-URL: https://build.opensuse.org/request/show/246087 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/webkit2gtk3?expand=0&rev=1
This commit is contained in:
commit
68a96f6335
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
10
_constraints
Normal file
10
_constraints
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<constraints>
|
||||||
|
<hardware>
|
||||||
|
<disk>
|
||||||
|
<size unit="M">2200</size>
|
||||||
|
</disk>
|
||||||
|
<physicalmemory>
|
||||||
|
<size unit="M">3200</size>
|
||||||
|
</physicalmemory>
|
||||||
|
</hardware>
|
||||||
|
</constraints>
|
2
baselibs.conf
Normal file
2
baselibs.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
libjavascriptcoregtk-4_0-18
|
||||||
|
libwebkit2gtk-4_0-37
|
5
webkit2gtk3.changes
Normal file
5
webkit2gtk3.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 13 16:47:40 UTC 2014 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Initial package, version 2.5.3; based on webkitgtk3.spec.
|
||||||
|
|
279
webkit2gtk3.spec
Normal file
279
webkit2gtk3.spec
Normal file
@ -0,0 +1,279 @@
|
|||||||
|
#
|
||||||
|
# spec file for package webkit2gtk3
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define _pkgname_no_slpp libwebkit2gtk3
|
||||||
|
%define _sover -4_0-18
|
||||||
|
%define _wk2sover -4_0-37
|
||||||
|
%define _sonamever 4.0
|
||||||
|
%define _sonameverpkg 4_0
|
||||||
|
%define _gtkver 3.0
|
||||||
|
%define _jscver 4
|
||||||
|
%define _pkgconfig_suffix gtk-3.0
|
||||||
|
%define _name webkitgtk
|
||||||
|
Name: webkit2gtk3
|
||||||
|
Version: 2.5.3
|
||||||
|
Release: 0
|
||||||
|
Summary: Library for rendering web content, GTK+ Port
|
||||||
|
License: LGPL-2.0+ and BSD-3-Clause
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Url: http://webkitgtk.org/
|
||||||
|
Source: http://webkitgtk.org/releases/%{_name}-%{version}.tar.xz
|
||||||
|
Source1: baselibs.conf
|
||||||
|
# PATCH-FIX-OPENSUSE webkitgtk-typelib-sharelib-link.patch dimstar@opensuse.org -- Fixup the .gir file to contain the full library name for libjavascriptcore.
|
||||||
|
Patch0: webkitgtk-typelib-sharelib-link.patch
|
||||||
|
BuildRequires: binutils-gold
|
||||||
|
BuildRequires: bison >= 2.3
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: gobject-introspection-devel
|
||||||
|
BuildRequires: gperf >= 3.0.1
|
||||||
|
BuildRequires: libicu-devel
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
BuildRequires: perl >= 5.10.0
|
||||||
|
BuildRequires: python >= 2.6.0
|
||||||
|
BuildRequires: ruby >= 1.8.7
|
||||||
|
BuildRequires: pkgconfig(atk)
|
||||||
|
BuildRequires: pkgconfig(atspi-2) >= 2.5.3
|
||||||
|
BuildRequires: pkgconfig(cairo) >= 1.10.2
|
||||||
|
BuildRequires: pkgconfig(enchant)
|
||||||
|
BuildRequires: pkgconfig(fontconfig) >= 2.8.0
|
||||||
|
BuildRequires: pkgconfig(freetype2) >= 2.4.2
|
||||||
|
BuildRequires: pkgconfig(geoclue-2.0) >= 2.1.5
|
||||||
|
BuildRequires: pkgconfig(glib-2.0) >= 2.33.2
|
||||||
|
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.0.3
|
||||||
|
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
|
||||||
|
# We require gtk2 for the Gtk2 plugin wrapper
|
||||||
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.24.10
|
||||||
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.12.0
|
||||||
|
BuildRequires: pkgconfig(gudev-1.0)
|
||||||
|
BuildRequires: pkgconfig(harfbuzz) >= 0.9.2
|
||||||
|
BuildRequires: pkgconfig(libpng)
|
||||||
|
BuildRequires: pkgconfig(libsecret-1)
|
||||||
|
BuildRequires: pkgconfig(libsoup-2.4) >= 2.40.3
|
||||||
|
BuildRequires: pkgconfig(libwebp)
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.8.0
|
||||||
|
BuildRequires: pkgconfig(libxslt) >= 1.1.7
|
||||||
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
BuildRequires: pkgconfig(xt)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
%package -n libwebkit2gtk%{_wk2sover}
|
||||||
|
Summary: Library for rendering web content, GTK+ Port
|
||||||
|
Group: System/Libraries
|
||||||
|
# this will install the non-webkit2 library too; at some point, we should move
|
||||||
|
# the Provides for %%{_pkgname_no_slpp} here
|
||||||
|
Recommends: %{_pkgname_no_slpp}-lang = %{version}
|
||||||
|
# Recommend the injected bundles
|
||||||
|
Recommends: webkit2gtk-4_0-injected-bundles
|
||||||
|
|
||||||
|
%description -n libwebkit2gtk%{_wk2sover}
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
%package -n webkit2gtk-4_0-injected-bundles
|
||||||
|
Summary: Library for rendering web content -- Injected bundles
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n webkit2gtk-4_0-injected-bundles
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
%package -n libjavascriptcoregtk%{_sover}
|
||||||
|
Summary: JavaScript Core Engine, GTK+ Port
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libjavascriptcoregtk%{_sover}
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
%package -n typelib-1_0-WebKit2-%{_sonameverpkg}
|
||||||
|
Summary: Library for rendering web content, GTK+ Port -- Introspection bindings
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n typelib-1_0-WebKit2-%{_sonameverpkg}
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
This package provides the GObject Introspection bindings for the GTK+
|
||||||
|
port of WebKit2.
|
||||||
|
|
||||||
|
%package -n typelib-1_0-WebKit2WebExtension-%{_sonameverpkg}
|
||||||
|
Summary: Library for rendering web content, GTK+ Port -- Introspection bindings
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n typelib-1_0-WebKit2WebExtension-%{_sonameverpkg}
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
This package provides the GObject Introspection bindings for the GTK+
|
||||||
|
port of WebKit2.
|
||||||
|
|
||||||
|
%package -n typelib-1_0-JavaScriptCore-%{_sonameverpkg}
|
||||||
|
Summary: JavaScript Core Engine, GTK+ Port -- Introspection bindings
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n typelib-1_0-JavaScriptCore-%{_sonameverpkg}
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
This package provides the GObject Introspection bindings for the GTK+
|
||||||
|
port of the JavaScript Core engine.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Library for rendering web content, GTK+ Port
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libjavascriptcoregtk%{_sover} = %{version}
|
||||||
|
Requires: libwebkit2gtk%{_wk2sover} = %{version}
|
||||||
|
Requires: typelib-1_0-JavaScriptCore-%{_sonameverpkg}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
%package -n webkit-jsc-%{_jscver}
|
||||||
|
Summary: Library for rendering web content, GTK+ Port
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
|
%description -n webkit-jsc-%{_jscver}
|
||||||
|
WebKit is a web content engine, derived from KHTML and KJS from KDE,
|
||||||
|
and used primarily in Apple's Safari browser. It is made to be
|
||||||
|
embedded in other applications, such as mail readers, or web browsers.
|
||||||
|
|
||||||
|
It is able to display content such as HTML, SVG, XML, and others. It
|
||||||
|
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
|
||||||
|
more.
|
||||||
|
|
||||||
|
%lang_package -n %{_pkgname_no_slpp}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n webkitgtk-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
mkdir build
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Use linker flags to reduce memory consumption
|
||||||
|
%global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
|
||||||
|
%cmake \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DLIBEXEC_INSTALL_DIR=%{_libexecdir}/libwebkit2gtk%{_wk2sover} \
|
||||||
|
-DPORT=GTK
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
%find_lang WebKit2GTK-4.0
|
||||||
|
|
||||||
|
%post -n libwebkit2gtk%{_wk2sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libwebkit2gtk%{_wk2sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libjavascriptcoregtk%{_sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libjavascriptcoregtk%{_sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n libwebkit2gtk%{_wk2sover}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libexecdir}/libwebkit2gtk%{_wk2sover}/
|
||||||
|
%{_libdir}/libwebkit2gtk-4.0.so.*
|
||||||
|
|
||||||
|
%files -n webkit2gtk-4_0-injected-bundles
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_libdir}/webkit2gtk-4.0
|
||||||
|
%dir %{_libdir}/webkit2gtk-4.0/injected-bundle
|
||||||
|
%{_libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so
|
||||||
|
|
||||||
|
%files -n libjavascriptcoregtk%{_sover}
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%doc Source/JavaScriptCore/COPYING.LIB
|
||||||
|
%{_libdir}/libjavascriptcoregtk-4.0.so.*
|
||||||
|
|
||||||
|
%files -n typelib-1_0-WebKit2-%{_sonameverpkg}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/girepository-1.0/WebKit2-%{_sonamever}.typelib
|
||||||
|
|
||||||
|
%files -n typelib-1_0-WebKit2WebExtension-%{_sonameverpkg}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/girepository-1.0/WebKit2WebExtension-%{_sonamever}.typelib
|
||||||
|
|
||||||
|
%files -n typelib-1_0-JavaScriptCore-%{_sonameverpkg}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/girepository-1.0/JavaScriptCore-%{_sonamever}.typelib
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_datadir}/gir-1.0/*.gir
|
||||||
|
%{_includedir}/webkitgtk-4.0/
|
||||||
|
%{_libdir}/libwebkit2gtk-4.0.so
|
||||||
|
%{_libdir}/libjavascriptcoregtk-4.0.so
|
||||||
|
%{_libdir}/pkgconfig/javascriptcoregtk-4.0.pc
|
||||||
|
%{_libdir}/pkgconfig/webkit2gtk-4.0.pc
|
||||||
|
%{_libdir}/pkgconfig/webkit2gtk-web-extension-4.0.pc
|
||||||
|
|
||||||
|
%files -n webkit-jsc-%{_jscver}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/jsc
|
||||||
|
|
||||||
|
%files -n %{_pkgname_no_slpp}-lang -f WebKit2GTK-4.0.lang
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
|
%changelog
|
3
webkitgtk-2.5.3.tar.xz
Normal file
3
webkitgtk-2.5.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:010803e371ac92a3e0e297e929978f83a9a3c597e4a10d50363fb1aaa6ea18d6
|
||||||
|
size 10093908
|
13
webkitgtk-typelib-sharelib-link.patch
Normal file
13
webkitgtk-typelib-sharelib-link.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: webkitgtk-2.1.2/Source/JavaScriptCore/JavaScriptCore.gir.in
|
||||||
|
===================================================================
|
||||||
|
--- webkitgtk-2.1.2.orig/Source/JavaScriptCore/JavaScriptCore.gir.in
|
||||||
|
+++ webkitgtk-2.1.2/Source/JavaScriptCore/JavaScriptCore.gir.in
|
||||||
|
@@ -3,7 +3,7 @@
|
||||||
|
xmlns="http://www.gtk.org/introspection/core/1.0"
|
||||||
|
xmlns:c="http://www.gtk.org/introspection/c/1.0">
|
||||||
|
<namespace name="JavaScriptCore" version="@WEBKITGTK_API_VERSION@"
|
||||||
|
- shared-library="javascriptcoregtk-@WEBKITGTK_API_VERSION@"
|
||||||
|
+ shared-library="libjavascriptcoregtk-@WEBKITGTK_API_VERSION@.so.18"
|
||||||
|
c:identifier-prefixes="JS"
|
||||||
|
c:symbol-prefixes="JS">
|
||||||
|
<record name="GlobalContext" c:type="JSGlobalContextRef" foreign="1"/>
|
Loading…
Reference in New Issue
Block a user