Name: libmedia-service
Summary: Media information service library for multimedia applications
-Version: 0.3.7
+Version: 0.3.31
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0 and PD
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(sqlite3)
-BuildRequires: pkgconfig(db-util)
+BuildRequires: pkgconfig(icu-i18n)
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(capi-system-info)
+BuildRequires: pkgconfig(mmutil-magick)
+%if 0%{?gtests:1}
+BuildRequires: pkgconfig(gmock)
+%endif
%description
This package is a library that provides the media information service for the multimedia applications.
%build
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
-%cmake .
+%cmake . -DBUILD_GTESTS=%{?gtests:1}%{!?gtests:0}
make %{?jobs:-j%jobs}
%install
%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-svc-hash.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.*
+%if 0%{?gtests:1}
+%{_bindir}/gtest*
+%endif
#License
%license LICENSE.APLv2.0
%files devel
%manifest %{name}.manifest
+%{_libdir}/libmedia-service.so
+%{_libdir}/libmedia-svc-hash.so
%{_libdir}/pkgconfig/libmedia-service.pc
%{_includedir}/media-service/*.h