+%bcond_with wrt_option_bluetooth
+%bcond_with wrt_option_call_history
+%bcond_with wrt_option_nbs
+%bcond_with wrt_option_nfc
+%bcond_with wrt_option_push
+%bcond_with wrt_option_se
+%bcond_with wrt_option_sysinfo_tel_sim_mngt
+%bcond_with wrt_option_sysinfo_cellular_network_mngt
+%bcond_with wrt_option_msg_port
Name: wrt-plugins-tizen
Summary: JavaScript plugins for WebRuntime
- Version: 0.4.32
+ Version: 0.4.72
-Release: 0
+Release: 3
Group: Development/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(capi-appfw-package-manager)
BuildRequires: pkgconfig(capi-web-url-download)
+%if %{with wrt_option_push}
BuildRequires: pkgconfig(push)
+%endif
BuildRequires: pkgconfig(notification)
+%if %{with wrt_option_msg_port}
BuildRequires: pkgconfig(message-port)
+%endif
BuildRequires: pkgconfig(sync-agent)
BuildRequires: pkgconfig(security-server)
+ BuildRequires: pkgconfig(wrt-plugins-ipc-message)
BuildRequires: expat-devel
BuildRequires: cmake
BuildRequires: gettext-devel
export LDFLAGS+="-Wl,--rpath=%{PREFIX} -Wl,--as-needed"
-cmake \
--DENABLE_OPTIONAL_BT=YES \
--DENABLE_OPTIONAL_CALL_HISTORY=YES \
--DENABLE_OPTIONAL_NBS=YES \
--DENABLE_OPTIONAL_NFC=YES \
--DENABLE_OPTIONAL_PUSH=YES \
--DENABLE_OPTIONAL_SE=YES \
+ %if 0%{?tizen_build_binary_release_type_eng}
+ export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
+ export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
+ export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
+ %endif
+
+%cmake \
+%if %{with wrt_option_bluetooth}
+ -DENABLE_OPTIONAL_BT=YES \
+%endif
+%if %{with wrt_option_call_history}
+ -DENABLE_OPTIONAL_CALL_HISTORY=YES \
+%endif
+%if %{with wrt_option_nbs}
+ -DENABLE_OPTIONAL_NBS=YES \
+%endif
+%if %{with wrt_option_nfc}
+ -DENABLE_OPTIONAL_NFC=YES \
+%endif
+%if %{with wrt_option_push}
+ -DENABLE_OPTIONAL_PUSH=YES \
+%endif
+%if %{with wrt_option_se}
+ -DENABLE_OPTIONAL_SE=YES \
+%endif
+%if %{with wrt_option_sysinfo_tel_sim_mngt}
+ -DENABLE_OPTIONAL_SYSINFO_TEL_SIM_MNGT=YES \
+%endif
+%if %{with wrt_option_sysinfo_cellular_network_mngt}
+ -DENABLE_OPTIONAL_SYSINFO_CELLULAR_NETWORK_MNGT=YES \
+%endif
+%if %{with wrt_option_msg_port}
+ -DENABLE_OPTIONAL_MSG_PORT=YES \
+%endif
. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DDPL_LOG="ON" -DENABLE_TIME_TRACER="OFF"
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
+ mkdir -p %{buildroot}/usr/share/license
+ cp LICENSE %{buildroot}/usr/share/license/%{name}
-%post
-
-%postun
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%manifest wrt-plugins-tizen.manifest
%{_libdir}/wrt-plugins/*
/usr/etc/tizen-apis/*
+/etc/ld.so.conf.d/wrt-plugins-tizen.conf
+ /usr/share/license/%{name}
%files devel
%{_includedir}/*