Fixes to rpmlint and license related issues
[platform/upstream/lsb.git] / packaging / lsb.spec
index dc331f9..67a6ca9 100644 (file)
@@ -4,8 +4,9 @@ Name:       lsb
 Summary:    LSB support for SLP
 Version:    3.2
 Release:    3
-Group:      System/Base
-License:    GPLv2
+Group:      Base/Utilities
+BuildArch:  noarch
+License:    BSD-3-Clause
 Source0:    %{name}-%{version}.tar.gz
 Source1001:    %{name}.manifest
 Source1002:     %{name}
@@ -19,17 +20,15 @@ Linux Standard Base 3.2
 
 %build
 cp %{SOURCE1001} .
+cp %{SOURCE1002} .
 
 %install
 rm -rf %{buildroot}
 install -d %{buildroot}/lib/lsb
 cp -p init-functions %{buildroot}/lib/lsb
 
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
-cp %{SOURCE1002} $RPM_BUILD_ROOT%{_datadir}/license
-
 %files
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
-%{_datadir}/license/%{name}
+%license lsb
 /lib/lsb/init-functions