2004-09-09 13:05:10 +00:00
|
|
|
|
Summary: A GNU file archiving program.
|
|
|
|
|
Name: tar
|
2004-09-09 13:06:32 +00:00
|
|
|
|
Version: 1.13.25
|
2004-09-09 13:08:00 +00:00
|
|
|
|
Release: 4.7.1
|
2004-09-09 13:05:27 +00:00
|
|
|
|
License: GPL
|
2004-09-09 13:05:10 +00:00
|
|
|
|
Group: Applications/Archiving
|
2004-09-09 13:05:27 +00:00
|
|
|
|
Source: ftp://ftp.gnu.org/pub/gnu/tar/tar-%{version}.tar.bz2
|
2004-09-09 13:05:16 +00:00
|
|
|
|
Patch0: tar-1.13.18-manpage.patch
|
2004-09-09 13:06:32 +00:00
|
|
|
|
Patch1: tar-1.13.25-sock.patch
|
|
|
|
|
Patch2: tar-1.13.25-autoconf.patch
|
|
|
|
|
Patch6: tar-1.13.22-nolibrt.patch
|
2004-09-09 13:05:27 +00:00
|
|
|
|
Patch7: tar-1.13.19-error.patch
|
2004-09-09 13:05:31 +00:00
|
|
|
|
Patch8: tar-1.13.19-absolutenames.patch
|
2004-09-09 13:08:00 +00:00
|
|
|
|
Patch9: tar-dots.patch
|
2004-09-09 13:05:16 +00:00
|
|
|
|
Prereq: info
|
2004-09-09 13:08:00 +00:00
|
|
|
|
BuildRequires: autoconf automake
|
2004-09-09 13:05:16 +00:00
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
2004-09-09 13:05:10 +00:00
|
|
|
|
|
|
|
|
|
%description
|
2004-09-09 13:05:31 +00:00
|
|
|
|
The GNU tar program saves many files together in one archive and can
|
|
|
|
|
restore individual files (or all of the files) from that archive. Tar
|
2004-09-09 13:05:10 +00:00
|
|
|
|
can also be used to add supplemental files to an archive and to update
|
|
|
|
|
or list files in the archive. Tar includes multivolume support,
|
|
|
|
|
automatic archive compression/decompression, the ability to perform
|
2004-09-09 13:05:31 +00:00
|
|
|
|
remote archives, and the ability to perform incremental and full
|
2004-09-09 13:05:10 +00:00
|
|
|
|
backups.
|
|
|
|
|
|
2004-09-09 13:05:31 +00:00
|
|
|
|
If you want to use tar for remote backups, you also need to install
|
2004-09-09 13:05:10 +00:00
|
|
|
|
the rmt package.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2004-09-09 13:05:16 +00:00
|
|
|
|
%patch0 -p1 -b .manpage
|
2004-09-09 13:06:32 +00:00
|
|
|
|
%patch1 -p1 -b .sock
|
2004-09-09 13:08:00 +00:00
|
|
|
|
#%patch2 -p1 -b .253
|
|
|
|
|
#%patch6 -p1 -b .librt
|
2004-09-09 13:05:27 +00:00
|
|
|
|
%patch7 -p1 -b .err
|
2004-09-09 13:05:31 +00:00
|
|
|
|
%patch8 -p1 -b .absn
|
2004-09-09 13:08:00 +00:00
|
|
|
|
%patch9 -p1 -b .dots
|
2004-09-09 13:05:10 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%define optflags $RPM_OPT_FLAGS -DHAVE_STRERROR -D_GNU_SOURCE
|
|
|
|
|
%configure --bindir=/bin --libexecdir=/sbin
|
|
|
|
|
make LIBS=-lbsd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%ifos linux
|
|
|
|
|
make prefix=${RPM_BUILD_ROOT}%{_prefix} \
|
|
|
|
|
bindir=${RPM_BUILD_ROOT}/bin \
|
|
|
|
|
libexecdir=${RPM_BUILD_ROOT}/sbin \
|
|
|
|
|
mandir=${RPM_BUILD_ROOT}%{_mandir} \
|
|
|
|
|
infodir=${RPM_BUILD_ROOT}%{_infodir} \
|
|
|
|
|
install
|
|
|
|
|
ln -s tar ${RPM_BUILD_ROOT}/bin/gtar
|
|
|
|
|
%else
|
|
|
|
|
make prefix=${RPM_BUILD_ROOT}%{_prefix} \
|
|
|
|
|
localedir=${RPM_BUILD_ROOT}%{_prefix}/share/locale \
|
|
|
|
|
mandir=${RPM_BUILD_ROOT}%{_mandir} \
|
|
|
|
|
infodir=${RPM_BUILD_ROOT}%{_infodir} \
|
|
|
|
|
install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
( cd $RPM_BUILD_ROOT
|
|
|
|
|
for dir in ./bin ./sbin .%{_prefix}/bin .%{_prefix}/libexec
|
|
|
|
|
do
|
|
|
|
|
[ -d $dir ] || continue
|
|
|
|
|
strip $dir/* || :
|
|
|
|
|
done
|
|
|
|
|
gzip -9nf .%{_infodir}/tar.info*
|
|
|
|
|
rm -f .%{_infodir}/dir
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|
|
|
|
install -c -m644 tar.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|
|
|
|
|
2004-09-09 13:05:16 +00:00
|
|
|
|
%find_lang %name
|
|
|
|
|
|
2004-09-09 13:05:10 +00:00
|
|
|
|
%post
|
|
|
|
|
/sbin/install-info %{_infodir}/tar.info.gz %{_infodir}/dir
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
|
/sbin/install-info --delete %{_infodir}/tar.info.gz %{_infodir}/dir
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
2004-09-09 13:05:16 +00:00
|
|
|
|
%files -f %{name}.lang
|
2004-09-09 13:05:10 +00:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%ifos linux
|
|
|
|
|
/bin/tar
|
|
|
|
|
/bin/gtar
|
|
|
|
|
%{_mandir}/man1/tar.1*
|
|
|
|
|
%else
|
|
|
|
|
%{_prefix}/bin/*
|
|
|
|
|
%{_prefix}/libexec/*
|
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{_infodir}/tar.info*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 13:08:00 +00:00
|
|
|
|
* Tue Jun 18 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 1.13.25-4.7
|
|
|
|
|
- Security fix for path vulnerabilities
|
|
|
|
|
|
2004-09-09 13:06:32 +00:00
|
|
|
|
* Tue Apr 9 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.25-4
|
|
|
|
|
- Fix build with autoconf253 (LIBOBJ change; autoconf252 worked)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Oct 23 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.25-2
|
|
|
|
|
- Don't include hardlinks to sockets in a tar file (#54827)
|
|
|
|
|
|
|
|
|
|
* Thu Sep 27 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.25-1
|
|
|
|
|
- 1.13.25
|
|
|
|
|
|
|
|
|
|
* Tue Sep 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.22-1
|
|
|
|
|
- Update to 1.13.22, adapt patches
|
|
|
|
|
|
2004-09-09 13:05:31 +00:00
|
|
|
|
* Mon Aug 27 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.19-6
|
|
|
|
|
- Fix #52084
|
|
|
|
|
|
2004-09-09 13:05:27 +00:00
|
|
|
|
* Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.13.19-5
|
|
|
|
|
- Fix build with current autoconf (stricter checking on AC_DEFINE)
|
|
|
|
|
- Fix segfault when tarring directories without having read permissions
|
|
|
|
|
(#40802)
|
|
|
|
|
|
2004-09-09 13:05:16 +00:00
|
|
|
|
* Tue Mar 6 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Don't depend on librt.
|
|
|
|
|
|
|
|
|
|
* Fri Feb 23 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- langify
|
|
|
|
|
|
|
|
|
|
* Thu Feb 22 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Fix up the man page (#28915)
|
|
|
|
|
|
|
|
|
|
* Wed Feb 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 1.3.19, nukes -I and fixes up -N
|
|
|
|
|
- Add -I back in as an alias to -j with a nice loud warning
|
|
|
|
|
|
|
|
|
|
* Mon Oct 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 1.3.18
|
|
|
|
|
- Update man page to reflect changes
|
|
|
|
|
|
|
|
|
|
* Thu Oct 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Fix the "ignore failed read" option (Bug #8330)
|
|
|
|
|
|
|
|
|
|
* Mon Sep 25 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- fix hang on tar tvzf - <something.tar.gz, introduced by
|
|
|
|
|
exit code fix (Bug #15448), Patch from Tim Waugh <twaugh@redhat.com>
|
|
|
|
|
|
2004-09-09 13:05:10 +00:00
|
|
|
|
* Fri Aug 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- really fix exit code (Bug #15448)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 7 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- fix exit code (Bug #15448), patch from Tim Waugh <twaugh@redhat.com>
|
|
|
|
|
|
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- FHSify
|
|
|
|
|
|
|
|
|
|
* Fri Apr 28 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- fix for ia64
|
|
|
|
|
|
|
|
|
|
* Wed Feb 9 2000 Bernhard Rosenkr<EFBFBD>nzer <bero@redhat.com>
|
|
|
|
|
- Fix the exclude bug (#9201)
|
|
|
|
|
|
|
|
|
|
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- man pages are compressed
|
|
|
|
|
- fix description
|
|
|
|
|
- fix fnmatch build problems
|
|
|
|
|
|
|
|
|
|
* Sun Jan 9 2000 Bernhard Rosenkr<EFBFBD>nzer <bero@redhat.com>
|
|
|
|
|
- 1.13.17
|
|
|
|
|
- remove dotbug patch (fixed in base)
|
|
|
|
|
- update download URL
|
|
|
|
|
|
|
|
|
|
* Fri Jan 7 2000 Bernhard Rosenkr<EFBFBD>nzer <bero@redhat.com>
|
|
|
|
|
- Fix a severe bug (tar xf any_package_containing_. would delete the
|
|
|
|
|
current directory)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 5 2000 Bernhard Rosenkr<EFBFBD>nzer <bero@redhat.com>
|
|
|
|
|
- 1.3.16
|
|
|
|
|
- unset LINGUAS before running configure
|
|
|
|
|
|
|
|
|
|
* Tue Nov 9 1999 Bernhard Rosenkr<EFBFBD>nzer <bero@redhat.com>
|
|
|
|
|
- 1.13.14
|
|
|
|
|
- Update man page to know about -I / --bzip
|
|
|
|
|
- Remove dependancy on rmt - tar can be used for anything local
|
|
|
|
|
without it.
|
|
|
|
|
|
|
|
|
|
* Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- upgrade to 1.13.11.
|
|
|
|
|
|
|
|
|
|
* Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- update to 1.13.9.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 12 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- update to 1.13.6.
|
|
|
|
|
- support -y --bzip2 options for bzip2 compression (#2415).
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- update to 1.13.5.
|
|
|
|
|
|
|
|
|
|
* Tue Jul 13 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- update to 1.13
|
|
|
|
|
|
|
|
|
|
* Sat Jun 26 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- update to 1.12.64014.
|
|
|
|
|
- pipe patch corrected for remote tars now merged in.
|
|
|
|
|
|
|
|
|
|
* Sun Jun 20 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- update to tar-1.12.64013.
|
|
|
|
|
- subtract (and reopen #2415) bzip2 support using -y.
|
|
|
|
|
- move gtar to /bin.
|
|
|
|
|
|
|
|
|
|
* Tue Jun 15 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- upgrade to tar-1.12.64011 to
|
|
|
|
|
- add bzip2 support (#2415)
|
|
|
|
|
- fix filename bug (#3479)
|
|
|
|
|
|
|
|
|
|
* Mon Mar 29 1999 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- fix suspended tar with compression over pipe produces error (#390).
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- auto rebuild in the new build environment (release 8)
|
|
|
|
|
|
|
|
|
|
* Mon Mar 08 1999 Michael Maher <mike@redhat.com>
|
|
|
|
|
- added patch for bad name cache.
|
|
|
|
|
- FIXES BUG 320
|
|
|
|
|
|
|
|
|
|
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- Injected new description and group.
|
|
|
|
|
|
|
|
|
|
* Fri Dec 18 1998 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- bumped spec number for initial rh 6.0 build
|
|
|
|
|
|
|
|
|
|
* Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- add /usr/bin/gtar symlink (change #421)
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- Fiddle bindir/libexecdir to get RH install correct.
|
|
|
|
|
- Don't include /sbin/rmt -- use the rmt from dump.
|
|
|
|
|
- Turn on nls.
|
|
|
|
|
|
|
|
|
|
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
|
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
|
|
* Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
|
- updated from 1.11.8 to 1.12
|
|
|
|
|
- various spec file cleanups
|
|
|
|
|
- /sbin/install-info support
|
|
|
|
|
|
|
|
|
|
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
|
- built against glibc
|
|
|
|
|
|
|
|
|
|
* Thu May 29 1997 Michael Fulbright <msf@redhat.com>
|
|
|
|
|
- Fixed to include rmt
|