1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: The Media Image library of OSP
9 License: TO BE FILLED IN
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(libcurl)
13 BuildRequires: pkgconfig(osp-appfw)
14 BuildRequires: osp-appfw-internal-devel
15 BuildRequires: pkgconfig(osp-image-core)
16 BuildRequires: osp-image-core-internal-devel
17 BuildRequires: pkgconfig(osp-uifw)
18 BuildRequires: osp-uifw-internal-devel
19 BuildRequires: pkgconfig(osp-net)
20 BuildRequires: osp-net-internal-devel
21 BuildRequires: pkgconfig(openssl)
22 BuildRequires: pkgconfig(glib-2.0)
23 BuildRequires: pkgconfig(libavcodec)
24 BuildRequires: pkgconfig(libavformat)
25 BuildRequires: pkgconfig(libavutil)
26 BuildRequires: pkgconfig(libswscale)
27 BuildRequires: pkgconfig(libwbxml2)
31 Requires: osp-image-core
35 Provides: libosp-image.so.1
37 Requires(post): /sbin/ldconfig
38 Requires(postun): /sbin/ldconfig
41 The Media Image library of OSP
44 Summary: The Media Image library of OSP (Development)
45 Group: TO_BE/FILLED_IN
46 Requires: %{name} = %{version}-%{release}
49 The Media Image library of OSP (DEV)
51 %package internal-devel
52 Summary: osp media image internel (Internal)
53 Group: TO_BE/FILLED_IN
54 Requires: %{name} = %{version}-%{release}
56 %description internal-devel
57 The Media Image library of OSP (Internal-DEV)
60 Summary: The Media Image library of OSP (Development)
61 Group: TO_BE/FILLED_IN
62 Requires: %{name} = %{version}-%{release}
65 The Media Image library of OSP (DEV)
71 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
73 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86
75 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} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm
78 # Call make instruction with smp support
83 mkdir -p %{buildroot}/usr/share/license
84 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/usr/share/license/%{name}
88 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %manifest osp-image.manifest
94 /usr/share/license/%{name}
95 %{_libdir}/osp/libosp-image.so*
98 %{_includedir}/osp/*.h
99 %{_libdir}/pkgconfig/osp-image.pc
101 %files internal-devel
102 %{_includedir}/osp/media/*.h
105 %{_libdir}/osp/debug/*.so*