]> git.pld-linux.org Git - packages/cpio.git/blobdiff - cpio.spec
fixed a small typo
[packages/cpio.git] / cpio.spec
index b37975682495b662a20d25f1c629f2200b078044..4d23c35eb8678a36ee90209e16063f03de235f26 100644 (file)
--- a/cpio.spec
+++ b/cpio.spec
@@ -1,58 +1,95 @@
 Summary:       GNU cpio archiving program
-Summary(de):   GNU-cpio-Archivierungsprogramm 
+Summary(de):   GNU-cpio-Archivierungsprogramm
+Summary(es):   Programa de empaquetado cpio de la GNU (usado por el utilitario rpm)
 Summary(fr):   Programme d'archivage cpio de GNU
 Summary(pl):   Program archwizuj±cy na licencji GNU
+Summary(pt_BR):        Programa de empacotamento cpio da GNU (usado pelo utilitário rpm)
 Summary(tr):   GNU cpio arþivleme programý
 Name:          cpio
 Version:       2.4.2
-Release:       14
-Copyright:     GPL
-Group:         Utilities/Archiving
-Group(pl):     Narzêdzia/Archiwizacja
-Source:                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
-Patch5:                cpio-longlongdev.patch
-Prereq:                /sbin/install-info
-Buildroot:     /tmp/%{name}-%{version}-root
+Release:       27
+License:       GPL
+Group:         Applications/Archiving
+Source0:       ftp://prep.ai.mit.edu/pub/gnu/cpio/%{name}-%{version}.tar.gz
+Patch0:                %{name}-glibc.patch
+Patch1:                %{name}-mtime.patch
+Patch2:                %{name}-svr4compat.patch
+Patch3:                %{name}-info.patch
+Patch4:                %{name}-glibc21.patch
+Patch5:                %{name}-longlongdev.patch
+Patch6:                %{name}-DESTDIR.patch
+Patch8:                %{name}-emptylink.patch
+Patch9:                %{name}-errorcode.patch
+Patch10:       %{name}-gethostname_is_in_libc_aka_no_libnsl.patch
+Patch11:       %{name}-man.patch
+Patch12:       %{name}-debian36.patch
+Patch13:       %{name}-freebsd.patch
+Patch14:       %{name}-bug56346.patch
+BuildRequires: autoconf
+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.
 
 %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 pt_BR
+cpio copia arquivos para dentro ou para fora ou de um "archive" cpio
+ou tar, que é um arquivo que contém outros arquivos mais informações
+sobre eles, como o seu nome de arquivo, dono e permissões de acesso. O
+"archive" pode ser outro arquivo no disco, uma fita magnética ou um
+pipe. cpio possui três modos de operação.
 
 %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 es
+cpio copia archivos para dentro o para fuera, o de un "archive" cpio o
+tar, que es un archivo que contiene otros archivos, más información
+sobre ellos, como su nombre de archivo, dueño y permisos de acceso.
+"archive" puede ser otro archivo en el disco, una cinta magnética o un
+pipe. cpio posee tres modos de operación.
 
 %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
@@ -62,33 +99,34 @@ disk 
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+chmod -R a+Xr,u+Xw .
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr \
-       --bindir=/bin \
-       --libexecdir=/sbin
-make
+autoconf
+%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
-       
-gzip -9nf $RPM_BUILD_ROOT/usr/{info/cpio*,man/man1/*} \
-       README
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+gzip -9nf README
 
 %post
-/sbin/install-info %{_infodir}/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 %{_infodir}/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
@@ -98,58 +136,4 @@ rm -rf $RPM_BUILD_ROOT
 %doc README.gz
 %attr(755,root,root) /bin/cpio
 %{_infodir}/cpio*
-%{_mandir}/man1/*
-
-%changelog
-* Wed Apr 28 1999 Artur Frysiak <wiget@pld.org.pl>
-  [2.4.2-14]
-- added longlongdev.patch from RH 6.0
- { longlong dev wrong with "-o -H odc" headers (formerly "-oc"). }
-
-* Thu Apr 22 1999 Artur Frysiak <wiget@pld.org.pl>
-  [2.4.2-13]
-- compiled on rpm 3
-- gzipped docs
-
-* Thu Mar 11 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.4.2-12]
-- added "Conflicts: glibc <= 2.0.7" for installing cpio in proper enviroment,
-- added cpio-glibc21.patch,
-- 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
+%{_mandir}/man1/cpio.*
This page took 0.04253 seconds and 4 git commands to generate.