Summary: A GNU file archiving program Name: tar Version: 1.22 Release: 1 License: GPLv3+ Group: Applications/Archiving URL: http://www.gnu.org/software/tar/ Source0: ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.bz2.sig Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gettext-devel >= 0.17 Requires: /sbin/install-info, info, gettext >= 0.17 %description 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 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 remote archives, and the ability to perform incremental and full backups. If you want to use tar for remote backups, you also need to install the rmt package. %prep %setup -q %build ./configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --enable-largefile make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : gzip --best ${RPM_BUILD_ROOT}%{_infodir}/%{name}* rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir ln -sf tar ${RPM_BUILD_ROOT}%{_bindir}/gtar ( cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/tar gtar cd - mkdir -p usr/linux/bin cd usr/linux/bin ln -sf ../../..%{_bindir}/tar tar ln -sf ../../..%{_bindir}/tar gtar ) %post /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : fi %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc AUTHORS ChangeLog ChangeLog.1 NEWS README THANKS TODO %{_bindir}/* %{_infodir}/* /usr/bin/* /usr/linux/bin/* %changelog * Wed Mar 11 2009 Michael Perzl - 1.22-1 - updated to version 1.22 * Sun Dec 28 2008 Michael Perzl - 1.21-1 - updated to version 1.21 * Thu Apr 17 2008 Michael Perzl - 1.20-1 - updated to version 1.20 * Wed Mar 26 2008 Michael Perzl - 1.19-1 - first version for AIX V5.1 and higher