]> git.pld-linux.org Git - packages/cpio.git/blob - cpio.spec
- relaese 21.
[packages/cpio.git] / cpio.spec
1 Summary:        GNU cpio archiving program
2 Summary(de):    GNU-cpio-Archivierungsprogramm 
3 Summary(fr):    Programme d'archivage cpio de GNU
4 Summary(pl):    Program archwizuj±cy na licencji GNU
5 Summary(tr):    GNU cpio arþivleme programý
6 Name:           cpio
7 Version:        2.4.2
8 Release:        21
9 License:        GPL
10 Group:          Utilities/Archiving
11 Group(pl):      Narzêdzia/Archiwizacja
12 Source0:        ftp://prep.ai.mit.edu/pub/gnu/cpio/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-glibc.patch
14 Patch1:         %{name}-mtime.patch
15 Patch2:         %{name}-svr4compat.patch
16 Patch3:         %{name}-info.patch
17 Patch4:         %{name}-glibc21.patch
18 Patch5:         %{name}-longlongdev.patch
19 Patch6:         %{name}-DESTDIR.patch
20 Patch7:         %{name}-stdout.patch
21 Patch8:         %{name}-emptylink.patch
22 Patch9:         %{name}-errorcode.patch
23 Patch10:        %{name}-gethostname_is_in_libc_aka_no_libnsl.patch
24 BuildRequires:  autoconf
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _exec_prefix    /
28
29 %description
30 GNU cpio copies files into or out of a cpio or tar archive. Archives
31 are files which contain a collection of other files plus information
32 about them, such as their file name, owner, timestamps, and access
33 permissions. The archive can be another file on the disk, a magnetic
34 tape, or a pipe. GNU cpio supports the following archive formats:
35 binary, old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old
36 tar and POSIX.1 tar. By default, cpio creates binary format archives,
37 so that they are compatible with older cpio programs. When it is
38 extracting files from archives, cpio automatically recognizes which
39 kind of archive it is reading and can read archives created on
40 machines with a different byte-order.
41
42 %description -l de
43 GNU cpio kopiert Dateien in oder aus einem CPIO- oder Tar-Archiv.
44 Archive sind Dateien, die eine Sammlung anderer Dateien und
45 informationen über sie, wie Dateiname, Besitzer, Zugriffszeiten und
46 -berechtigungen, enthalten. Das Archiv kann eine andere Datei auf
47 der Festplatte sein, oder ein Streamerband, oder ein pipe. GNU cpio
48 unterstützt die archiv-Formate binary, old ASCII, new ASCII, crc, HPUX
49 binary, HPUX old ASCII, old tar und POSIX.1 tar. Standardmäßig erzeugt
50 cpio Archive im binary-Format, so daß sie mit älteren cpio-Programmen
51 kompatibel sind. Beim Extrahieren von Dateien aus Archiven erkennt
52 cpio das Format automatisch, es kann auch Archive lesen, die auf
53 Computern mit anderer Byteordnung erzeugt wurden.
54
55 %description -l fr
56 cpio copie des fichiers dans ou à partir d'une archive tar ou cpio,
57 qui est un fichier contenant d'autres fichiers plus des informations
58 sur ceux-ci, comme leur nom, leur propriétaire, la date et les
59 permissions. L'archive peut être un autre fichier sur le disque, une
60 bande ou un tube. cpio possède trois modes de fonctionnement.
61
62 %description -l pl
63 cpio kopiuje pliki do/z archiwum cpio lub tar-a, które jest
64 pojedynczym zbiorem zawieraj±cym pozosta³e pliki wraz z dodatkowymi
65 informacjami jak np. nazwa, w³a¶ciciel, czas modyfikacji i prawa
66 dostêpu. Archiwum mo¿e byæ plikiem na dysku, ta¶mie magetycznej, albo
67 potokiem.
68
69 %description -l tr
70 cpio programý, cpio veya tar arþivlerinden dosya çeker ya da bu
71 arþivlere dosya koyar. Bu arþivler, dosyalarýn içeriðinden ve ayrýca
72 dosyanýn adý, sahibi, zaman bilgileri ve eriþim haklarý gibi
73 bilgilerden oluþur. Arþiv, disk üzerinde baþka bir dosya, manyetik bir
74 teyp veya bir pipe olabilir.
75
76 %prep
77 %setup -q
78 %patch0 -p1
79 %patch1 -p1
80 %patch2 -p1
81 %patch3 -p1
82 %patch4 -p1
83 %patch5 -p1
84 %patch6 -p1
85 %patch7 -p1
86 %patch8 -p1
87 %patch9 -p1
88 %patch10 -p1
89 chmod -R a+Xr,u+Xw .
90
91 %build
92 autoconf
93 LDFLAGS="-s"; export LDFLAGS 
94 %configure 
95
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install DESTDIR=$RPM_BUILD_ROOT 
102         
103 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/cpio*,%{_mandir}/man1/*} \
104         README
105
106 %post
107 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
108
109 %postun
110 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files
116 %defattr(644,root,root,755)
117 %doc README.gz
118 %attr(755,root,root) /bin/cpio
119 %{_infodir}/cpio*
120 %{_mandir}/man1/cpio.*
This page took 0.030979 seconds and 3 git commands to generate.