diff options
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/osp-installer.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/packaging/osp-installer.spec b/packaging/osp-installer.spec new file mode 100755 index 0000000..b14781f --- /dev/null +++ b/packaging/osp-installer.spec @@ -0,0 +1,76 @@ +%define debug_package %{nil} +%define __strip /bin/true + +Name: osp-installer +Summary: osp application installer +Version: 1.3.0.0 +Release: 1 +Group: TO_BE/FILLED_IN +License: TO_BE/FILLED_IN +Source0: %{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: pkgconfig(pkgmgr) +BuildRequires: pkgconfig(pkgmgr-parser) +BuildRequires: pkgconfig(libwbxml2) +BuildRequires: pkgconfig(osp-foundation) +BuildRequires: osp-foundation-internal-devel + +# runtime requires +Requires: osp-foundation +Requires: osp-loader + +%description +osp application installer + +%package debug +Summary: osp application installer (Development) +Group: TO_BE/FILLED_IN +Requires: %{name} = %{version}-%{release} + +%description debug +osp application installer (DEV) + +%prep +%setup -q + +%build +%ifarch %{ix86} +CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +%else +CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +%endif + +# Call make instruction with smp support +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +%post +/bin/rm -f /etc/ld.so.cache +/sbin/ldconfig + +rm -f /usr/etc/package-manager/osp-rpm-uninstall.sh +rm -rf /opt/apps/org.tizen.aospd00043* +rm -rf /opt/apps/org.tizen.q7097a278m* +rm -rf /opt/apps/org.tizen.cp7ipabg4k* +rm -rf /opt/apps/org.tizen.57r43275q7* + +mkdir -p /usr/share/packages +mkdir -p /opt/share/packages +mkdir -p /opt/osp/system/data/package +chmod -R 705 /opt/osp/system/data/package +rm -rf /usr/etc/package-manager/backendlib/libtpk.so +ln -s /usr/lib/libosp-installer-plugin.so /usr/etc/package-manager/backendlib/libtpk.so +rm -rf /usr/etc/package-manager/backend/tpk +ln -s /usr/bin/osp-installer /usr/etc/package-manager/backend/tpk + +%postun -p /sbin/ldconfig + +%files +/usr/bin/* +/usr/lib/* + +%files debug +/usr/lib/osp/debug/*
\ No newline at end of file |