webkitgtk/webkitgtk.spec

366 lines
13 KiB
RPMSpec

# --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
Version: 2.8.0
Release: 1mamba
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
License: BSD, LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: gst-plugins-bad-devel
#BuildRequires: lib32-libglib-devel
BuildRequires: libGL-devel
BuildRequires: libX11-devel
BuildRequires: libXcomposite-devel
BuildRequires: libXdamage-devel
BuildRequires: libXrender-devel
BuildRequires: libXt-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libenchant-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgst-plugins-base-devel
BuildRequires: libgstreamer-devel
BuildRequires: libgtk-devel
BuildRequires: libgtk2-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libicu-devel
BuildRequires: libjpeg-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libsecret-devel
BuildRequires: libsoup-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libwebp-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libnpth-devel
BuildRequires: bison
BuildRequires: flex
BuildRequires: GConf-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gperf
BuildRequires: icu
BuildRequires: libtool
BuildRequires: perl
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
%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.
%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.
%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},
%prep
%setup -q
#-D -T
#:<< __EOF
#%patch0 -p0
%build
#:<< __EOF
#./autogen.sh
#%ifarch arm %{ix86}
## Use linker flags to reduce memory consumption on low-mem architectures
#EXTRA_CFLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
#%endif
%ifnarch x86_64
# To workaround ar 4GB file limit:
# https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1043507
EXTRA_CFLAGS="-g0 -Wl,--no-keep-memory"
EXTRA_CXXFLAGS="-g0 -Wl,--no-keep-memory"
%endif
CFLAGS="%{optflags} -DNDEBUG -DLIBSOUP_I_HAVE_READ_BUG_594377_AND_KNOW_SOUP_PASSWORD_MANAGER_MIGHT_GO_AWAY $EXTRA_CFLAGS"
CXXFLAGS="%{optflags} -DNDEBUG $EXTRA_CXXFLAGS"
%cmake -d build \
-DPORT=GTK \
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
-DCMAKE_INSTALL_FULL_LIBEXECDIR=%{_libexecdir} \
%ifarch arm
-DENABLE_JIT=OFF
%endif
##__EOF
### https://bugs.webkit.org/show_bug.cgi?id=34846
## V=1 seems a workaround for make error 'argument list too long'
%make
#V=1 || make V=1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
#%ifarch arm %{ix86}
## Use linker flags to reduce memory consumption on low-mem architectures
#EXTRA_CFLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
#%endif
#CFLAGS="%{optflags} -DLIBSOUP_I_HAVE_READ_BUG_594377_AND_KNOW_SOUP_PASSWORD_MANAGER_MIGHT_GO_AWAY $EXTRA_CFLAGS"
#% makeinstall V=1
#mkdir -p %{buildroot}%{_bindir}/
#install -m 755 Programs/GtkLauncher %{buildroot}%{_bindir}/GtkLauncher
#for doc in WebKit/LICENSE WebKit/gtk/po/README WebKit/gtk/NEWS Source/WebCore/icu/LICENSE Source/WebCore/LICENSE-APPLE Source/WebCore/LICENSE-LGPL-2 \
# Source/WebCore/LICENSE-LGPL-2.1 Source/JavaScriptCore/COPYING.LIB Source/JavaScriptCore/THANKS Source/JavaScriptCore/AUTHORS \
# Source/JavaScriptCore/icu/README Source/JavaScriptCore/icu/LICENSE Source/JavaScriptCore/pcre/COPYING Source/JavaScriptCore/pcre/AUTHORS ;do
# mkdir -p %{buildroot}%{_docdir}/webkitgtk-%{version}
# cp -p $doc %{buildroot}%{_docdir}/webkitgtk-%{version}/$(echo $doc | sed -e 's!/!.!g')
#done
%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
%dir %{_libexecdir}/webkit2gtk-%{apiver}
%{_libexecdir}/webkit2gtk-%{apiver}/WebKit*
%files -n %{libname}-devel
%defattr(-,root,root)
%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
#%files doc
#%defattr(-,root,root)
#%dir %{_datadir}/gtk-doc/html/webkitgtk
#%{_datadir}/gtk-doc/html/webkitgtk/*
#%dir %{_datadir}/gtk-doc/html/webkit2gtk
#%{_datadir}/gtk-doc/html/webkit2gtk/*
#%dir %{_datadir}/gtk-doc/html/webkitdomgtk
#%{_datadir}/gtk-doc/html/webkitdomgtk/*
%files jsc
%defattr(-,root,root)
%{_bindir}/jsc
%changelog
* Wed Apr 01 2015 Automatic Build System <autodist@mambasoft.it> 2.8.0-1mamba
- automatic update by autodist
* 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