X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fwgt-backend.spec;h=b83cc9a5d666125341c61afc26b83d976b00bb36;hb=refs%2Fheads%2Faccepted%2Ftizen_unified_x;hp=e0a3a76102045700a3a98ded6b9b8595d022fc54;hpb=f5fc65127fb15f77c4e2a55031509ec0e7bd9087;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index e0a3a76..b55abf4 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -1,17 +1,17 @@ Name: wgt-backend Summary: Application installer backend for WGT -Version: 0.12.3 +Version: 0.15.39 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1000: wgt-backend.manifest -Source1001: wgt-backend-tests.manifest +Source1001: wgt-installer.manifest +Source1002: wgt-installer-tests.manifest -BuildRequires: boost-devel +Requires: wgt-installer = %{version} BuildRequires: cmake -BuildRequires: gtest-devel BuildRequires: app-installers-tests BuildRequires: pkgconfig(app-installers) BuildRequires: pkgconfig(manifest-parser) @@ -22,25 +22,48 @@ BuildRequires: pkgconfig(libwebappenc) BuildRequires: pkgconfig(tpk-installer) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(libgum) +BuildRequires: pkgconfig(gmock) %description This is a package that installs the WGT backend of pkgmgr. -%package tests -Summary: Unit tests for wgt-backend -Requires: %{name} = %{version} +%package -n wgt-installer +Summary: Wgt-installer library +Group: Application Framework/Package Management -%description tests -Unit tests for wgt-backend +%description -n wgt-installer +This package contains wgt-installer library + +%package -n wgt-installer-devel +Summary: Wgt-installer development files +Group: Application Framework/Package Management +Requires: wgt-installer = %{version} + +%description -n wgt-installer-devel +This package contains header files of wgt-installer library + +%package -n wgt-installer-tests +Summary: Unit tests for wgt-installer +Requires: wgt-installer = %{version} + +%description -n wgt-installer-tests +Unit tests for wgt-installer %prep %setup -q cp %{SOURCE1000} . cp %{SOURCE1001} . +cp %{SOURCE1002} . %build -%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} +%ifnarch x86_64 aarch64 +ISARC64=0 +%else +ISARC64=1 +%endif +%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \ + -DISARC64=${ISARC64} make %{?_smp_mflags} %install @@ -48,22 +71,41 @@ make %{?_smp_mflags} mkdir -p %{buildroot}/etc/package-manager/backend ln -s %{_bindir}/wgt-backend %{buildroot}%{_sysconfdir}/package-manager/backend/wgt -%post tests -/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner=eip %{_bindir}/wgt-backend-ut/smoke-test -/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner=eip %{_bindir}/wgt-backend-ut/smoke-test-helper +%post -n wgt-installer-tests +/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/smoke-test +/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/smoke-test-helper +/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/hybrid-smoke-test-helper +/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/extensive-smoke-test %files %manifest wgt-backend.manifest %license LICENSE %{_sysconfdir}/package-manager/backend/wgt -%{_sysconfdir}/package-manager/backendlib/libwgt.so %{_bindir}/wgt-backend %{_datadir}/wgt-backend/default.png -%files tests -%manifest wgt-backend-tests.manifest -%{_bindir}/wgt-backend-ut/* -%{_datadir}/wgt-backend-ut/* +%files -n wgt-installer +%manifest wgt-installer.manifest +%{_sysconfdir}/package-manager/backendlib/libwgt.so +%{_libdir}/libwgt-installer.so* +%{_libdir}/libhybrid-installer.so* + +%files -n wgt-installer-devel +%{_includedir}/app-installers/wgt/*.h +%{_includedir}/app-installers/wgt/*/*.h +%{_includedir}/app-installers/wgt/*/*/*.h +%{_includedir}/app-installers/hybrid/*.h +%{_includedir}/app-installers/hybrid/*/*/*.h +%{_libdir}/pkgconfig/wgt-installer.pc + +%files -n wgt-installer-tests +%manifest wgt-installer-tests.manifest +%{_bindir}/wgt-installer-ut/* +%ifnarch x86_64 aarch64 +%{_datadir}/wgt-installer-ut/* +%endif +%{_libdir}/libwgt-smoke-utils.so* +%{_includedir}/app-installers/smoke_tests/wgt_smoke_utils.h %changelog * Thu Dec 18 2015 Pawel Sikorski 0.1-1