blob: 96b4bf6da08bbdc4e6998957f4d7de763e50de8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
Name: org.tizen.TiltableImageViewer
Summary: TiltableImageViewer sample application
Version: 1.2.1.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-uifw)
BuildRequires: pkgconfig(osp-image)
BuildRequires: pkgconfig(osp-media)
BuildRequires: pkgconfig(osp-net)
BuildRequires: osp-appfw-internal-devel
%description
TiltableImageViewer sample application
%prep
%setup -q
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %{ix86}
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_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}
%make_install
%post -p /sbin/ldconfig
APP_ID=unm99y390y
echo "/usr/etc/package-manager/backend/oap -i /opt/apps/org.tizen."${APP_ID}
/usr/etc/package-manager/backend/oap -i /opt/apps/org.tizen.${APP_ID}
%postun -p /sbin/ldconfig
APP_ID=unm99y390y
echo "/usr/etc/package-manager/backend/oap -u "${APP_ID}
/usr/etc/package-manager/backend/oap -u ${APP_ID}
%files
%defattr(-,root,root,-)
/opt/apps/*
|