diff options
author | jk7744.park <jk7744.park@samsung.com> | 2015-02-01 14:25:43 +0900 |
---|---|---|
committer | jk7744.park <jk7744.park@samsung.com> | 2015-02-01 14:25:43 +0900 |
commit | 31a89b1fbe57b96011f45b9f7a7e48d906b03847 (patch) | |
tree | 1a75b71523a9c75025b81894eedb4c2814df7ce7 /packaging | |
parent | c9b61219b0310b8c4672c18dc20887a779830204 (diff) | |
download | wrt-plugins-common-tizen_2.3.tar.gz wrt-plugins-common-tizen_2.3.tar.bz2 wrt-plugins-common-tizen_2.3.zip |
tizen 2.3 releasetizen_2.3_releasesubmit/tizen_2.3/20150202.074142tizen_2.3
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/wrt-plugins-common.spec | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/packaging/wrt-plugins-common.spec b/packaging/wrt-plugins-common.spec new file mode 100644 index 0000000..0ffbe31 --- /dev/null +++ b/packaging/wrt-plugins-common.spec @@ -0,0 +1,100 @@ +#git:framework/web/wrt-plugins-common +Name: wrt-plugins-common +Summary: wrt-plugins common library +Version: 0.3.153 +Release: 1 +Group: Development/Libraries +License: Apache License, Version 2.0 +Source0: %{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: pkgconfig(dpl-efl) +BuildRequires: pkgconfig(wrt-plugins-types) +BuildRequires: pkgconfig(security-client) +BuildRequires: pkgconfig(dpl-event-efl) +BuildRequires: pkgconfig(ewebkit2) +BuildRequires: pkgconfig(dpl-wrt-dao-ro) +BuildRequires: pkgconfig(dpl-wrt-dao-rw) +BuildRequires: pkgconfig(libpcrecpp) +BuildRequires: pkgconfig(icu-i18n) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(cert-svc-vcore) +BuildRequires: pkgconfig(wrt-commons-widget-interface-dao) +Requires: ldconfig + +%description +JavaScript plugins for WebRuntime + +%package devel +Summary: wrt-plugins-common library development headers +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +wrt-plugins common library development headers + +%prep +%setup -q + +%define with_tests 0 +%if "%{WITH_TESTS}" == "ON" || "%{WITH_TESTS}" == "Y" || "%{WITH_TESTS}" == "YES" || "%{WITH_TESTS}" == "TRUE" || "%{WITH_TESTS}" == "1" + %define with_tests 1 +%endif + +%build +%if 0%{?sec_build_binary_debug_enable} +export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" +export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" +export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" +%endif + +export LDFLAGS+="-Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--hash-style=both" + +cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DDPL_LOG="ON" \ + -DCMAKE_PROJECT_VERSION=%{version} \ + -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \ + %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS} +make %{?jobs:-j%jobs} + +%install +mkdir -p %{buildroot}/usr/share/license +cp LICENSE %{buildroot}/usr/share/license/%{name} +%make_install + +%clean +rm -rf %{buildroot} + +%post +mkdir -p %{_libdir}/wrt-plugins +mkdir -p /usr/etc/wrt/injected-javascript + +#update plugins +if [ -x /usr/bin/wrt-plugins-installer ] +then + /usr/bin/wrt-plugins-installer +else + echo "Cannot find executable: /usr/bin/wrt-plugins-installer!" +fi + +%files +%manifest wrt-plugins-common.manifest +/usr/etc/wrt-plugins/config.dtd +%{_libdir}/*.so +%{_libdir}/*.so.* +%{_libdir}/wrt-plugins/w3c-widget-interface/libwrt-plugins-w3c-widget-interface.so +%attr(755,root,root) %{_bindir}/wrt-popup-ace-runtime +%attr(755,root,root) %{_bindir}/wrt-popup-wrt-runtime +%attr(755,root,root) %{_bindir}/wrt-plugins-installer +%{_datadir}/license/%{name} +/etc/smack/accesses.d/wrt-popup-ace-runtime.rule +/etc/smack/accesses.d/wrt-popup-wrt-runtime.rule +%if %{with_tests} + %attr(755,root,root) %{_bindir}/widgetdb_tests_prepare_db.sh + %attr(755,root,root) %{_bindir}/wrt-plugins-common-tests-widgetdb + %attr(755,root,root) %{_bindir}/wrt-plugins-common-tests-Commons +%endif + +%files devel +%{_includedir}/* +%{_libdir}/pkgconfig/* |