Name: libmedia-service
Summary: Media information service library for multimedia applications
-Version: 0.2.88
+Version: 0.5.1
Release: 0
Group: Multimedia/Libraries
-License: Apache-2.0 and public domain
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Source1001: libmedia-service.manifest
+Source1001: libmedia-service.manifest
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(sqlite3)
-BuildRequires: pkgconfig(db-util)
+BuildRequires: pkgconfig(icu-i18n)
+BuildRequires: pkgconfig(libzip)
+BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(mm-fileinfo)
-BuildRequires: pkgconfig(media-thumbnail)
BuildRequires: pkgconfig(libmedia-utils)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(libtzplatform-config)
-BuildRequires: pkgconfig(capi-media-image-util)
+BuildRequires: pkgconfig(mmutil-magick)
+BuildRequires: pkgconfig(media-thumbnail)
+BuildRequires: pkgconfig(libpodofo)
+BuildRequires: pkgconfig(iniparser)
+
+%if 0%{?gtests:1}
+BuildRequires: pkgconfig(gmock)
+%endif
%description
This package is a library that provides the media information service for the multimedia applications.
cp %{SOURCE1001} .
%build
-export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
-%cmake .
+export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" -DPATH_LIBDIR=\\\"%{_libdir}\\\""
+%cmake . -DBUILD_GTESTS=%{?gtests:1}%{!?gtests:0}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
-#License
-mkdir -p %{buildroot}/%{_datadir}/license
-cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%{_libdir}/libmedia-service.so
-%{_libdir}/libmedia-service.so.1
-%{_libdir}/libmedia-service.so.1.0.0
-%{_libdir}/libmedia-svc-hash.so
-%{_libdir}/libmedia-svc-hash.so.1
-%{_libdir}/libmedia-svc-hash.so.1.0.0
+%{_libdir}/libmedia-service.so.*
%{_libdir}/libmedia-content-plugin.so
-%{_libdir}/libmedia-content-plugin.so.1
-%{_libdir}/libmedia-content-plugin.so.1.0.0
-
+%{_libdir}/libmedia-content-plugin.so.*
+%{_libdir}/libmedia-ebook-plugin.so
+%if 0%{?gtests:1}
+%{_bindir}/gtest*
+%endif
#License
-%{_datadir}/license/%{name}
+%license LICENSE.APLv2.0
%files devel
%manifest %{name}.manifest
+%{_libdir}/libmedia-service.so
%{_libdir}/pkgconfig/libmedia-service.pc
%{_includedir}/media-service/*.h