1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: The Media Image Core library of OSP
9 License: TO BE FILLED IN
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(chromium)
13 BuildRequires: pkgconfig(capi-media-image-util)
14 BuildRequires: pkgconfig(osp-appfw)
15 BuildRequires: osp-appfw-internal-devel
16 BuildRequires: pkgconfig(ecore)
17 BuildRequires: pkgconfig(libavcodec)
18 BuildRequires: pkgconfig(libavformat)
19 BuildRequires: pkgconfig(libavutil)
20 BuildRequires: pkgconfig(libswscale)
21 BuildRequires: pkgconfig(pango)
22 BuildRequires: pkgconfig(evas)
23 BuildRequires: pkgconfig(libpng)
24 BuildRequires: giflib-devel
25 BuildRequires: libjpeg-turbo-devel
26 BuildRequires: libtiff-devel
27 BuildRequires: libexif-devel
32 Provides: libosp-image-core.so.1
34 Requires(post): /sbin/ldconfig
35 Requires(postun): /sbin/ldconfig
38 The Media Image Core library of OSP
41 Summary: The Media Image Core library of OSP (Development)
42 Group: TO_BE/FILLED_IN
43 Requires: %{name} = %{version}-%{release}
46 The Media Image Core library of OSP (DEV)
48 %package internal-devel
49 Summary: osp media image core internel (Internal)
50 Group: TO_BE/FILLED_IN
51 Requires: %{name} = %{version}-%{release}
53 %description internal-devel
54 The Media Image Core library of OSP (Internal-DEV)
57 Summary: The Media Image Core library of OSP (Development)
58 Group: TO_BE/FILLED_IN
59 Requires: %{name} = %{version}-%{release}
62 The Media Image Core library of OSP (DEV)
68 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
70 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
72 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
75 # Call make instruction with smp support
80 mkdir -p %{buildroot}/usr/share/license
81 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/usr/share/license/%{name}
85 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %manifest osp-image-core.manifest
91 /usr/share/license/%{name}
92 %{_libdir}/osp/libosp-image-core.so*
95 %{_includedir}/osp/*.h
96 %{_libdir}/pkgconfig/osp-image-core.pc
99 %{_includedir}/osp/media/*.h
102 %{_libdir}/osp/debug/*.so*