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