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}
58 osp content library (DEV)
60 %package internal-devel
61 Summary: osp content library (Internal)
62 Group: TO_BE/FILLED_IN
63 Requires: %{name} = %{version}-%{release}
65 %description internal-devel
66 osp content library (Internal-DEV)
69 Summary: osp content library (Development)
70 Group: TO_BE/FILLED_IN
71 Requires: %{name} = %{version}-%{release}
74 osp content library (DEV)
80 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
82 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
84 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_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
87 # Call make instruction with smp support
92 mkdir -p %{buildroot}/usr/share/license
93 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
97 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %manifest osp-content.manifest
103 /usr/share/license/%{name}
107 %{_includedir}/osp/*.h
108 %{_libdir}/pkgconfig/osp-content.pc
110 %files internal-devel
111 %{_includedir}/osp/content/*.h
114 %{_libdir}/osp/debug/*.so*