Name: libmedia-service
-Summary: Media information service library for multimedia applications.
-Version: 0.2.39
-Release: 1
-Group: System/Libraries
-License: Apache License, Version 2.0
+Summary: Media information service library for multimedia applications
+Version: 0.2.88
+Release: 0
+Group: Multimedia/Libraries
+License: Apache-2.0 and public domain
Source0: %{name}-%{version}.tar.gz
+Source1001: libmedia-service.manifest
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(libexif)
-BuildRequires: pkgconfig(mm-common)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(mm-fileinfo)
BuildRequires: pkgconfig(media-thumbnail)
-BuildRequires: pkgconfig(drm-client)
BuildRequires: pkgconfig(libmedia-utils)
+BuildRequires: pkgconfig(uuid)
+BuildRequires: pkgconfig(libtzplatform-config)
+BuildRequires: pkgconfig(capi-media-image-util)
%description
-Media information service library for multimedia applications.
+This package is a library that provides the media information service for the multimedia applications.
%package devel
Summary: Media information service library for multimedia applications. (development)
-Group: Development/Libraries
+Group: Multimedia/Development
Requires: %{name} = %{version}-%{release}
%description devel
-Media information service library for multimedia applications. (development files)
-
+This package is a library that provides the media information service for the multimedia applications. (Development files included)
%prep
-%setup -q
-
+%setup -q
+cp %{SOURCE1001} .
%build
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
+%cmake .
make %{?jobs:-j%jobs}
%install
#License
mkdir -p %{buildroot}/%{_datadir}/license
-cp -rf %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/%{_datadir}/license/%{name}
+cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
-%manifest libmedia-service.manifest
+%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/libmedia-service.so
%{_libdir}/libmedia-service.so.1
%{_libdir}/libmedia-content-plugin.so
%{_libdir}/libmedia-content-plugin.so.1
%{_libdir}/libmedia-content-plugin.so.1.0.0
+
#License
%{_datadir}/license/%{name}
%files devel
+%manifest %{name}.manifest
%{_libdir}/pkgconfig/libmedia-service.pc
%{_includedir}/media-service/*.h