| 1 | Summary: A GNU file archiving program
|
|---|
| 2 | Name: tar
|
|---|
| 3 | Epoch: 2
|
|---|
| 4 | Version: 1.23
|
|---|
| 5 | Release: 5%{?dist}
|
|---|
| 6 | License: GPLv3+
|
|---|
| 7 | Group: Applications/Archiving
|
|---|
| 8 | URL: http://www.gnu.org/software/tar/
|
|---|
| 9 | Source0: ftp://ftp.gnu.org/pub/gnu/tar/tar-%{version}.tar.bz2
|
|---|
| 10 |
|
|---|
| 11 | Patch1: tar-os2.diff
|
|---|
| 12 |
|
|---|
| 13 | #Requires: info
|
|---|
| 14 | #BuildRequires: autoconf automake gzip texinfo gettext libacl-devel gawk rsh
|
|---|
| 15 | BuildRequires: gettext
|
|---|
| 16 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 17 | #Requires(post): /sbin/install-info
|
|---|
| 18 | #Requires(preun): /sbin/install-info
|
|---|
| 19 |
|
|---|
| 20 | Requires: gettext-libs
|
|---|
| 21 |
|
|---|
| 22 | %description
|
|---|
| 23 | The GNU tar program saves many files together in one archive and can
|
|---|
| 24 | restore individual files (or all of the files) from that archive. Tar
|
|---|
| 25 | can also be used to add supplemental files to an archive and to update
|
|---|
| 26 | or list files in the archive. Tar includes multivolume support,
|
|---|
| 27 | automatic archive compression/decompression, the ability to perform
|
|---|
| 28 | remote archives, and the ability to perform incremental and full
|
|---|
| 29 | backups.
|
|---|
| 30 |
|
|---|
| 31 | If you want to use tar for remote backups, you also need to install
|
|---|
| 32 | the rmt package.
|
|---|
| 33 |
|
|---|
| 34 | %prep
|
|---|
| 35 | %setup -q
|
|---|
| 36 | %patch1 -p1 -b .os2~
|
|---|
| 37 |
|
|---|
| 38 | #autoreconf
|
|---|
| 39 |
|
|---|
| 40 | %build
|
|---|
| 41 | export CONFIG_SHELL="/bin/sh"
|
|---|
| 42 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 43 | export LIBS="-lintl -lurpo"
|
|---|
| 44 | %configure \
|
|---|
| 45 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 46 | make %{?_smp_mflags}
|
|---|
| 47 |
|
|---|
| 48 | %install
|
|---|
| 49 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 50 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 51 |
|
|---|
| 52 | mkdir -p ${RPM_BUILD_ROOT}/@unixroot/bin
|
|---|
| 53 | ln -s %{_bindir}/tar.exe ${RPM_BUILD_ROOT}/@unixroot/bin/tar
|
|---|
| 54 | ln -s %{_bindir}/tar.exe ${RPM_BUILD_ROOT}/@unixroot/bin/tar.exe
|
|---|
| 55 | ln -s %{_bindir}/tar.exe ${RPM_BUILD_ROOT}/@unixroot/bin/gtar.exe
|
|---|
| 56 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
|---|
| 57 | mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|---|
| 58 | #install -c -p -m 0644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|---|
| 59 | ln -s tar.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/gtar.1
|
|---|
| 60 |
|
|---|
| 61 | # XXX Nuke unpackaged files.
|
|---|
| 62 | rm -f ${RPM_BUILD_ROOT}/sbin/rmt
|
|---|
| 63 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/charset.alias
|
|---|
| 64 |
|
|---|
| 65 | #%find_lang %name
|
|---|
| 66 |
|
|---|
| 67 | #%check
|
|---|
| 68 | #rm -f ${RPM_BUILD_ROOT}/test/testsuite
|
|---|
| 69 | #make check
|
|---|
| 70 |
|
|---|
| 71 | %clean
|
|---|
| 72 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 73 |
|
|---|
| 74 | #%post
|
|---|
| 75 | #if [ -f %{_infodir}/tar.info.gz ]; then
|
|---|
| 76 | # /sbin/install-info %{_infodir}/tar.info.gz %{_infodir}/dir || :
|
|---|
| 77 | #fi
|
|---|
| 78 |
|
|---|
| 79 | #%preun
|
|---|
| 80 | #if [ $1 = 0 ]; then
|
|---|
| 81 | # if [ -f %{_infodir}/tar.info.gz ]; then
|
|---|
| 82 | # /sbin/install-info --delete %{_infodir}/tar.info.gz %{_infodir}/dir || :
|
|---|
| 83 | # fi
|
|---|
| 84 | #fi
|
|---|
| 85 |
|
|---|
| 86 | %files
|
|---|
| 87 | # -f %{name}.lang
|
|---|
| 88 | %defattr(-,root,root)
|
|---|
| 89 | %doc AUTHORS ChangeLog ChangeLog.1 COPYING NEWS README THANKS TODO
|
|---|
| 90 | /@unixroot/bin/*
|
|---|
| 91 | %{_bindir}/*
|
|---|
| 92 | %{_mandir}/man*/*
|
|---|
| 93 | %{_infodir}/tar.info*
|
|---|
| 94 | %{_usr}/share/locale/*
|
|---|
| 95 |
|
|---|
| 96 | %changelog
|
|---|
| 97 | * Wed Nov 16 2011 yd
|
|---|
| 98 | - keep all executables to /usr/bin and place symlinks in /bin
|
|---|