Summary(tr): GNU cpio arþivleme programý
Name: cpio
Version: 2.4.2
-Release: 12
-Copyright: GPL
+Release: 17
+License: GPL
Group: Utilities/Archiving
Group(pl): Narzêdzia/Archiwizacja
-Source: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
+Source0: ftp://prep.ai.mit.edu/pub/gnu/cpio/%{name}-%{version}.tar.gz
Patch0: cpio-glibc.patch
Patch1: cpio-mtime.patch
Patch2: cpio-svr4compat.patch
Patch3: cpio-info.patch
Patch4: cpio-glibc21.patch
-Prereq: /sbin/install-info
-Buildroot: /tmp/%{name}-%{version}-root
+Patch5: cpio-longlongdev.patch
+Patch6: cpio-DESTDIR.patch
+Patch7: cpio-stdout.patch
+Patch8: cpio-emptylink.patch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _exec_prefix /
%description
-cpio copies files into or out of a cpio or tar archive, which is a
-file that contains other files plus information about them, such as
-their file name, owner, timestamps, and access permissions. The
-archive can be another file on the disk, a magnetic tape, or a pipe.
-cpio has three operating modes.
+GNU cpio copies files into or out of a cpio or tar archive. Archives
+are files which contain a collection of other files plus information
+about them, such as their file name, owner, timestamps, and access
+permissions. The archive can be another file on the disk, a magnetic
+tape, or a pipe. GNU cpio supports the following archive formats:
+binary, old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old
+tar and POSIX.1 tar. By default, cpio creates binary format archives,
+so that they are compatible with older cpio programs. When it is
+extracting files from archives, cpio automatically recognizes which
+kind of archive it is reading and can read archives created on
+machines with a different byte-order.
+
+Install cpio if you need a program to manage file archives.
%description -l de
-cpio erstellt Kopien von Dateien in oder von einem cpio- oder tar-
-Archiv. Die Dateien enthalten andere Dateien, zusammen mit
-Informationen über diese - etwa den Dateinamen, den Besitzer,
-Zeitstempel und Zugriffsrechte. Das Archiv kann eine andere Datei
-auf der Festplatte, ein Magnetband oder eine Pipe sein. cpio
-arbeitet mit drei Betriebsarten.
+GNU cpio kopiert Dateien in oder aus einem CPIO- oder Tar-Archiv.
+Archive sind Dateien, die eine Sammlung anderer Dateien und
+informationen über sie, wie Dateiname, Besitzer, Zugriffszeiten und
+-berechtigungen, enthalten. Das Archiv kann eine andere Datei auf der
+Festplatte sein, oder ein Streamerband, oder ein pipe. GNU cpio
+unterstützt die archiv-Formate binary, old ASCII, new ASCII, crc, HPUX
+binary, HPUX old ASCII, old tar und POSIX.1 tar. Standardmäßig erzeugt
+cpio Archive im binary-Format, so daß sie mit älteren cpio-Programmen
+kompatibel sind. Beim Extrahieren von Dateien aus Archiven erkennt
+cpio das Format automatisch, es kann auch Archive lesen, die auf
+Computern mit anderer Byteordnung erzeugt wurden.
%description -l fr
cpio copie des fichiers dans ou à partir d'une archive tar ou cpio,
qui est un fichier contenant d'autres fichiers plus des informations
-sur ceux-ci, comme leur nom, leur propriétaire, la date et les permissions.
-L'archive peut être un autre fichier sur le disque, une bande ou un tube.
-cpio possède trois modes de fonctionnement.
+sur ceux-ci, comme leur nom, leur propriétaire, la date et les
+permissions. L'archive peut être un autre fichier sur le disque, une
+bande ou un tube. cpio possède trois modes de fonctionnement.
%description -l pl
-cpio kopiuje pliki do/z archiwum cpio lub tar-a, które jest pojedynczym
-zbiorem zawieraj±cym pozosta³e pliki wraz z dodatkowymi
+cpio kopiuje pliki do/z archiwum cpio lub tar-a, które jest
+pojedynczym zbiorem zawieraj±cym pozosta³e pliki wraz z dodatkowymi
informacjami jak np. nazwa, w³a¶ciciel, czas modyfikacji i prawa
dostêpu. Archiwum mo¿e byæ plikiem na dysku, ta¶mie magetycznej, albo
-potokiem.
+potokiem.
%description -l tr
-cpio programý, cpio veya tar arþivlerinden dosya çeker ya da bu arþivlere
-dosya koyar. Bu arþivler, dosyalarýn içeriðinden ve ayrýca dosyanýn adý,
-sahibi, zaman bilgileri ve eriþim haklarý gibi bilgilerden oluþur. Arþiv,
-disk üzerinde baþka bir dosya, manyetik bir teyp veya bir pipe olabilir.
+cpio programý, cpio veya tar arþivlerinden dosya çeker ya da bu
+arþivlere dosya koyar. Bu arþivler, dosyalarýn içeriðinden ve ayrýca
+dosyanýn adý, sahibi, zaman bilgileri ve eriþim haklarý gibi
+bilgilerden oluþur. Arþiv, disk üzerinde baþka bir dosya, manyetik bir
+teyp veya bir pipe olabilir.
%prep
%setup -q
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
- --prefix=/usr \
- --bindir=/bin \
- --libexecdir=/sbin
+LDFLAGS="-s"; export LDFLAGS
+%configure
+
make
%install
rm -rf $RPM_BUILD_ROOT
-make install \
- prefix=$RPM_BUILD_ROOT/usr \
- bindir=$RPM_BUILD_ROOT/bin \
- libexecdir=$RPM_BUILD_ROOT/sbin
+make install DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf $RPM_BUILD_ROOT/usr/{info/cpio*,man/man1/*}
+gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/cpio*,%{_mandir}/man1/*} \
+ README
%post
-/sbin/install-info /usr/info/cpio.info.gz /etc/info-dir
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-%preun
-if [ "$1" = "0" ]; then
- /sbin/install-info --delete /usr/info/cpio.info.gz /etc/info-dir
-fi
+%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
%defattr(644,root,root,755)
-%doc README
-%attr(755,root,root) /bin/*
-/usr/info/cpio*
-/usr/man/man1/*
-
-%changelog
-* Thu Mar 11 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.4.2-12]
-- removed man group from man pages.
-
-* Tue Jan 26 1999 Micha³ Kuratczyk <kurkens@polbox.com>
-- added "Group(pl)"
-- cosmetics changes in %files
-- fixed pl translation
-
-* Thu Dec 29 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.4.2-11]
-- added %post, %postun with {un}registering info pages (also patch
- cpio-info.patch),
-- added gzipping man pages,
-- added LDFLAGS="-s" to ./configure enviroment.
-
-* Wed Sep 23 1998 Marcin Korzonek <mkorz@shadow.eu.org>
- [2.4.2-10]
-- added pl translation.
-
-* 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 package.
-- Don't include /bin/mt -- use the mt from mt-st package.
-- Add prereq's
-
-* Tue Jun 30 1998 Jeff Johnson <jbj@redhat.com>
-- fix '-c' to duplicate svr4 behavior (problem #438)
-- install support programs & info pages
-
-* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
-- added BuildRoot
-- removed "(used by RPM)" comment in Summary
-
-* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
-- no longer statically linked as RPM doesn't use cpio for unpacking packages
+%doc README.gz
+%attr(755,root,root) /bin/cpio
+%{_infodir}/cpio*
+%{_mandir}/man1/cpio.*