License : change to unify license format 06/122606/1 submit/tizen_base/20170403.052418
authorlokilee73 <changjoo.lee@samsung.com>
Mon, 3 Apr 2017 04:59:03 +0000 (13:59 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Mon, 3 Apr 2017 05:07:37 +0000 (14:07 +0900)
change license format from old to new, %license LICENSE

Change-Id: I099eae322840e41f84f83e97fd1b4a04f85ba26f
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
packaging/shadow-utils.spec

index 40ae3ed..2d7121d 100755 (executable)
@@ -121,20 +121,18 @@ rm %{buildroot}/%{_sbindir}/vipw
 
 %remove_docs
 
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
 for keyword in LICENSE COPYING COPYRIGHT COPYING.GPL-v2.0+;
 do
        for file in `find %{_builddir} -name $keyword`;
        do
-               cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
-               cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name}-adm;
+               cat $file >> LICENSE;
                echo "";
        done;
 done
 
 %files
 %manifest %{name}.manifest
-%{_datadir}/license/%{name}
+%license LICENSE
 %dir %{_sysconfdir}/default
 %attr(0600,root,root)   %config(noreplace) %{_sysconfdir}/default/useradd
 %attr(0644,root,root)   %config(noreplace) %{_sysconfdir}/login.defs
@@ -157,7 +155,7 @@ done
 %exclude %{_sbindir}/nologin
 
 %files -n %{name}-adm
-%{_datadir}/license/%{name}-adm
+%license LICENSE
 /bin/su
 %{_bindir}/chage
 %{_bindir}/gpasswd