summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-09 02:35:26 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-09 02:35:26 +0900
commitb90214e2d8f33ee9742ec7abad869d13bd01ecf7 (patch)
tree9c5825b7b20b31e1893cde290f124dcae0472ada
parente2b7173175e5642ae804dc03db6ba990b59816e5 (diff)
downloadtar-tizen_2.3.1_release.tar.gz
tar-tizen_2.3.1_release.tar.bz2
tar-tizen_2.3.1_release.zip
-rw-r--r--packaging/tar.changes49
-rw-r--r--packaging/tar.manifest9
-rwxr-xr-x[-rw-r--r--]packaging/tar.spec31
3 files changed, 25 insertions, 64 deletions
diff --git a/packaging/tar.changes b/packaging/tar.changes
deleted file mode 100644
index 6311e34..0000000
--- a/packaging/tar.changes
+++ /dev/null
@@ -1,49 +0,0 @@
-* Sun Jun 05 2011 Anas Nashif <anas.nashif@intel.com> - 1.17
-- Do not exclude files, just kill them
-- Split docs/locale
-
-* Fri Apr 8 2011 Yan Li <yan.i.li@intel.com> - 1.17
-- BMC#6647: CVE-2010-0624 Heap-based buffer overflow in the rmt_read__
- function allows remote rmt servers to cause a denialof service
- (memory corruption) or possibly execute arbitrary code
- (BMC6647-CVE-2010-0624.patch)
-- BMC#6661: CVE-2007-4476 Buffer overflow in the safer_name_suffix to
- cause DoS (BMC6661-CVE-2007-4476.patch)
-
-* Wed Dec 29 2010 Yan Li <yan.i.li@intel.com> - 1.17
-- Reverted to version 1.17 (BMC#11589)
-
-* Thu Mar 18 2010 Austin Zhang <austin.zhang@intel.com> - 1.23
-- Updated for CVE-2010-0624 fixing [MB#10239]
-
-* Sat Feb 27 2010 Anas Nashif <anas.nashif@intel.com> - 1.22
-- Updated with latest spectacle
-- Include YAML file in source rpm
-
-* Tue Jan 12 2010 Anas Nashif <anas.nashif@intel.com> - 1.22
-- Save 300K removing ChangeLog file
-
-* Thu Nov 05 2009 PeterZhu <peter.j.zhu@intel.com> - 1.22
-- Remove /usr/share/info/dir in %install
-
-* Mon Aug 10 2009 Anas Nashif <anas.nashif@intel.com> - 1.22
-- Added patches from fedora that fix the following:
- * Fix restoring of directory default acls
- * Do not patch generated autotools files
- * Report record size only if the archive refers to a device
- * Do not sigabrt with new gcc/glibc because of writing to
- struct members of gnutar header at once via strcpy
- * ignore errors from setting utime() for source file
- on read-only filesystem
-
-* Tue Apr 28 2009 Vivian Zhang <vivian.zhang@intel.com> 1.22
-- Update to 1.22
-- Drop upstreamed patch
-- Improve loneZeroWarning patch
-- Regenerate xattrs and xattrs-conf patches
-
-* Wed Dec 17 2008 Arjan van de Ven <arjan@linux.intel.com> 1.19
-- Use standard spec file
-
-* Fri Sep 12 2008 Yi Yang <yi.y.yang@intel.com> 1.19
-- Remove installation warnings of info files
diff --git a/packaging/tar.manifest b/packaging/tar.manifest
index 017d22d..c922afb 100644
--- a/packaging/tar.manifest
+++ b/packaging/tar.manifest
@@ -1,5 +1,8 @@
<manifest>
- <request>
- <domain name="_"/>
- </request>
+ <request>
+ <domain name="_"/>
+ </request>
+ <assign>
+ <filesystem path="/bin/*" exec_label="none" />
+ </assign>
</manifest>
diff --git a/packaging/tar.spec b/packaging/tar.spec
index 6016a8d..33fcdf9 100644..100755
--- a/packaging/tar.spec
+++ b/packaging/tar.spec
@@ -1,19 +1,19 @@
-#
+#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.22
-#
+#
Name: tar
Summary: A GNU file archiving program
Version: 1.17
-Release: 1
+Release: 4
Epoch: 1
Group: Applications/Archiving
-License: GPLv2+
+License: GPL-2.0+
URL: http://www.gnu.org/software/tar/
Source0: ftp://ftp.gnu.org/pub/gnu/tar/tar-%{version}.tar.gz
Source1: tar.1
-Source1001: packaging/tar.manifest
+Source1001: %{name}.manifest
Patch0: tar-1.14-loneZeroWarning.patch
Patch1: tar-1.15.1-vfatTruncate.patch
Patch2: tar-1.17-testsuite.patch
@@ -40,8 +40,6 @@ If you want to use tar for remote backups, you also need to install
the rmt package.
-
-
%prep
%setup -q -n %{name}-%{version}
@@ -68,7 +66,6 @@ the rmt package.
%build
cp %{SOURCE1001} .
-
%configure --disable-static \
--bindir=/bin \
--disable-nls
@@ -81,13 +78,23 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}%{_mandir}/man1
cp -a %{SOURCE1} %{buildroot}%{_mandir}/man1
-rm -rf %{buildroot}%{_prefix}/libexec/rmt
+rm -rf %{buildroot}%{_libexecdir}/rmt
-%docs_package
+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
+
+%docs_package
%files
-%manifest tar.manifest
%defattr(-,root,root,-)
+%{_datadir}/license/%{name}
/bin/tar
-
+%manifest %{name}.manifest