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