%define __strip /bin/true Name: osp-image Summary: The Media Image library of OSP Version: 1.2.2.0 Release: 1 Group: TO_BE/FILLED_IN License: TO BE FILLED IN Source0: %{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(osp-appfw) BuildRequires: osp-appfw-internal-devel BuildRequires: pkgconfig(osp-image-core) BuildRequires: osp-image-core-internal-devel BuildRequires: pkgconfig(osp-uifw) BuildRequires: osp-uifw-internal-devel BuildRequires: pkgconfig(osp-net) BuildRequires: osp-net-internal-devel BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(libswscale) BuildRequires: pkgconfig(libwbxml2) # runtime requires Requires: osp-appfw Requires: osp-image-core Requires: osp-uifw Requires: osp-net Provides: libosp-image.so.1 Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description The Media Image library of OSP %package devel Summary: The Media Image library of OSP (Development) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description devel The Media Image library of OSP (DEV) %package internal-devel Summary: osp media image internel (Internal) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description internal-devel The Media Image library of OSP (Internal-DEV) %package debug Summary: The Media Image library of OSP (Development) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description debug The Media Image library of OSP (DEV) %prep %setup -q %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %ifarch %{ix86} 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 %else 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 %endif # Call make instruction with smp support make %{?jobs:-j%jobs} %install rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/license cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/usr/share/license/%{name} %make_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest osp-image.manifest /usr/share/license/%{name} %{_libdir}/osp/libosp-image.so* %files devel %{_includedir}/osp/*.h %{_libdir}/pkgconfig/osp-image.pc %files internal-devel %{_includedir}/osp/media/*.h %files debug %{_libdir}/osp/debug/*.so*