Sync with private master branch. submit/tizen_2.2/20130710.065819
authorwalyong.cho <walyong.cho@samsung.com>
Mon, 6 May 2013 05:03:43 +0000 (14:03 +0900)
committerwalyong.cho <walyong.cho@samsung.com>
Mon, 6 May 2013 05:05:01 +0000 (14:05 +0900)
license manifest applied.

Change-Id: I57c0b8e11198c29b202fae513ab6f2d4d663a278

packaging/losetup-2.20.1.patch
packaging/util-linux.spec

index ba912b6..45faaca 100644 (file)
@@ -156,7 +156,7 @@ diff -Naur util-linux/mount/lomount.c util-linux-new/mount/lomount.c
 +
 +
  /*
-  * return codes:
+  *  return codes:
   *    0       - success
 @@ -1029,6 +1179,7 @@
          " -o, --offset <num>      start at offset <num> into file\n"
index b1a2140..15dd490 100644 (file)
@@ -1,6 +1,6 @@
 Name:           util-linux
 Version:        2.20.2
-Release:        1
+Release:        4
 License:        GPLv2 and GPLv2+ and BSD with advertising and Public Domain
 Summary:        A collection of basic system utilities
 Url:            http://www.kernel.org/pub/linux/utils/util-linux/
@@ -181,6 +181,15 @@ find  %{buildroot}%{_mandir}/man8 -regextype posix-egrep  \
 
 rm -f %{buildroot}%{_infodir}/dir
 
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
+for keyword in LICENSE COPYING COPYRIGHT;
+do
+       for file in `find %{_builddir} -name $keyword`;
+       do
+               cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
+               echo "";
+       done;
+done
 
 %post
 # only for minimal buildroots without /var/log
@@ -207,6 +216,7 @@ rm -f %{buildroot}%{_infodir}/dir
 %files  -f util-linux.files
 %manifest util-linux.manifest
 %defattr(-,root,root)
+%{_datadir}/license/%{name}
 %ghost %attr(0644,root,root)    %verify(not md5 size mtime)     %{_localstatedir}/log/lastlog
 /etc/pam.d/remote
 #/etc/pam.d/login
@@ -323,4 +333,3 @@ rm -f %{buildroot}%{_infodir}/dir
 %{_includedir}/libmount/libmount.h
 %{_prefix}/lib/libmount.so
 %{_prefix}/lib/pkgconfig/mount.pc
-