]>
Commit | Line | Data |
---|---|---|
fa0a97d4 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform make check | |
0f83f738 | 4 | |
75223ba3 | 5 | Summary: A GNU file archiving program |
b65d476d ER |
6 | Summary(de.UTF-8): GNU-Magnetband-Archivierprogramm (tar) |
7 | Summary(es.UTF-8): GNU Tape Archiver (tar) | |
8 | Summary(fr.UTF-8): Programme d'archivage GNU (tar: GNU Tape Archiver) | |
9 | Summary(pl.UTF-8): Program do archiwizacji (GNU) | |
10 | Summary(pt_BR.UTF-8): GNU Tape Archiver (tar) | |
11 | Summary(tr.UTF-8): Yaygın kullanılan yedekleyici | |
2b2f7ca8 | 12 | Name: tar |
464524f5 JP |
13 | Version: 1.35 |
14 | Release: 1 | |
916af924 | 15 | Epoch: 1 |
4ffa9838 | 16 | License: GPL v3+ |
3c49ea78 | 17 | Group: Applications/Archiving |
8abd6344 | 18 | Source0: https://ftp.gnu.org/gnu/tar/%{name}-%{version}.tar.bz2 |
464524f5 | 19 | # Source0-md5: 551ee695c8f186cd97e2a60421f384ed |
2d0b3f64 | 20 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
0daf9b35 | 21 | # Source1-md5: 4e4b1655fe42c27a4eb5d7bcd82e74ac |
1e8c54d2 | 22 | Patch0: %{name}-info.patch |
365dacf0 | 23 | Patch1: %{name}-zero-block.patch |
1870c8cc | 24 | URL: http://www.gnu.org/software/tar/tar.html |
464524f5 | 25 | BuildRequires: autoconf >= 2.71 |
7236c760 | 26 | BuildRequires: automake >= 1:1.11 |
2d273615 | 27 | BuildRequires: bison |
464524f5 | 28 | BuildRequires: gettext-tools >= 0.21 |
3c659de5 | 29 | BuildRequires: help2man |
5a4009ed | 30 | BuildRequires: sed >= 4.0 |
99d7b1ab | 31 | BuildRequires: texinfo |
ff8eec24 | 32 | Conflicts: amanda-client < 2.5.2 |
e6f8222c | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f3829c8b | 34 | |
482c7270 | 35 | %define _exec_prefix / |
47fc7460 | 36 | %define _bindir /bin |
482c7270 AF |
37 | %define _libexecdir /sbin |
38 | ||
f3829c8b | 39 | %description |
75223ba3 | 40 | The GNU tar program saves many files together into one archive and can |
8b677dcc | 41 | restore individual files (or all of the files) from the archive. Tar |
42 | can also be used to add supplemental files to an archive and to update | |
43 | or list files in the archive. | |
75223ba3 | 44 | |
45 | Tar includes multivolume support, automatic archive compression/ | |
8b677dcc | 46 | decompression, the ability to perform remote archives and the ability |
47 | to perform incremental and full backups. | |
75223ba3 | 48 | |
8b677dcc | 49 | If you want to use Tar for remote backups, you'll also need to install |
50 | the rmt package. | |
75223ba3 | 51 | |
8eb9648d | 52 | %description -l de.UTF-8 |
75223ba3 | 53 | Das GNU tar-Programm speichert mehrere Dateien in ein Archiv, und kann |
8b677dcc | 54 | einzelne Dateien daraus wiederherstellen (oder auch alle Dateien). Tar |
8eb9648d JR |
55 | kann auch benutzt werden, um einem Archiv Dateien hinzuzufügen, und um |
56 | die Liste der Dateien im Archiv anzuzeigen oder zu verändern. | |
75223ba3 | 57 | |
8eb9648d JR |
58 | Tar enthält multivolume-Support, automatische |
59 | Archivkompression/dekompression, the Möglichkeit, Dateien per Netzwerk | |
60 | zu archivieren und die Möglichkeit zu inkrementellen backups. | |
75223ba3 | 61 | |
8eb9648d JR |
62 | Wenn Sie tar für Netzwerkbackups benutzen wollen, brauchen Sie |
63 | außerdem das rmt-Paket. | |
75223ba3 | 64 | |
8eb9648d | 65 | %description -l es.UTF-8 |
2d273615 | 66 | GNU "tar" guarda varios archivos juntos, en una cinta o archivo de |
67 | disco, y puede restaurar archivos individuales de este almacenaje. | |
8eb9648d JR |
68 | Incluye soporte para multivolúmenes, habilidad de almacenar archivos |
69 | dispersos, compresión/descompresión automática, almacenajes remotos y | |
70 | características especiales que permiten "tar" ser usado para backups | |
2d273615 | 71 | incrementales y completos. Si deseas hacer backups remotos con tar, te |
8eb9648d | 72 | hará falta instalar el paquete "rmt". |
2d273615 | 73 | |
8eb9648d | 74 | %description -l fr.UTF-8 |
8b677dcc | 75 | Le programme GNU tar permet de regrouper plusieurs fichiers en une |
8eb9648d JR |
76 | seule archive et d'effectuer diverses opérations sur cette archive |
77 | (extraction d'un fichier particulier, mise à jour, ajout d'un nouveau | |
8b677dcc | 78 | fichier, ...). |
75223ba3 | 79 | |
8eb9648d JR |
80 | Tar gère les archives multi-volumes, la compression et la |
81 | décompression de manière transparente ainsi que la possibilité de | |
82 | réaliser des sauvegardes incrémentales et des sauvegardes complètes. | |
75223ba3 | 83 | |
8b677dcc | 84 | Si vous comptez utiliser Tar pour des sauvegardes distantes, vous |
8eb9648d JR |
85 | devriez également installer le programme rmt. |
86 | ||
87 | Tar devrait être installé sur tout système car ses capacité de | |
88 | (dé)compression sont essentielles pour travailler sur les fichiers. | |
89 | ||
90 | %description -l pl.UTF-8 | |
91 | Program GNU tar służy do zapisywania wielu plików w pojedynczym | |
92 | archiwum i może także służyć do odzyskiwania z tak preparowanych | |
93 | archiwów pojedynczych plików (lub wszystkich). Za jego pomocą można | |
94 | także dodawać nowe pliki do już istniejącego archiwum. | |
95 | ||
96 | GNU tar umożliwia robienie wieloczęściowych archiwów (multivolume | |
97 | archive), automatyczną kompresję i dekompresję samego archiwum a także | |
98 | ma możliwość operowania na zdalnych archiwach co jest przydatne przy | |
99 | sporządzaniu przyrostowych i pełnych archiwów zasobów. | |
100 | ||
101 | Jeżeli zamierzasz używać programu tar do operowania na zdalnych | |
102 | archiwach powinieneś doinstalować pakiet rmt. | |
103 | ||
104 | GNU tar służy do zapisywania wielu plików na taśmę lub dysk. Może | |
105 | odtwarzać pojedyncze pliki z archiwum. Umożliwia zapis dużego archiwum | |
106 | z podziałem na wiele nośników. Tar obsługuje także automatyczną | |
107 | kompresję/dekompresję i archiwa zdalne. Posiada specjalne opcje do | |
108 | robienia pełnych i przyrostowych kopii bezpieczeństwa. Aby tworzyć | |
109 | zdalne archiwa tar-a trzeba zainstalować pakiet rmt. | |
110 | ||
111 | %description -l pt_BR.UTF-8 | |
112 | GNU "tar" guarda vários arquivos juntos em uma fita ou arquivo de | |
2d273615 | 113 | disco, e pode restaurar arquivos individuais desta armazenagem. Ele |
114 | inclui suporte para multi-volumes, habilidade de armazenar arquivos | |
8eb9648d JR |
115 | dispersos, compressão/descompressão automática, armazenamentos remotos |
116 | e características especiais que permitem "tar" ser usado para backups | |
117 | incrementais e completos. Se você deseja fazer backups remotos com | |
118 | tar, você irá precisar instalar o pacote "rmt". | |
119 | ||
120 | %description -l tr.UTF-8 | |
121 | GNU tar, birden çok dosyayı tek bir manyetik bant ya da disk üzerinde | |
122 | arşivleyebildiği gibi, bu dosyaların arşivden tek tek geri | |
123 | yüklenmesine de izin verir. Çok kısımlı arşivleri, otomatik arşiv | |
124 | sıkıştırma ve açmayı, uzak arşivleri, artımsal yedeklemeyi destekler. | |
f3829c8b | 125 | |
ee5ecb5f AG |
126 | %package rmt |
127 | Summary: tar's version of rmt utility | |
01c1d2ef | 128 | Summary(pl.UTF-8): Narzędzie rmt z pakietu tar |
ee5ecb5f AG |
129 | Group: Applications/Archiving |
130 | ||
131 | %description rmt | |
132 | This package provdes rmt utility which can be used instead of the one | |
133 | coming from dump project. | |
134 | ||
135 | %description rmt -l pl.UTF-8 | |
01c1d2ef | 136 | Pakiet ten dostarcza narzędzie rmt, które może być użyte zamiast tego |
ee5ecb5f AG |
137 | z pakietu dump. |
138 | ||
f3829c8b | 139 | %prep |
140 | %setup -q | |
1e8c54d2 | 141 | %patch0 -p1 |
c6fe2902 | 142 | %patch1 -p1 |
99d7b1ab | 143 | |
2bb32ec2 | 144 | %{__rm} po/stamp-po |
f3829c8b | 145 | |
146 | %build | |
6d851e20 | 147 | %{__gettextize} |
f555f985 | 148 | %{__aclocal} -I m4 |
e16d72f9 | 149 | %{__autoconf} |
99d7b1ab | 150 | %{__autoheader} |
e16d72f9 | 151 | %{__automake} |
7236c760 JB |
152 | %configure \ |
153 | --disable-silent-rules | |
f3829c8b | 154 | |
72132ba8 | 155 | %{__make} |
f3829c8b | 156 | |
8707b667 AM |
157 | %{?with_tests:%{__make} check} |
158 | ||
f3829c8b | 159 | %install |
160 | rm -rf $RPM_BUILD_ROOT | |
a31564b0 | 161 | install -d $RPM_BUILD_ROOT{/usr/bin,%{_mandir}/man1} |
f3829c8b | 162 | |
99d7b1ab JB |
163 | %{__make} install \ |
164 | DESTDIR=$RPM_BUILD_ROOT | |
f3829c8b | 165 | |
a31564b0 | 166 | ln -sf %{_bindir}/tar $RPM_BUILD_ROOT/usr/bin/gtar |
99d7b1ab | 167 | |
1e8c54d2 | 168 | help2man ./src/tar -o tar.1 |
1a4ecaf6 | 169 | install tar.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
26693f42 | 170 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
2698dc7e | 171 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.tar-non-english-man-pages |
f3829c8b | 172 | |
2396a1a2 | 173 | %find_lang %{name} |
174 | ||
5b1cc786 JB |
175 | %clean |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | ||
8de5e139 | 178 | %post -p /sbin/postshell |
8998ffe2 | 179 | -/usr/sbin/fix-info-dir -c %{_infodir} |
f3829c8b | 180 | |
8de5e139 | 181 | %postun -p /sbin/postshell |
8998ffe2 | 182 | -/usr/sbin/fix-info-dir -c %{_infodir} |
f3829c8b | 183 | |
2396a1a2 | 184 | %files -f %{name}.lang |
8b677dcc | 185 | %defattr(644,root,root,755) |
15ee9302 | 186 | %doc README NEWS |
4e882ccd JB |
187 | %attr(755,root,root) %{_bindir}/tar |
188 | %attr(755,root,root) /usr/bin/gtar | |
1a4ecaf6 | 189 | %{_infodir}/tar.info* |
4e882ccd JB |
190 | %{_mandir}/man1/tar.1* |
191 | %lang(de) %{_mandir}/de/man1/tar.1* | |
192 | %lang(es) %{_mandir}/es/man1/tar.1* | |
193 | %lang(fi) %{_mandir}/fi/man1/tar.1* | |
194 | %lang(fr) %{_mandir}/fr/man1/tar.1* | |
195 | %lang(hu) %{_mandir}/hu/man1/tar.1* | |
196 | %lang(id) %{_mandir}/id/man1/tar.1* | |
197 | %lang(it) %{_mandir}/it/man1/tar.1* | |
198 | %lang(ja) %{_mandir}/ja/man1/tar.1* | |
199 | %lang(nl) %{_mandir}/nl/man1/tar.1* | |
200 | %lang(pl) %{_mandir}/pl/man1/tar.1* | |
ee5ecb5f AG |
201 | |
202 | %files rmt | |
203 | %defattr(644,root,root,755) | |
4e882ccd | 204 | %attr(755,root,root) /sbin/rmt |
ec2879b4 | 205 | %{_mandir}/man8/rmt.8* |