Name: capi-content-media-content Summary: A Media content library in SLP C API Version: 0.2.13 Release: 1 Group: System/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(capi-base-common) BuildRequires: pkgconfig(libmedia-service) BuildRequires: pkgconfig(libmedia-utils) Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description %package devel Summary: A Media content library in SLP C API (Development) Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel %prep %setup -q %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_libdir}/libcapi-content-media-content.so.* %files devel %{_includedir}/media-content/*.h %{_libdir}/pkgconfig/*.pc %{_libdir}/libcapi-content-media-content.so