Name: capi-messaging-messages Summary: A SMS/MMS library in Tizen Native API Version: 0.1.0 Release: 3 License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1001: packaging/capi-messaging-messages.manifest BuildRequires: cmake BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(msg-service) BuildRequires: pkgconfig(capi-base-common) Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description %package devel Summary: A SMS/MMS library in Tizen Native API (Development) Requires: %{name} = %{version}-%{release} Requires: pkgconfig(msg-service) Requires: pkgconfig(capi-base-common) %description devel %prep %setup -q %build cp %{SOURCE1001} . 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 %manifest capi-messaging-messages.manifest %{_libdir}/libcapi-messaging-messages.so.* %files devel %manifest capi-messaging-messages.manifest %{_includedir}/messaging/*.h %{_libdir}/pkgconfig/*.pc %{_libdir}/libcapi-messaging-messages.so