Clean spec file for Yocto compatibility 40/23840/3 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140930.171015 accepted/tizen/ivi/20141008.075208 submit/tizen_common/20140929.110645 submit/tizen_ivi/20141007.222222 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 3 Jul 2014 14:18:39 +0000 (16:18 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 26 Sep 2014 15:00:07 +0000 (17:00 +0200)
Change-Id: Ib1612ffb10f0f8735d6ebff9e271cfefde445cf4
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
packaging/libmm-common.spec

index d762123..674f1c0 100644 (file)
@@ -6,6 +6,7 @@ Group:      Multimedia/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 Source1001:     libmm-common.manifest
+BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(mm-log)
 
@@ -25,13 +26,13 @@ Multimedia Framework Common Library (devel) package.
 cp %{SOURCE1001} .
 
 %build
-CFLAGS="%{optflags} -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " %reconfigure
+
+CFLAGS="%{optflags} -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "
+%reconfigure
 %__make %{?_smp_mflags}
 
 %install
 %make_install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
 
 %post -p /sbin/ldconfig
 
@@ -41,7 +42,7 @@ cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libmmfcommon.so.*
-/usr/share/license/%{name}
+%license LICENSE.APLv2
 
 %files devel
 %manifest %{name}.manifest