Name: apps.Gallery Summary: Gallery application Version: 1.0.0 Release: 1 Group: TO_BE/FILLED_IN License: TO BE FILLED IN Source0: %{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: pkgconfig(osp-appfw) BuildRequires: pkgconfig(osp-content) BuildRequires: pkgconfig(osp-image) BuildRequires: pkgconfig(osp-image-core) BuildRequires: pkgconfig(osp-locations) BuildRequires: pkgconfig(osp-media) BuildRequires: pkgconfig(osp-net) BuildRequires: pkgconfig(osp-uifw) BuildRequires: osp-appfw-internal-devel BuildRequires: osp-image-internal-devel BuildRequires: osp-media-internal-devel BuildRequires: osp-net-internal-devel BuildRequires: osp-uifw-internal-devel BuildRequires: hash-signer Requires: osp-installer %description Verification application: Gallery %prep %setup -q %build 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 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %endif # Call make instruction with smp support make %{?jobs:-j%jobs} %install rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/license cp LICENSE.Flora %{buildroot}/usr/share/license/%{name} %make_install ###### for package signing step ###### PKG_ID=ijudt7w61q %define tizen_sign 1 %define tizen_sign_base /usr/apps/${PKG_ID} %define tizen_sign_level platform %define tizen_author_sign 1 %define tizen_dist_sign 1 %post /sbin/ldconfig PKG_ID=ijudt7w61q echo "/usr/etc/package-manager/backend/tpk -i /usr/apps/"${PKG_ID} /usr/etc/package-manager/backend/tpk -i /usr/apps/${PKG_ID} cp -f /usr/lib/osp/osp-ui-app-loader /usr/apps/${PKG_ID}/bin/Gallery %postun /sbin/ldconfig PKG_ID=ijudt7w61q echo "/usr/etc/package-manager/backend/tpk -u "${PKG_ID} /usr/etc/package-manager/backend/tpk -u ${PKG_ID} %files %defattr(-,root,root,-) /usr/apps/* /usr/share/license/%{name}