X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Ftel-plugin-indicator.spec;h=aedf11fe9ba7fdfaed4895f91a5945ae9554b658;hb=8660084fae65f185ba30b676adcc3d0e4cd0e1fa;hp=6e5edd5605bbff21f5296aaea61c67c12980e418;hpb=f4d6453e4e31813f0736a96bf8f795336a91ce3b;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-indicator.git diff --git a/packaging/tel-plugin-indicator.spec b/packaging/tel-plugin-indicator.spec index 6e5edd5..aedf11f 100644 --- a/packaging/tel-plugin-indicator.spec +++ b/packaging/tel-plugin-indicator.spec @@ -1,30 +1,38 @@ -Name: tel-plugin-indicator -Summary: Telephony Indicator plugin -Version: 0.1.7 -Release: 2 -Group: System/Libraries -License: Apache -Source0: tel-plugin-indicator-%{version}.tar.gz -Source1001: tel-plugin-indicator.manifest -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig +%define major 0 +%define minor 1 +%define patchlevel 70 + +Name: tel-plugin-indicator +Version: %{major}.%{minor}.%{patchlevel} +Release: 5 +License: Apache-2.0 +Summary: Telephony Indicator plugin +Group: System/Libraries +Source0: tel-plugin-indicator-%{version}.tar.gz + BuildRequires: cmake +BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(tcore) -BuildRequires: pkgconfig(dlog) +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig %description Telephony Indicator plugin %prep %setup -q -cp %{SOURCE1001} . %build -%cmake . -make %{?jobs:-j%jobs} +versionint=$[%{major} * 1000000 + %{minor} * 1000 + %{patchlevel}] + +%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DLIB_INSTALL_DIR=%{_libdir} \ + -DVERSION=$versionint \ + +make %{?_smp_mflags} -%post +%post /sbin/ldconfig %postun -p /sbin/ldconfig @@ -32,9 +40,10 @@ make %{?jobs:-j%jobs} %install %make_install mkdir -p %{buildroot}/usr/share/license +cp LICENSE %{buildroot}/usr/share/license/%{name} %files -%manifest %{name}.manifest -%defattr(-,root,root,-) +%manifest tel-plugin-indicator.manifest +%defattr(644,root,root,-) %{_libdir}/telephony/plugins/indicator-plugin* -/usr/share/license/tel-plugin-indicator +/usr/share/license/%{name}