1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: osp content library
8 Group: System/Libraries
9 License: Apache License, Version 2.0
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(alarm-service)
13 BuildRequires: pkgconfig(chromium)
14 BuildRequires: pkgconfig(aul)
15 BuildRequires: pkgconfig(glib-2.0)
16 BuildRequires: pkgconfig(capi-content-media-content)
17 BuildRequires: pkgconfig(capi-media-metadata-extractor)
18 BuildRequires: pkgconfig(capi-content-mime-type)
19 BuildRequires: pkgconfig(capi-web-url-download)
20 BuildRequires: pkgconfig(osp-appfw)
21 BuildRequires: osp-appfw-internal-devel
22 BuildRequires: pkgconfig(osp-net)
23 BuildRequires: osp-net-internal-devel
24 BuildRequires: pkgconfig(osp-uifw)
25 BuildRequires: osp-uifw-internal-devel
26 BuildRequires: pkgconfig(osp-media)
27 BuildRequires: osp-media-internal-devel
28 BuildRequires: pkgconfig(osp-image-core)
29 BuildRequires: osp-image-core-internal-devel
30 BuildRequires: pkgconfig(osp-image)
31 BuildRequires: osp-image-internal-devel
32 BuildRequires: pkgconfig(osp-locations)
33 BuildRequires: libexif-devel
34 BuildRequires: libcurl-devel
35 BuildRequires: openssl-devel
43 Requires: osp-locations
44 Requires: capi-web-url-download
46 Requires(post): /sbin/ldconfig
47 Requires(post): coreutils
48 Requires(postun): /sbin/ldconfig
54 Summary: osp content library (Development)
55 Group: TO_BE/FILLED_IN
56 Requires: %{name} = %{version}-%{release}
57 Requires: osp-appfw-devel
58 Requires: osp-uifw-devel
59 Requires: osp-image-core-devel
60 Requires: osp-image-devel
61 Requires: osp-locations-devel
62 Requires: osp-net-devel
65 osp content library (DEV)
67 %package internal-devel
68 Summary: osp content library (Internal)
69 Group: TO_BE/FILLED_IN
70 Requires: %{name} = %{version}-%{release}
72 %description internal-devel
73 osp content library (Internal-DEV)
76 Summary: osp content library (Development)
77 Group: TO_BE/FILLED_IN
78 Requires: %{name} = %{version}-%{release}
81 osp content library (DEV)
87 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
90 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
92 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
95 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 -funwind-tables -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
98 # Call make instruction with smp support
103 mkdir -p %{buildroot}/usr/share/license
104 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
108 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
113 %manifest osp-content.manifest
114 /usr/share/license/%{name}
118 %{_includedir}/osp/*.h
119 %{_libdir}/pkgconfig/osp-content.pc
121 %files internal-devel
122 %{_includedir}/osp/content/*.h
125 %{_libdir}/osp/debug/*.so*