]> git.pld-linux.org Git - packages/tar.git/blobdiff - tar.spec
- added heapOverflow patch (fixes CVE-2006-0300), release 3
[packages/tar.git] / tar.spec
index d09a324522e989586de3f1fc9fe52d8337ef28f2..d273028614a87497835e0d20934013af39c00f6a 100644 (file)
--- a/tar.spec
+++ b/tar.spec
 Summary:       A GNU file archiving program
 Summary(de):   GNU-Magnetband-Archivierprogramm (tar)
-Summary(fr):   Programme d'archivage GNU (tar : GNU Tape Archiver).
+Summary(es):   GNU Tape Archiver (tar)
+Summary(fr):   Programme d'archivage GNU (tar: GNU Tape Archiver)
 Summary(pl):   Program do archiwizacji (GNU)
+Summary(pt_BR):        GNU Tape Archiver (tar)
 Summary(tr):   Yaygýn kullanýlan yedekleyici
 Name:          tar
-Version:       1.13.17
-Release:       1
+Version:       1.15.1
+Release:       3
 Epoch:         1
-Copyright:     GPL
-Group:         Utilities/Archiving
-Group(pl):     Narzêdzia/Archiwizacja
-Source0:       ftp://alpha.gnu.org/gnu/tar/%{name}-%{version}.tar.gz
-Source1:       tar.1.pl
-Patch0:                tar-manpage.patch
-Patch1:                tar-info.patch
-Patch2:                tar-pipe.patch
-Patch3:                tar-namecache.patch
+License:       GPL
+Group:         Applications/Archiving
+Source0:       ftp://ftp.gnu.org/gnu/tar/%{name}-%{version}.tar.bz2
+# Source0-md5: 57da3c38f8e06589699548a34d5a5d07
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: 4e4b1655fe42c27a4eb5d7bcd82e74ac
+Patch0:                %{name}-man-debian.patch
+Patch1:                %{name}-man.patch
+Patch2:                %{name}-info.patch
+Patch3:                %{name}-pl.po-update.patch
+Patch4:                %{name}-sock.patch
+Patch5:                %{name}-dots.patch
+Patch6:                %{name}-zero-block.patch
+Patch7:                %{name}-heapOverflow.patch
+URL:           http://www.gnu.org/software/tar/tar.html
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.8
+BuildRequires: bison
+BuildRequires: gettext-devel >= 0.14.3
+BuildRequires: sed >= 4.0
+BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _exec_prefix    /
+%define                _bindir         /bin
 %define                _libexecdir     /sbin
 
 %description
 The GNU tar program saves many files together into one archive and can
-restore individual files (or all of the files) from the archive. Tar can
-also be used to add supplemental files to an archive and to update or list
-files in the archive.
+restore individual files (or all of the files) from the 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.
+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'll also need to install the
-rmt package.
-
-You should install the tar package, because you'll find its compression and
-decompression utilities essential for working with files.
+If you want to use Tar for remote backups, you'll also need to install
+the rmt package.
 
 %description -l de
 Das GNU tar-Programm speichert mehrere Dateien in ein Archiv, und kann
-einzelne Dateien daraus wiederherstellen (oder auch alle Dateien). Tar kann
-auch benutzt werden, um einem Archiv Dateien hinzuzufügen, und um die Liste
-der Dateien im Archiv anzuzeigen oder zu verändern.
+einzelne Dateien daraus wiederherstellen (oder auch alle Dateien). Tar
+kann auch benutzt werden, um einem Archiv Dateien hinzuzufügen, und um
+die Liste der Dateien im Archiv anzuzeigen oder zu verändern.
 
 Tar enthält multivolume-Support, automatische
-Archivkompression/dekompression, the Möglichkeit, Dateien per Netzwerk zu
-archivieren und die Möglichkeit zu inkrementellen backups.
+Archivkompression/dekompression, the Möglichkeit, Dateien per Netzwerk
+zu archivieren und die Möglichkeit zu inkrementellen backups.
 
-Wenn Sie tar für Netzwerkbackups benutzen wollen, brauchen Sie außerdem das
-rmt-Paket.
+Wenn Sie tar für Netzwerkbackups benutzen wollen, brauchen Sie
+außerdem das rmt-Paket.
 
-Sie sollten tar installieren, da es wichtig zur Dateibehandlung ist.
+%description -l es
+GNU "tar" guarda varios archivos juntos, en una cinta o archivo de
+disco, y puede restaurar archivos individuales de este almacenaje.
+Incluye soporte para multivolúmenes, habilidad de almacenar archivos
+dispersos, compresión/descompresión automática, almacenajes remotos y
+características especiales que permiten "tar" ser usado para backups
+incrementales y completos. Si deseas hacer backups remotos con tar, te
+hará falta instalar el paquete "rmt".
 
 %description -l fr
-Le programme GNU tar permet de regrouper plusieurs fichiers en une seule
-archive et d'effectuer diverses opérations sur cette archive (extraction
-d'un fichier particulier, mise à jour, ajout d'un nouveau fichier, ...).
+Le programme GNU tar permet de regrouper plusieurs fichiers en une
+seule archive et d'effectuer diverses opérations sur cette archive
+(extraction d'un fichier particulier, mise à jour, ajout d'un nouveau
+fichier, ...).
 
-Tar gère les archives multi-volumes, la compression et la décompression de
-manière transparente ainsi que la possibilité de réaliser des sauvegardes
-incrémentales et des sauvegardes complètes.
+Tar gère les archives multi-volumes, la compression et la
+décompression de manière transparente ainsi que la possibilité de
+réaliser des sauvegardes incrémentales et des sauvegardes complètes.
 
-Si vous comptez utiliser Tar pour des sauvegardes distantes, vous devriez
-également installer le programme rmt.
+Si vous comptez utiliser Tar pour des sauvegardes distantes, vous
+devriez également installer le programme rmt.
 
 Tar devrait être installé sur tout système car ses capacité de
 (dé)compression sont essentielles pour travailler sur les fichiers.
 
-Pour profiter pleinement de tar, vous devriez installer les compresseurs
-gzip et/ou bzip2.
-
 %description -l pl
-Program GNU tar s³u¿y do zapisywania wielu plików w pojedynczym archiwum i
-moze tak¿e s³u¿yæ do odzyskiwania z tak prepaowanych archiwów pojedynczych
-plików (lub wszystkich). Za jego pomoc± mo¿na tak¿e dodwaæ nowe pliki do ju¿
-istiej±cego archiwum.
-
-GNU tar umo¿liwia robienie wieloczê¶ciowych archiwów (multivolume archive),
-automatyczn± kompresjê i dekompresjê samego archiwum a tak¿e ma mo¿liwo¶æ
-operowania na zdalnych archiiwach co jest przydatne przy sporz±dzaniu
-przyrostowych i pe³nych archiwów zasobów.
-
-Je¿eli zamierzasz u¿ywaæ rprogramu tar do operowania na zdalnych archiwach
-powiniene¶ doinstalowaæ pakiet rmt.
-
-GNU tar s³u¿y do zapisywania wielu plików na ta¶mê lub dysk. Mo¿e odtwarzaæ
-pojedyñcze pliki z archiwum. Umo¿liwia zapis du¿ego archiwum z podzia³em na
-wiele no¶ników. Tar obs³uguje tak¿e automatyczn± kompresjê/dekompresjê i
-archiwa zdalne. Posiada specjalne opcje do robienia pe³nych i przyrostowych
-kopii bezpieczeñstwa. Aby tworzyæ zdalne archiwa tar-a trzeba zainstalowaæ
-pakiet rmt.
+Program GNU tar s³u¿y do zapisywania wielu plików w pojedynczym
+archiwum i mo¿e tak¿e s³u¿yæ do odzyskiwania z tak preparowanych
+archiwów pojedynczych plików (lub wszystkich). Za jego pomoc± mo¿na
+tak¿e dodawaæ nowe pliki do ju¿ istniej±cego archiwum.
+
+GNU tar umo¿liwia robienie wieloczê¶ciowych archiwów (multivolume
+archive), automatyczn± kompresjê i dekompresjê samego archiwum a tak¿e
+ma mo¿liwo¶æ operowania na zdalnych archiwach co jest przydatne przy
+sporz±dzaniu przyrostowych i pe³nych archiwów zasobów.
+
+Je¿eli zamierzasz u¿ywaæ programu tar do operowania na zdalnych
+archiwach powiniene¶ doinstalowaæ pakiet rmt.
+
+GNU tar s³u¿y do zapisywania wielu plików na ta¶mê lub dysk. Mo¿e
+odtwarzaæ pojedyncze pliki z archiwum. Umo¿liwia zapis du¿ego archiwum
+z podzia³em na wiele no¶ników. Tar obs³uguje tak¿e automatyczn±
+kompresjê/dekompresjê i archiwa zdalne. Posiada specjalne opcje do
+robienia pe³nych i przyrostowych kopii bezpieczeñstwa. Aby tworzyæ
+zdalne archiwa tar-a trzeba zainstalowaæ pakiet rmt.
+
+%description -l pt_BR
+GNU "tar" guarda vários arquivos juntos em uma fita ou arquivo de
+disco, e pode restaurar arquivos individuais desta armazenagem. Ele
+inclui suporte para multi-volumes, habilidade de armazenar arquivos
+dispersos, compressão/descompressão automática, armazenamentos remotos
+e características especiais que permitem "tar" ser usado para backups
+incrementais e completos. Se você deseja fazer backups remotos com
+tar, você irá precisar instalar o pacote "rmt".
 
 %description -l tr
 GNU tar, birden çok dosyayý tek bir manyetik bant ya da disk üzerinde
-arþivleyebildiði gibi, bu dosyalarýn arþivden tek tek geri yüklenmesine de
-izin verir. Çok kýsýmlý arþivleri, otomatik arþiv sýkýþtýrma ve açmayý, uzak
-arþivleri, artýmsal yedeklemeyi destekler.
+arþivleyebildiði gibi, bu dosyalarýn arþivden tek tek geri
+yüklenmesine de izin verir. Çok kýsýmlý arþivleri, otomatik arþiv
+sýkýþtýrma ve açmayý, uzak arþivleri, artýmsal yedeklemeyi destekler.
 
 %prep
 %setup -q
-%patch0 -p1
+%patch0 -p2
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+
+rm -f po/stamp-po
+
+# temporary (configure.ac uses gl_AC_TYPE_LONG_LONG while gettext 0.14
+# defines jm_AC_TYPE_LONG_LONG)
+mv -f m4/{,g}longlong.m4
+
+sed -i -e 's/jm_AC_TYPE_UINTMAX_T/gl_AC_TYPE_UINTMAX_T/' configure.ac
 
 %build
-chmod -R a+rwX .
-gettextize --copy --force
-LIBS="-lbsd" ; export LIBS
-LDFLAGS="-s" ; export LDFLAGS
+%{__gettextize}
+%{__autoheader}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure
 
-(cd doc; cp stamp-vti version.texi; touch *; makeinfo --force tar.texi)
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/usr/bin,%{_mandir}/man1,%{_mandir}/pl/man1}
+install -d $RPM_BUILD_ROOT{/usr/bin,%{_mandir}/man1}
 
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-ln -s %{_bindir}/tar $RPM_BUILD_ROOT/usr/bin/gtar
-install tar.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1
+ln -sf %{_bindir}/tar $RPM_BUILD_ROOT/usr/bin/gtar
 
-gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/tar.info*,%{_mandir}/man1/*} \
-       $RPM_BUILD_ROOT%{_mandir}/*/man1/* \
-       README NEWS
+install tar.1 $RPM_BUILD_ROOT%{_mandir}/man1
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
 %find_lang %{name}
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files -f %{name}.lang
-%defattr(0644,root,root, 0755)
-%doc NEWS.gz README.gz
+%defattr(644,root,root,755)
+%doc README NEWS
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) /usr/bin/*
 %{_infodir}/tar.info*
 %{_mandir}/man1/*
+%lang(de) %{_mandir}/de/man1/*
+%lang(es) %{_mandir}/es/man1/*
+%lang(fi) %{_mandir}/fi/man1/*
+%lang(fr) %{_mandir}/fr/man1/*
+%lang(hu) %{_mandir}/hu/man1/*
+%lang(id) %{_mandir}/id/man1/*
+%lang(it) %{_mandir}/it/man1/*
+%lang(ja) %{_mandir}/ja/man1/*
+%lang(nl) %{_mandir}/nl/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.0717140000000001 seconds and 4 git commands to generate.