From 4383609dbe3f4b43240030d392bb1b81aef22b0f Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Fri, 11 Jul 2014 10:57:08 +0200 Subject: [PATCH] clean spec file for yocto compliance. Change-Id: I2a2cbdc570a2678b532699473007aa3f4f94d26b Signed-off-by: Ronan Le Martret --- packaging/capi-appfw-application.spec | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/packaging/capi-appfw-application.spec b/packaging/capi-appfw-application.spec index 14b043c..8968348 100755 --- a/packaging/capi-appfw-application.spec +++ b/packaging/capi-appfw-application.spec @@ -1,11 +1,11 @@ Name: capi-appfw-application Summary: An Application library in SLP C API Version: 0.1.0 -Release: 55 -Group: API +Release: 0 +Group: System/API License: Apache-2.0 Source0: %{name}-%{version}.tar.gz -Source1001: capi-appfw-application.manifest +Source1001: capi-appfw-application.manifest BuildRequires: cmake BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(bundle) @@ -21,18 +21,16 @@ BuildRequires: pkgconfig(capi-base-common) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(libtzplatform-config) - - %description -An Application library in SLP C API +An Application library in SLP C API package. %package devel Summary: An Application library in SLP C API (Development) -Group: API +Group: System/API Requires: %{name} = %{version}-%{release} %description devel -An Application library in SLP C API (DEV) +An Application library in SLP C API (Development) package. %prep %setup -q @@ -41,33 +39,25 @@ cp %{SOURCE1001} . %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} - - -make %{?jobs:-j%jobs} +%__make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install - -mkdir -p %{buildroot}/usr/share/license -cp LICENSE %{buildroot}/usr/share/license/%{name} +mkdir -p %{buildroot}%{_datadir}/license +cp LICENSE %{buildroot}%{_datadir}/license/%{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig - %files %manifest %{name}.manifest %{_libdir}/libcapi-appfw-application.so.* -%manifest capi-appfw-application.manifest -/usr/share/license/%{name} +%{_datadir}/license/%{name} %files devel %manifest %{name}.manifest %{_includedir}/appfw/*.h %{_libdir}/pkgconfig/*.pc %{_libdir}/libcapi-appfw-application.so - - - -- 2.7.4