2024-01-05 19:12:36 +01:00
# --enable-debug turn on debugging [default=no]
# --enable-indexeddb enable the indexed database API [default=no]
# --enable-input-speech enable the speech input API [default=no] broken
# --enable-image-resizer enable image resizer [default=no]
# --enable-wml enable support for WML [default=no]
# --enable-directory-upload enable support for directory upload [default=no]
# --enable-file-system enable support for HTML5 FileSystem API [default=no]
# --enable-web-timing enable support for Web Timing [default=no]
# --enable-blob enable support for Blob [default=no]
# --enable-coverage enable code coverage support [default=no]
# --enable-opcode-stats Enable Opcode statistics (default: disabled)
# --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
# --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
# --with-gtk=2.0|3.0 the GTK+ version to use (default: 2.0)
%define majver %(echo %version | cut -d. -f 1-2)
%define apiver 4.0
%define libname libwebkit2gtk
Name : webkitgtk
2024-01-05 19:12:37 +01:00
Version : 2.30.2
2024-01-05 19:12:37 +01:00
Release : 1mamba
2024-01-05 19:12:36 +01:00
Summary : Port of WebKit embeddable web component to GTK+
Group : System/Libraries
Vendor : openmamba
Distribution : openmamba
Packager : Silvan Calarco <silvan.calarco@mambasoft.it>
URL : http://www.webkitgtk.org/
Source0 : http://www.webkitgtk.org/releases/webkitgtk-%{version} .tar.xz
Patch0 : libwebkit-gtk-1.3.10-nspluginwrapper.patch
2024-01-05 19:12:37 +01:00
Patch1 : webkitgtk-2.16.6-arm-sync_add_and_fetch_8_duplicate.patch
2024-01-05 19:12:37 +01:00
Patch2 : webkitgtk-2.30.2-x86-arm-jit-build-workaround.patch
2024-01-05 19:12:36 +01:00
License : BSD, LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires : glibc-devel
2024-01-05 19:12:37 +01:00
BuildRequires : ldconfig
2024-01-05 19:12:36 +01:00
BuildRequires : libGL-devel
BuildRequires : libX11-devel
BuildRequires : libXcomposite-devel
BuildRequires : libXdamage-devel
BuildRequires : libatk-devel
BuildRequires : libcairo-devel
BuildRequires : libenchant-devel
BuildRequires : libfontconfig-devel
BuildRequires : libfreetype-devel
BuildRequires : libgcc
2024-01-05 19:12:37 +01:00
BuildRequires : libgcrypt-devel
2024-01-05 19:12:36 +01:00
BuildRequires : libgdk-pixbuf-devel
BuildRequires : libglib-devel
BuildRequires : libgst-plugins-base-devel
BuildRequires : libgstreamer-devel
BuildRequires : libgtk-devel
BuildRequires : libharfbuzz-devel
2024-01-05 19:12:36 +01:00
BuildRequires : libhyphen-devel
2024-01-05 19:12:36 +01:00
BuildRequires : libicu-devel
BuildRequires : libjpeg-devel
2024-01-05 19:12:36 +01:00
BuildRequires : libnotify-devel
2024-01-05 19:12:37 +01:00
BuildRequires : libopenjpeg-devel
2024-01-05 19:12:36 +01:00
BuildRequires : libpango-devel
BuildRequires : libpng-devel
2024-01-05 19:12:37 +01:00
BuildRequires : libseccomp-devel
2024-01-05 19:12:36 +01:00
BuildRequires : libsecret-devel
BuildRequires : libsoup-devel
BuildRequires : libsqlite-devel
BuildRequires : libstdc++6-devel
2024-01-05 19:12:37 +01:00
BuildRequires : libtasn1-devel
BuildRequires : libwayland-devel
BuildRequires : libwayland-egl-devel
2024-01-05 19:12:36 +01:00
BuildRequires : libwebp-devel
2024-01-05 19:12:37 +01:00
BuildRequires : libwoff2-devel
2024-01-05 19:12:37 +01:00
BuildRequires : libwpe-devel
BuildRequires : libwpebackend-fdo-devel
2024-01-05 19:12:36 +01:00
BuildRequires : libxml2-devel
BuildRequires : libxslt-devel
BuildRequires : libz-devel
## AUTOBUILDREQ-END
BuildRequires : libnpth-devel
2024-01-05 19:12:37 +01:00
BuildRequires : geoclue-devel
2024-01-05 19:12:36 +01:00
BuildRequires : bison
BuildRequires : flex
BuildRequires : GConf-devel
BuildRequires : gobject-introspection-devel
BuildRequires : gperf
BuildRequires : icu
BuildRequires : libtool
BuildRequires : perl
2024-01-05 19:12:37 +01:00
BuildRequires : bubblewrap
BuildRequires : xdg-dbus-proxy
2024-01-05 19:12:36 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -root
%description
WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web content engine that powers numerous applications such as web browsers, email clients, feed readers, web and text editors, and a whole lot more.
%package -n %{libname}
Summary : Port of WebKit embeddable web component to GTK+
Group : System/Libraries
2024-01-05 19:12:37 +01:00
Provides : %{name} -jsc
Obsoletes : %{name} -jsc
2024-01-05 19:12:36 +01:00
%description -n %{libname}
WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web content engine that powers numerous applications such as web browsers, email clients, feed readers, web and text editors, and a whole lot more.
%package -n %{libname}-devel
Group : Development/Libraries
Summary : Static libraries and headers for %{libname}
Requires : %{libname} = %{?epoch:%epoch:}%{version} -%{release}
%description -n %{libname}-devel
WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web content engine that powers numerous applications such as web browsers, email clients, feed readers, web and text editors, and a whole lot more.
This package contains libraries and header files need for development.
2024-01-05 19:12:37 +01:00
#%package jsc
#Group: Applications/Networking
#Summary: JavaScriptCore shell for WebKit GTK+
#Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
#
#%description jsc
#WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web content engine that powers numerous applications such as web browsers, email clients, feed readers, web and text editors, and a whole lot more.
#This package contains WebKit's JavaScript engine. It allows you to interact with the JavaScript engine directly.
2024-01-05 19:12:36 +01:00
%package webinspector
Group : Applications/Networking
Summary : Data files for WebKit GTK+'s Web Inspector
Obsoletes : Webkit
%description webinspector
WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web content engine that powers numerous applications such as web browsers, email clients, feed readers, web and text editors, and a whole lot more.
This package contains the data files necessary for Web Inspector to work.
%package doc
Group : Documentation
Summary : Documentation for %{name}
%description doc
WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web content engine that powers numerous applications such as web browsers, email clients, feed readers, web and text editors, and a whole lot more.
This package contains the documentation for %{name} ,
2024-01-05 19:12:37 +01:00
%debug_package
2024-01-05 19:12:37 +01:00
2024-01-05 19:12:37 +01:00
%prep
2024-01-05 19:12:37 +01:00
%setup -q -D -T
:<< _EOF
%ifarch arm %{ix86}
%patch2 -p1
%endif
2024-01-05 19:12:36 +01:00
%build
2024-01-05 19:12:37 +01:00
#%ifnarch x86_64
## To workaround ar 4GB file limit see also:
## https://build.opensuse.org/package/view_file/openSUSE:Factory/webkit2gtk3/webkit2gtk3.spec
#EXTRA_CFLAGS="-g0 -Wl,--no-keep-memory -Wl,--no-map-whole-files"
#EXTRA_CXXFLAGS="-g0 -Wl,--no-keep-memory -Wl,--no-map-whole-files"
#%endif
2024-01-05 19:12:36 +01:00
%cmake -d build \
2024-01-05 19:12:37 +01:00
\
%ifnarch x86_64
-DCMAKE_C_FLAGS=" $ E X T R A _ C F L A G S " \
-DCMAKE_CXX_FLAGS=" $ E X T R A _ C X X F L A G S " \
-DCMAKE_C_FLAGS_RELWITHDEBINFO=" - O 2 - g 1 " \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=" - O 2 - g 1 " \
%else
-DCMAKE_C_FLAGS_RELWITHDEBINFO=" - O 2 - g 1 " \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=" - O 2 - g 1 " \
%endif
2024-01-05 19:12:36 +01:00
-DPORT=GTK \
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
2024-01-05 19:12:36 +01:00
-DCMAKE_INSTALL_FULL_LIBEXECDIR=%{_libexecdir} \
2024-01-05 19:12:37 +01:00
-DENABLE_GTKDOC=ON \
-DENABLE_MINIBROWSER=ON \
-DCMAKE_EXE_LINKER_FLAGS=" - W l , - - a s - n e e d e d - W l , - z , n o w - p t h r e a d " \
-DCMAKE_MODULE_LINKER_FLAGS=" - W l , - - a s - n e e d e d - W l , - z , n o w - p t h r e a d " \
-DCMAKE_SHARED_LINKER_FLAGS=" - W l , - - a s - n e e d e d - W l , - z , n o w - p t h r e a d " \
2024-01-05 19:12:36 +01:00
%ifarch arm
2024-01-05 19:12:37 +01:00
-DENABLE_SPELLCHECK=0
2024-01-05 19:12:36 +01:00
%endif
2024-01-05 19:12:36 +01:00
2024-01-05 19:12:37 +01:00
# -DENABLE_JIT=OFF \
2024-01-05 19:12:37 +01:00
%make
2024-01-05 19:12:36 +01:00
%install
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
%makeinstall -C build
%find_lang WebKit2GTK-%{apiver}
%clean
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
%post -n %{libname}
/sbin/ldconfig
%{_bindir} /glib-compile-schemas %{_datadir} /glib-2.0/schemas
:
%postun -n %{libname}
/sbin/ldconfig
%{_bindir} /glib-compile-schemas %{_datadir} /glib-2.0/schemas
:
%files -n %{libname} -f WebKit2GTK-%{apiver}.lang
%defattr (-,root,root)
%{_libdir} /libwebkit2gtk-%{apiver} .so.*
%{_libdir} /libjavascriptcoregtk-%{apiver} .so.*
%{_libdir} /girepository-1.0/JavaScriptCore-%{apiver} .typelib
%{_libdir} /girepository-1.0/WebKit2-%{apiver} .typelib
%{_libdir} /girepository-1.0/WebKit2WebExtension-%{apiver} .typelib
%{_libdir} /webkit2gtk-%{apiver} /injected-bundle/libwebkit2gtkinjectedbundle.so
2024-01-05 19:12:37 +01:00
%{_libexecdir} /webkit2gtk-%{apiver} /MiniBrowser
%{_libexecdir} /webkit2gtk-%{apiver} /jsc
2024-01-05 19:12:36 +01:00
%dir %{_libexecdir} /webkit2gtk-%{apiver}
%{_libexecdir} /webkit2gtk-%{apiver} /WebKit*
%files -n %{libname}-devel
%defattr (-,root,root)
2024-01-05 19:12:37 +01:00
%{_bindir} /WebKitWebDriver
2024-01-05 19:12:36 +01:00
%dir %{_includedir} /webkitgtk-%{apiver}
%{_includedir} /webkitgtk-%{apiver} /*
%{_libdir} /libjavascriptcoregtk-%{apiver} .so
%{_libdir} /libwebkit2gtk-%{apiver} .so
%{_datadir} /gir-1.0/JavaScriptCore-%{apiver} .gir
%{_datadir} /gir-1.0/WebKit2-%{apiver} .gir
%{_datadir} /gir-1.0/WebKit2WebExtension-%{apiver} .gir
%{_libdir} /pkgconfig/webkit2gtk-%{apiver} .pc
%{_libdir} /pkgconfig/javascriptcoregtk-%{apiver} .pc
%{_libdir} /pkgconfig/webkit2gtk-web-extension-%{apiver} .pc
2024-01-05 19:12:37 +01:00
%files doc
2024-01-05 19:12:36 +01:00
%defattr (-,root,root)
2024-01-05 19:12:37 +01:00
%dir %{_datadir} /gtk-doc/html/jsc-glib-%{apiver}
%{_datadir} /gtk-doc/html/jsc-glib-%{apiver} /*
%dir %{_datadir} /gtk-doc/html/webkit2gtk-%{apiver}
%{_datadir} /gtk-doc/html/webkit2gtk-%{apiver} /*
%dir %{_datadir} /gtk-doc/html/webkitdomgtk-%{apiver}
%{_datadir} /gtk-doc/html/webkitdomgtk-%{apiver} /*
2024-01-05 19:12:36 +01:00
%changelog
2024-01-05 19:12:37 +01:00
* Sat Nov 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30.2-1mamba
- update to 2.30.2
* Sat Sep 26 2020 Automatic Build System <autodist@mambasoft.it> 2.30.1-1mamba
- automatic version update by autodist
2024-01-05 19:12:37 +01:00
* Thu Jul 30 2020 Automatic Build System <autodist@mambasoft.it> 2.28.4-1mamba
- automatic version update by autodist
2024-01-05 19:12:37 +01:00
* Fri Jul 10 2020 Automatic Build System <autodist@mambasoft.it> 2.28.3-1mamba
- automatic version update by autodist
2024-01-05 19:12:37 +01:00
* Mon May 04 2020 Automatic Build System <autodist@mambasoft.it> 2.28.2-1mamba
- automatic version update by autodist
2024-01-05 19:12:37 +01:00
* Fri Mar 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.28.0-2mamba
- x86 build fixed, restored gtk-doc, build MiniBrowser
* Fri Mar 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.28.0-1mamba
- update to 2.28.0
* Fri Dec 28 2018 Automatic Build System <autodist@mambasoft.it> 2.22.5-1mamba
- automatic version update by autodist
2024-01-05 19:12:37 +01:00
* Fri Sep 28 2018 Automatic Build System <autodist@mambasoft.it> 2.22.2-1mamba
- automatic version update by autodist
* Thu Sep 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.22.0-1mamba
- update to 2.22.0
* Mon Feb 12 2018 Automatic Build System <autodist@mambasoft.it> 2.18.6-1mamba
- automatic version update by autodist
2024-01-05 19:12:37 +01:00
* Mon Aug 14 2017 Automatic Build System <autodist@mambasoft.it> 2.16.6-1mamba
- automatic version update by autodist
* Sun Feb 05 2017 Automatic Build System <autodist@mambasoft.it> 2.14.3-1mamba
- automatic version update by autodist
* Sun Oct 16 2016 Automatic Build System <autodist@mambasoft.it> 2.14.1-1mamba
- automatic version update by autodist
2024-01-05 19:12:37 +01:00
* Fri Sep 09 2016 Automatic Build System <autodist@mambasoft.it> 2.12.5-1mamba
- automatic version update by autodist
2024-01-05 19:12:36 +01:00
* Thu Sep 01 2016 Automatic Build System <autodist@mambasoft.it> 2.12.4-1mamba
- automatic version update by autodist
2024-01-05 19:12:36 +01:00
* Sun Aug 21 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.3-1mamba
- update to 2.12.3
2024-01-05 19:12:36 +01:00
* Thu Mar 24 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.0-1mamba
- update to 2.12.0
2024-01-05 19:12:36 +01:00
* Wed Apr 01 2015 Automatic Build System <autodist@mambasoft.it> 2.8.0-1mamba
- automatic update by autodist
2024-01-05 19:12:36 +01:00
* Wed Dec 31 2014 Automatic Build System <autodist@mambasoft.it> 2.7.3-1mamba
- automatic update by autodist
* Sat Nov 29 2014 Automatic Build System <autodist@mambasoft.it> 2.7.2-1mamba
- automatic update by autodist
* Tue Jul 22 2014 Automatic Build System <autodist@mambasoft.it> 2.4.4-1mamba
- automatic update by autodist
* Wed Jun 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.3-1mamba
- update to 2.4.3
* Thu Nov 14 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.2-2mamba
- rebuilt because previous release was packaged with a buggy rpm release
* Wed Nov 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.2-1mamba
- update to 2.2.2
* Sat Aug 31 2013 Automatic Build System <autodist@mambasoft.it> 2.1.90.1-1mamba
- automatic update by autodist
* Fri Aug 23 2013 Automatic Build System <autodist@mambasoft.it> 2.1.4-1mamba
- automatic update by autodist
* Sun Jul 21 2013 Automatic Build System <autodist@mambasoft.it> 2.1.3-1mamba
- automatic update by autodist
* Mon Jun 17 2013 Automatic Build System <autodist@mambasoft.it> 2.0.3-1mamba
- update to 2.0.3
* Mon Jun 17 2013 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic version update by autodist
* Sun Apr 14 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-2mamba
- rebuilt with devhelp 3.8.0
* Tue Apr 02 2013 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
- automatic version update by autodist
* Fri Mar 22 2013 Automatic Build System <autodist@mambasoft.it> 1.11.92-1mamba
- automatic version update by autodist
* Wed Mar 13 2013 Automatic Build System <autodist@mambasoft.it> 1.11.91-1mamba
- automatic version update by autodist
* Sat Mar 02 2013 Automatic Build System <autodist@mambasoft.it> 1.11.90-1mamba
- automatic version update by autodist
* Thu Oct 04 2012 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- update to 1.10.0
* Wed Aug 15 2012 Automatic Build System <autodist@mambasoft.it> 1.8.2-1mamba
- automatic version update by autodist
* Wed Jun 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-2mamba
- build for gtk3; rename to libwebkit-gtk3 (libwebkit-gtk is the gtk 2.0 version)
* Sun May 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
- update to 1.8.1
* Fri Feb 25 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.10-2mamba
- rebuilt in devel
- buildrequire libjpeg-devel instead of libjpeg-turbo-devel
* Wed Jan 26 2011 gil <puntogil@libero.it> 1.3.10-1mamba
- update to 1.3.10
* Mon Nov 29 2010 gil <puntogil@libero.it> 1.3.6-2mamba
- rebuilt devel
* Tue Nov 09 2010 gil <puntogil@libero.it> 1.3.6-1mamba
- update to 1.3.6
* Thu Oct 07 2010 gil <puntogil@libero.it> 1.3.4-1mamba
- update to 1.3.4
* Wed Oct 06 2010 gil <puntogil@libero.it> 1.2.5-1mamba
- update to 1.2.5
* Mon Sep 13 2010 gil <puntogil@libero.it> 1.2.4-1mamba
- update to 1.2.4
* Thu Jul 22 2010 gil <puntogil@libero.it> 1.2.3-1mamba
- update to 1.2.3
* Wed Jun 23 2010 gil <puntogil@libero.it> 1.2.1-1mamba
- update to 1.2.1
* Sat Apr 24 2010 gil <puntogil@libero.it> 1.2.0-2mamba
- edit spec file
* Tue Apr 20 2010 gil <puntogil@libero.it> 1.2.0-1mamba
- update to 1.2.0
* Sat Dec 26 2009 gil <puntogil@libero.it> 1.1.15.4-1mamba
- update to 1.1.15.4
* Thu Jul 02 2009 gil <puntogil@libero.it> 1.1.10-1mamba
- update to 1.1.10
* Thu Jun 11 2009 gil <puntogil@libero.it> 1.1.9-1mamba
- update to 1.1.9
* Fri May 29 2009 gil <puntogil@libero.it> 1.1.8-1mamba
- update to 1.1.8
* Sat May 16 2009 gil <puntogil@libero.it> 1.1.7-1mamba
- update to 1.1.7
* Thu May 07 2009 gil <puntogil@libero.it> 1.1.6-1mamba
- update to 1.1.6
* Sat Apr 18 2009 gil <puntogil@libero.it> 1.1.5-1mamba
- update to 1.1.5
* Sat Mar 28 2009 gil <puntogil@libero.it> 1.1.4-1mamba
- update to 1.1.4
* Mon Nov 17 2008 gil <puntogil@libero.it> 1.0.1-1mamba
- package created by autospec