From 4dd080afd0b0ec0be409ab0abfbbc6cfb2855140f1ce54ef023fba5eae952767 Mon Sep 17 00:00:00 2001
From: Marcus Meissner <meissner@suse.com>
Date: Wed, 20 Nov 2013 08:49:43 +0000
Subject: [PATCH 1/3] Accepting request 207707 from
 home:AndreasStieger:branches:Base:System

update to 1.27.1

OBS-URL: https://build.opensuse.org/request/show/207707
OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=49
---
 tar-1.27.1.tar.bz2                             | 3 +++
 tar-1.27.tar.bz2.sig => tar-1.27.1.tar.bz2.sig | 6 +++---
 tar-1.27.tar.bz2                               | 3 ---
 tar.changes                                    | 8 ++++++++
 tar.spec                                       | 2 +-
 5 files changed, 15 insertions(+), 7 deletions(-)
 create mode 100644 tar-1.27.1.tar.bz2
 rename tar-1.27.tar.bz2.sig => tar-1.27.1.tar.bz2.sig (50%)
 delete mode 100644 tar-1.27.tar.bz2

diff --git a/tar-1.27.1.tar.bz2 b/tar-1.27.1.tar.bz2
new file mode 100644
index 0000000..c3026b5
--- /dev/null
+++ b/tar-1.27.1.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9b0fb3ce8512059337add0da5f8f0f7d7647f2201f5ece24581d620ea60337c6
+size 2573070
diff --git a/tar-1.27.tar.bz2.sig b/tar-1.27.1.tar.bz2.sig
similarity index 50%
rename from tar-1.27.tar.bz2.sig
rename to tar-1.27.1.tar.bz2.sig
index 0f1c32d..0f36d9f 100644
--- a/tar-1.27.tar.bz2.sig
+++ b/tar-1.27.1.tar.bz2.sig
@@ -1,7 +1,7 @@
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 
-iD8DBQBSUI79NgKwf1XQxzIRAu+fAKCVHrxH0VS70ayy1hk8yclb9rwSbQCZASD0
-/ZXIBL9EDZ0WD7aI0PpV8i8=
-=uacI
+iD8DBQBSiPUMNgKwf1XQxzIRAvgkAJ9j8NjtX5l8nY09uzT5azrkM0t7UwCgk9wK
+9KD1C1iRhk9ur7/7FVNXE4M=
+=Mfmh
 -----END PGP SIGNATURE-----
diff --git a/tar-1.27.tar.bz2 b/tar-1.27.tar.bz2
deleted file mode 100644
index 0beebfe..0000000
--- a/tar-1.27.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:2238c5c63c7ecaccc962f10482d76875b45cedfed69138ed852a88e344af3c7b
-size 2530071
diff --git a/tar.changes b/tar.changes
index 29c6dab..b7410e5 100644
--- a/tar.changes
+++ b/tar.changes
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Tue Nov 19 22:16:18 UTC 2013 - andreas.stieger@gmx.de
+
+- update to 1.27.1
+  * Fix unquoting of file names obtained via the -T option.
+  * Fix GNU long link header timestamp (backward compatibility).
+  * Fix extracting sparse members from star archives.
+
 -------------------------------------------------------------------
 Thu Oct 24 21:57:57 UTC 2013 - andreas.stieger@gmx.de
 
diff --git a/tar.spec b/tar.spec
index a241950..bf78e45 100644
--- a/tar.spec
+++ b/tar.spec
@@ -20,7 +20,7 @@
 %define min_suse_ver 1010
 
 Name:           tar
-Version:        1.27
+Version:        1.27.1
 Release:        0
 Summary:        GNU implementation of tar ((t)ape (ar)chiver)
 License:        GPL-3.0+

From adc784ced5ec4c149af2fdc66257551e773e422d2b57e6b33b4c1c0f6a93877d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20=C4=8C=C3=AD=C5=BEek?=
 <vcizek@suse.com>
Date: Thu, 9 Jan 2014 15:04:50 +0000
Subject: [PATCH 2/3] Accepting request 213314 from
 home:llipavsky:branches:Base:System

add tests subpackage.
* It is the same testsuite that is run during make check.
* It is now possible to run it in real system to verify that
  nothing is broken by incompatible libraries, etc.

This change allows QA to run the testsuite.

OBS-URL: https://build.opensuse.org/request/show/213314
OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=50
---
 add_readme-tests.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 tar.changes            |  8 ++++++++
 tar.spec               | 26 +++++++++++++++++++++++++-
 3 files changed, 73 insertions(+), 1 deletion(-)
 create mode 100644 add_readme-tests.patch

diff --git a/add_readme-tests.patch b/add_readme-tests.patch
new file mode 100644
index 0000000..f3f79af
--- /dev/null
+++ b/add_readme-tests.patch
@@ -0,0 +1,40 @@
+Index: tar-1.27.1/README-tests
+===================================================================
+--- /dev/null
++++ tar-1.27.1/README-tests
+@@ -0,0 +1,22 @@
++Subpackage tar-tests
++====================
++
++The tar-tests package contains the testsuite which is included in tar sources.
++The testsuite is normally run during make phase (make check) and is also
++automatically run when the tar rpm is being build (in %check section of spec
++file).
++
++Normally, there is no reason to need the tar-tests package. It can however be
++used to verify, that tar functions properly in an installed system (e.g. to
++find issues in tar's dependencies, problems with incompatible libraries, etc.).
++
++Testsuite is installed into /var/lib/tests/tar
++
++To run the testsuite:
++
++cd /var/lib/tests/tar
++./testsuite --help # show options
++
++# needed for genfile binary used in tests
++./testsuite AUTOTEST_PATH=/var/lib/tests/tar/bin [other options]
++
+Index: tar-1.27.1/Makefile.in
+===================================================================
+--- tar-1.27.1.orig/Makefile.in
++++ tar-1.27.1/Makefile.in
+@@ -141,7 +141,7 @@ PRE_UNINSTALL = :
+ POST_UNINSTALL = :
+ build_triplet = @build@
+ host_triplet = @host@
+-DIST_COMMON = $(srcdir)/Make.rules INSTALL NEWS README AUTHORS \
++DIST_COMMON = $(srcdir)/Make.rules INSTALL NEWS README README-tests AUTHORS \
+ 	ChangeLog THANKS $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+ 	$(top_srcdir)/configure $(am__configure_deps) \
+ 	$(srcdir)/config.h.in ABOUT-NLS README-alpha COPYING TODO \
diff --git a/tar.changes b/tar.changes
index b7410e5..972fa1c 100644
--- a/tar.changes
+++ b/tar.changes
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Tue Jan  7 11:09:24 CET 2014 - llipavsky@suse.com
+
+- add tests subpackage.
+  * It is the same testsuite that is run during make check.
+  * It is now possible to run it in real system to verify that
+    nothing is broken by incompatible libraries, etc.
+
 -------------------------------------------------------------------
 Tue Nov 19 22:16:18 UTC 2013 - andreas.stieger@gmx.de
 
diff --git a/tar.spec b/tar.spec
index bf78e45..286f8df 100644
--- a/tar.spec
+++ b/tar.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package tar
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -35,6 +35,7 @@ Patch3:         tar-wildcards.patch
 Patch6:         tar-backup-spec-fix-paths.patch
 Patch7:         tar-1.26-remove_O_NONBLOCK.patch
 Patch10:        paxutils-rtapelib_mtget.patch
+Patch20:        add_readme-tests.patch
 %if 0%{?suse_version} >= %min_suse_ver
 BuildRequires:  help2man
 Recommends:     tar-lang = %{version}
@@ -61,6 +62,14 @@ Requires:       %{name} = %{version}
 %description backup-scripts
 Shell scripts for system backup/restore
 
+%package tests
+Summary:        Tests for the package
+Group:          Development/Tests
+Requires:       %{name} = %{version}
+
+%description tests
+Upstream testsuite for the package
+
 %{?lang_package}
 
 %prep
@@ -69,6 +78,7 @@ Shell scripts for system backup/restore
 %patch6 -p1
 %patch7 -p1
 %patch10 -p1
+%patch20 -p1
 
 %build
 %define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
@@ -80,6 +90,11 @@ export DEFAULT_ARCHIVE_FORMAT="POSIX"
 	--enable-backup-scripts \
 	--disable-silent-rules
 make %{?_smp_mflags};
+cd tests
+make genfile
+mkdir bin
+mv genfile bin
+cd -
 
 %check
 %if !0%{?qemu_user_space_build:1}
@@ -99,6 +114,11 @@ install -d -m 755 %{buildroot}%{_sysconfdir}/backup
 install -D -m 644 scripts/backup-specs %{buildroot}%{_sysconfdir}/backup/backup-specs
 rm -rf %{buildroot}%{_libexecdir}/rmt
 rm -f %{buildroot}%{_infodir}/dir
+install -d -m 755 %{buildroot}/var/lib/tests
+cp -r tests %{buildroot}/var/lib/tests/tar
+rm %{buildroot}/var/lib/tests/tar/*.{c,h,o}
+rm %{buildroot}/var/lib/tests/tar/package.m4
+rm %{buildroot}/var/lib/tests/tar/{atconfig,atlocal,Makefile}*
 %find_lang %{name}
 
 %files backup-scripts
@@ -114,6 +134,10 @@ rm -f %{buildroot}%{_infodir}/dir
 
 %files lang -f %{name}.lang
 
+%files tests
+%defattr(-,root, root)
+/var/lib/tests
+
 %files
 %else
 

From d0a5ea9bd1e7e3a1efc0eb9697619477d21f6c6fc2995db7b952dce6231b4373 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20=C4=8C=C3=AD=C5=BEek?=
 <vcizek@suse.com>
Date: Thu, 9 Jan 2014 20:36:31 +0000
Subject: [PATCH 3/3] Accepting request 213373 from
 home:llipavsky:branches:Base:System

Add patch name into changes file to comply with the requirements

OBS-URL: https://build.opensuse.org/request/show/213373
OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=51
---
 tar.changes | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tar.changes b/tar.changes
index 972fa1c..fc7fc16 100644
--- a/tar.changes
+++ b/tar.changes
@@ -5,6 +5,7 @@ Tue Jan  7 11:09:24 CET 2014 - llipavsky@suse.com
   * It is the same testsuite that is run during make check.
   * It is now possible to run it in real system to verify that
     nothing is broken by incompatible libraries, etc.
+- add add_readme-tests.patch: README for testsuite
 
 -------------------------------------------------------------------
 Tue Nov 19 22:16:18 UTC 2013 - andreas.stieger@gmx.de