%define debug_package %{nil} %define __strip /bin/true Name: osp-web Summary: osp web library Version: 1.2.2.0 Release: 2 Group: System/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(capi-network-connection) BuildRequires: pkgconfig(capi-web-favorites) BuildRequires: pkgconfig(capi-content-media-content) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(edbus) BuildRequires: pkgconfig(eina) BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(ethumb) BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(ewebkit2) BuildRequires: pkgconfig(bundle) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(osp-appfw) BuildRequires: pkgconfig(osp-content) BuildRequires: osp-appfw-internal-devel BuildRequires: osp-content-internal-devel BuildRequires: pkgconfig(osp-net) BuildRequires: osp-net-internal-devel BuildRequires: pkgconfig(osp-uifw) BuildRequires: pkgconfig(osp-content) BuildRequires: osp-uifw-internal-devel BuildRequires: pkgconfig(osp-image-core) BuildRequires: pkgconfig(osp-image) BuildRequires: pkgconfig(osp-media) BuildRequires: osp-media-internal-devel BuildRequires: pkgconfig(osp-json) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(haptic) # runtime requires Requires: osp-appfw Requires: osp-media Requires: osp-net Requires: osp-json Requires: osp-content %description osp web library %package devel Summary: osp web library (Development) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description devel osp web library (DEV) %package internal-devel Summary: osp web framework internel (Internal) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description internal-devel The Web Framework library of OSP (Internal-DEV) %package debug Summary: osp web library (Development) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description debug osp web library (DEV) %prep %setup -q %build %if 0%{?tizen_build_binary_release_type_eng} CXXFLAGS="$CXXFLAGS -D_SECURE_LOG" %endif MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %ifarch %{ix86} %if 0%{?simulator} CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %else CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %endif %else %if 0%{?tizen_build_binary_release_type_eng} CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %else CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %endif %endif # Call make instruction with smp support make %{?jobs:-j%jobs} %install rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/license cat %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 >> %{buildroot}/usr/share/license/%{name} %make_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest osp-web.manifest /usr/share/license/%{name} %{_libdir}/osp/libosp-web.so* %{_libdir}/osp/browser-plugin/*.so %files devel %{_includedir}/osp/*.h %{_libdir}/pkgconfig/osp-web.pc %files internal-devel %{_includedir}/osp/web/controls/*.h %files debug %{_libdir}/osp/debug/*.so.* %{_libdir}/osp/browser-plugin/debug/*.so