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(glib-2.0)
15 BuildRequires: pkgconfig(capi-content-media-content)
16 BuildRequires: pkgconfig(capi-media-metadata-extractor)
17 BuildRequires: pkgconfig(capi-content-mime-type)
18 BuildRequires: pkgconfig(capi-web-url-download)
19 BuildRequires: pkgconfig(osp-appfw)
20 BuildRequires: osp-appfw-internal-devel
21 BuildRequires: pkgconfig(osp-net)
22 BuildRequires: osp-net-internal-devel
23 BuildRequires: pkgconfig(osp-uifw)
24 BuildRequires: osp-uifw-internal-devel
25 BuildRequires: pkgconfig(osp-media)
26 BuildRequires: osp-media-internal-devel
27 BuildRequires: pkgconfig(osp-image-core)
28 BuildRequires: osp-image-core-internal-devel
29 BuildRequires: pkgconfig(osp-image)
30 BuildRequires: osp-image-internal-devel
31 BuildRequires: pkgconfig(osp-locations)
32 BuildRequires: libexif-devel
33 BuildRequires: libcurl-devel
34 BuildRequires: openssl-devel
42 Requires: osp-locations
43 Requires: capi-web-url-download
45 Requires(post): /sbin/ldconfig
46 Requires(post): coreutils
47 Requires(postun): /sbin/ldconfig
53 Summary: osp content library (Development)
54 Group: TO_BE/FILLED_IN
55 Requires: %{name} = %{version}-%{release}
56 Requires: osp-appfw-devel
57 Requires: osp-uifw-devel
58 Requires: osp-image-core-devel
59 Requires: osp-image-devel
60 Requires: osp-locations-devel
61 Requires: osp-net-devel
64 osp content library (DEV)
66 %package internal-devel
67 Summary: osp content library (Internal)
68 Group: TO_BE/FILLED_IN
69 Requires: %{name} = %{version}-%{release}
71 %description internal-devel
72 osp content library (Internal-DEV)
75 Summary: osp content library (Development)
76 Group: TO_BE/FILLED_IN
77 Requires: %{name} = %{version}-%{release}
80 osp content library (DEV)
86 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
88 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
90 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}
93 # Call make instruction with smp support
98 mkdir -p %{buildroot}/usr/share/license
99 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
103 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
108 %manifest osp-content.manifest
109 /usr/share/license/%{name}
113 %{_includedir}/osp/*.h
114 %{_libdir}/pkgconfig/osp-content.pc
116 %files internal-devel
117 %{_includedir}/osp/content/*.h
120 %{_libdir}/osp/debug/*.so*