Name: webkit-engine Summary: Webkit EFL Version: 105485_0.12 Release: 1 Group: System/Libraries License: BSD, GNU LIBRARY GENERAL PUBLIC LICENSE Version 2 Source0: %{name}-%{version}.tar.gz #Patch0: patch Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: cmake, edje-bin, embryo-bin, python, bison, flex, gperf, libjpeg-devel, perl, gettext BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(ecore-evas) BuildRequires: pkgconfig(ecore-file) BuildRequires: pkgconfig(edbus) BuildRequires: pkgconfig(edje) BuildRequires: pkgconfig(eina) BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gstreamer-0.10) BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(libmedia-utils) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(libssl) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxslt) BuildRequires: pkgconfig(location) BuildRequires: pkgconfig(mmutil-imgp) BuildRequires: pkgconfig(mmutil-jpeg) BuildRequires: pkgconfig(mm-camcorder) BuildRequires: pkgconfig(mm-player) BuildRequires: pkgconfig(mm-session) BuildRequires: pkgconfig(pango) BuildRequires: pkgconfig(sensor) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(utilX) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(leveldb) BuildRequires: pkgconfig(capi-location-manager) %ifarch %{arm} BuildRequires: pkgconfig(gles20) #BuildRequires: opengl-es %else BuildRequires: simulator-opengl-devel %endif %description Browser Engine based on Webkit EFL (Shared Library) %package devel Summary: Webkit EFL Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Browser Engine dev library based on Webkit EFL (developement files) %prep %setup -q #%patch0 -p1 %build %ifarch %{arm} %define EFL_TARGET arm %else %define EFL_TARGET i386 %endif mkdir -p BuildWK cd BuildWK cmake .. -DPORT=Efl -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_COMPONENT=/usr/include -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="$CFLAGS" -DEFL_TARGET=%{EFL_TARGET} make %{?jobs:-j%jobs} %install rm -rf %{buildroot} cd BuildWK cmake .. -DPORT=Efl -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_COMPONENT=/usr/include -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="$CFLAGS" -DEFL_TARGET=%{EFL_TARGET} %make_install mkdir %{buildroot}/usr/share/edje cp ./WebKit/efl/DefaultTheme/default.edj %{buildroot}/usr/share/edje/webkit.edj %post #!/bin/sh # A path to the WebKit's data bases and appcache dir if [ ! -d /opt/dbspace/.webkit ]; then mkdir /opt/dbspace/.webkit fi if [ ${USER} = "root" ] then #change file owner # 1. libraries chown root:root /usr/lib/libewebkit.so # 2. Resources chown root:root /usr/share/ewebkit-0/themes/default.edj chown root:root /usr/share/edje/webkit.edj chown 5000:5000 /opt/dbspace/.webkit fi #change file permissions # 1. libraries chmod 644 /usr/lib/libewebkit.so # 2. Resources chmod 644 /usr/share/ewebkit-0/themes/default.edj chmod 644 /usr/share/edje/webkit.edj chmod 775 /opt/dbspace/.webkit ################################################################# # Set executin script ################################################################# echo "[WebKit-EFL] postinst done ..." %postun %files %defattr(-,root,root,-) /usr/lib/*.so* /usr/share/* /usr/share/edje/* /usr/share/ewebkit-0/* /usr/share/ewebkit-0/*/* /usr/share/ewebkit-0/*/*/* %files devel %defattr(-,root,root,-) /usr/lib/libewebkit.so /usr/lib/pkgconfig/ewebkit.pc /usr/include/ewebkit-0/*.h /usr/include/ewebkit-0/JavaScriptCore/*.h