Update spec file sandbox/durandba1/app_installer_integration accepted/tizen/common/20150115.110008 accepted/tizen/ivi/20150116.081901 submit/tizen_common/20150114.104058 submit/tizen_ivi/20150116.053700 submit/tizen_mobile/20150116.000001 submit/tizen_mobile/20150116.000003 submit/tizen_tv/20150116.000000 submit/tizen_tv/20150119.000000 submit/tizen_tv/20150119.000001 submit/tizen_wearable/20150116.000000
authorBaptiste DURAND <baptiste.durand@gmail.com>
Tue, 13 Jan 2015 09:24:31 +0000 (10:24 +0100)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Wed, 14 Jan 2015 10:38:00 +0000 (11:38 +0100)
Change-Id: I2c1f897596b19cc943ff12b8edb54efa0d3b9b88
Signed-off-by: Baptiste DURAND <baptiste.durand@gmail.com>
packaging/crosswalk-bin.spec

index 71e6f4f..4a8852a 100644 (file)
@@ -119,6 +119,21 @@ BuildRequires:  crosswalk-thirdparty
 %description
 Crosswalk is an app runtime based on Chromium. It is an open source project started by the Intel Open Source Technology Center (http://www.01.org).
 
+%package -n widget-manifest-parser
+Summary:        Widget manifest parser library
+Requires:       %{name} = %{version}
+
+%description -n widget-manifest-parser
+A library parsing widget configuration
+
+%package -n widget-manifest-parser-devel
+Summary:        Widget manifest parser library header
+Requires:       %{name} = %{version}
+Requires:       widget-manifest-parser = %{version}
+
+%description -n widget-manifest-parser-devel
+A header for library parsing widget configuration
+
 %define _manifestdir %TZ_SYS_RO_PACKAGES
 %define _manifestdir_ro %TZ_SYS_RO_PACKAGES
 %define _desktop_icondir %TZ_SYS_RW_ICONS/default/small
@@ -139,6 +154,10 @@ sed "s/@VERSION@/%{version}/g" %{name}.xml.in > %{name}.xml
 sed "s|@LIB_INSTALL_DIR@|%{_libdir}|g" xwalk.in > xwalk
 sed "s|@LIB_INSTALL_DIR@|%{_libdir}|g" xwalk.service.in > xwalk.service
 
+# Widget manifest parser devel
+cp src/xwalk/tizen/widget-manifest-parser/widget-manifest-parser.pc.in .
+sed "s|@VERSION@|%{version}|g" widget-manifest-parser.pc.in > widget-manifest-parser.pc
+
 cp -a src/AUTHORS AUTHORS.chromium
 cp -a src/LICENSE LICENSE.chromium
 cp -a src/xwalk/LICENSE LICENSE.xwalk
@@ -253,7 +272,7 @@ ${GYP_EXTRA_FLAGS} \
 -Dwerror= \
 -Dskia_warnings_as_errors=0
 
-ninja %{?_smp_mflags} -C src/out/Release xwalk xwalk_launcher xwalk_application_tools
+ninja %{?_smp_mflags} -C src/out/Release xwalk xwalk_launcher xwalk_application_tools widget-manifest-parser
 
 %install
 # Binaries.
@@ -283,8 +302,15 @@ install -m 0664 -p -D src/out/Release/pnacl/* %{buildroot}%{_libdir}/xwalk/pnacl
 %endif
 
 # Register xwalk to the package manager.
-install -p -D %{name}.xml %{buildroot}%{_manifestdir}/%{name}.xml
-install -p -D %{name}.png %{buildroot}%{_desktop_icondir}/%{name}.png
+install -m 0644 -p -D %{name}.xml %{buildroot}%{_manifestdir}/%{name}.xml
+install -m 0644 -p -D %{name}.png %{buildroot}%{_desktop_icondir}/%{name}.png
+
+# Widget manifest parser devel
+install -m 0664 -p -D src/xwalk/tizen/widget-manifest-parser/widget-manifest-parser.h %{buildroot}%{_includedir}/widget-manifest-parser/widget-manifest-parser.h
+install -m 0664 -p -D widget-manifest-parser.pc %{buildroot}%{_libdir}/pkgconfig/widget-manifest-parser.pc
+
+# Widget manifest parser
+install -m 0755 -p -D src/out/Release/lib/libwidget-manifest-parser.so %{buildroot}%{_libdir}/libwidget-manifest-parser.so
 
 %post
 mkdir -p %{_desktop_icondir_ro}
@@ -327,3 +353,10 @@ fi
 %{_dbusservicedir}/org.crosswalkproject.Runtime1.service
 %{_systemduserservicedir}/xwalk.service
 %{_datadir}/xwalk/*
+
+%files -n widget-manifest-parser
+%{_libdir}/libwidget-manifest-parser.so
+
+%files -n widget-manifest-parser-devel
+%{_includedir}/widget-manifest-parser/widget-manifest-parser.h
+%{_libdir}/pkgconfig/widget-manifest-parser.pc