From 649170a39d1921bb38a4c455e733c215b7fdf959 Mon Sep 17 00:00:00 2001 From: Corentin Lecouvey Date: Fri, 10 Jan 2014 14:49:18 +0100 Subject: [PATCH] clean up spec file Fix rpmlint errors and warning in : - using spdx license naming convention - using %license and %config macros Change-Id: Idafcb4c3693326e97552d1415072b3cb10e10fa1 Signed-off-by: Corentin Lecouvey --- packaging/model-config-ivi.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packaging/model-config-ivi.spec b/packaging/model-config-ivi.spec index 9e49ffe..60c0be7 100644 --- a/packaging/model-config-ivi.spec +++ b/packaging/model-config-ivi.spec @@ -3,7 +3,7 @@ Summary: A Model configuration Version: 0.0.1 Release: 0 Group: Automotive/Configuration -License: Apache License, Version 2.0 +License: Apache-2.0 BuildArch: noarch Source0: %{name}-%{version}.tar.gz @@ -16,13 +16,10 @@ Model configuration data package %build %install -rm -rf %{buildroot} mkdir -p %{buildroot}/etc/config cp -f model-config.xml %{buildroot}/etc/config/model-config.xml -mkdir -p %{buildroot}/usr/share/license -cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name} %files -/usr/share/license/%{name} -/etc/config/model-config.xml %manifest model-config.manifest +%license LICENSE.APLv2 +%config /etc/config/model-config.xml -- 2.7.4