source: projects/specs/branches/6/c/cpio/cpio-vl.spec @ 3492

Revision 3492, 8.1 KB checked in by inagaki, 13 years ago (diff)

update: afio, cpio

Line 
1%ifos linux
2%define _bindir         /bin
3%define _libexecdir     /sbin
4%endif
5
6Summary: A GNU archiving program.
7Summary(ja): GNU アーカイブプログラム
8Name: cpio
9Version: 2.11
10Release: 1%{?_dist_release}
11
12License: GPLv3
13Group: Applications/Archiving
14URL: ftp://ftp.gnu.org/pub/gnu/cpio/
15
16Source: ftp://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.bz2
17Source1: cpio.1
18Patch1: cpio-2.6-setLocale.patch
19Patch2: cpio-2.9-rh.patch
20Patch3: cpio-2.9-chmodRaceC.patch
21Patch4: cpio-2.9-exitCode.patch
22Patch5: cpio-2.9-dir_perm.patch
23Patch6: cpio-2.9-dev_number.patch
24
25%ifnos linux
26Requires(post): /sbin/rmt
27%endif
28Requires(post): /sbin/install-info
29Requires(preun): /sbin/install-info
30BuildRequires: texinfo autoconf gettext
31Buildroot: %{_tmppath}/%{name}-%{version}-root
32
33
34%description
35GNU cpio copies files into or out of a cpio or tar archive.  Archives
36are files which contain a collection of other files plus information
37about them, such as their file name, owner, timestamps, and access
38permissions.  The archive can be another file on the disk, a magnetic
39tape, or a pipe.  GNU cpio supports the following archive formats:  binary,
40old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1
41tar.  By default, cpio creates binary format archives, so that they are
42compatible with older cpio programs.  When it is extracting files from
43archives, cpio automatically recognizes which kind of archive it is reading
44and can read archives created on machines with a different byte-order.
45
46Install cpio if you need a program to manage file archives.
47
48
49%description -l ja
50GNU cpio は cpio アーカイブ或いは tar アーカイブにファイルをコピーしたり
51取り出したりするプログラムです.アーカイブというのは,(1つ以上の)ファイルと
52その情報(ファイル名,オーナー,更新日付,パーミッション等)がまとめられた
531つのファイルのことです.アーカイブはディスク上のファイル,磁気テープ,
54或いはパイプであっても構いません.
55GNU cpio がサポートしているアーカイブ形式は以下の通りです:
56    バイナリ, old ASCII, new ASCII, crc, HPUX バイナリ, HPUX old ASCII,
57    old tar, POSIX.1 tar
58デフォルトでは cpio はバイナリ形式のアーカイブを作成します.
59これは古いバージョンの cpio との互換性の為です.
60アーカイブを展開する場合は,cpio はアーカイブの形式を自動認識しますし,
61バイトオーダの異なる機械で作成されたアーカイブを読むことも可能です.
62
63ファイルアーカイブを扱うプログラムが必要なら,cpio をインストールして下さい.
64
65
66%prep
67%setup -q
68%patch1  -p1 -b .setLocale
69%patch2  -p1 -b .rh
70#patch3  -p1 -b .chmodRaceC
71%patch4  -p1 -b .exitCode
72#patch5  -p1 -b .dir_perm
73%patch6  -p1 -b .dev_number
74
75autoheader
76
77%build
78
79CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -Wall" %configure
80make %{?_smp_mflags}
81
82%install
83rm -rf $RPM_BUILD_ROOT
84
85make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
86
87{ cd $RPM_BUILD_ROOT
88
89%ifos linux
90# XXX these from mt-st
91  rm -f .%{_bindir}/mt .%{_mandir}/man1/mt.1
92%endif
93}
94
95rm -f $RPM_BUILD_ROOT%{_infodir}/dir
96rm -f $RPM_BUILD_ROOT/sbin/rmt
97rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1*
98install -c -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1
99
100%clean
101rm -rf $RPM_BUILD_ROOT
102
103%post
104/sbin/install-info %{_infodir}/cpio.info.gz %{_infodir}/dir
105
106%preun
107if [ $1 = 0 ]; then
108    /sbin/install-info --delete %{_infodir}/cpio.info.gz %{_infodir}/dir
109fi
110
111
112%files
113%defattr(-,root,root)
114%doc AUTHORS ChangeLog NEWS README THANKS TODO
115%ifnos linux
116%{_libexecdir}/*
117%endif
118%{_bindir}/*
119%{_mandir}/man*/*
120%{_infodir}/*.info*
121%{_datadir}/locale/*
122
123%changelog
124* Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.11-1
125- new upstream release
126- rebuilt with current VineSeed
127
128* Fri Jan  1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.10-1
129- new upstream release
130
131* Sun Sep 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9.90-1vl5
132- new upstream from alpha version
133- applied new versioning policy
134- spec in UTF-8
135- added Patch5 and 6 from FC
136  * Fri Jul 18 2008 Kamil Dudka <kdudka@redhat.com> 2.9.90-2
137  - Support major/minor device numbers over 127 (bz#450109)
138  * Mon Mar 03 2008 Radek Brich <rbrich@redhat.com> 2.9-7
139  - fix -dir_perm patch to restore permissions correctly even
140    in passthrough mode -- revert affected code to cpio 2.8 state
141    (bz#430835)
142
143* Sat Aug 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9-1vl1
144- new upstream release
145
146* Sat Apr 16 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6-5vl1
147- based on Fedora development 2.6-5
148  * Mon Jan 24 2005 Peter Vrabec <pvrabec@redhat.com>
149  - insecure file creation (#145721)
150  * Mon Jan 17 2005 Peter Vrabec <pvrabec@redhat.com>
151  - fix symlinks pack (#145225)
152  * Fri Jan 14 2005 Peter Vrabec <pvrabec@redhat.com>
153  - new fixed version of lfs patch (#144688)
154  * Tue Nov 09 2004 Peter Vrabec <pvrabec@redhat.com>
155  - fixed "cpio -oH ustar (or tar) saves bad mtime date after Jan 10 2004" (#114580)
156  * Mon Nov 01 2004 Peter Vrabec <pvrabec@redhat.com>
157  - support large files > 2GB (#105617)
158
159* Wed Dec 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.5-1vl1
160- based on 2.5-1 from rawhide and built for Vine Linux
161- added Japanese summary and description
162
163* Mon Nov 18 2002 Jeff Johnson <jbj@redhat.com> 2.5-1
164- update 2.5, restack and consolidate patches.
165- don't apply (but include for now) freebsd and #56346 patches.
166- add url (#54598).
167
168* Thu Nov  7 2002 Jeff Johnson <jbj@redhat.com> 2.4.2-30
169- rebuild from CVS.
170
171* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
172- automated rebuild
173
174* Thu May 23 2002 Tim Powers <timp@redhat.com>
175- automated rebuild
176
177* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
178- automated rebuild
179
180* Thu Nov 22 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.4.2-25
181- Fix up extraction of multiply linked files when the first link is
182  excluded (Bug #56346)
183
184* Mon Oct  1 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.4.2-24
185- Merge and adapt patches from FreeBSD, this should fix FIFO handling
186
187* Tue Jun 26 2001 Bernhard Rosenkraenzer <bero@redhat.com>
188- Add and adapt Debian patch (pl36), fixes #45285 and a couple of other issues
189
190* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
191- Bump release + rebuild.
192
193* Tue Aug  8 2000 Jeff Johnson <jbj@redhat.com>
194- update man page with decription of -c behavior (#10581).
195
196* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
197- automatic rebuild
198
199* Thu Jun 29 2000 Preston Brown <pbrown@redhat.com>
200- patch from HJ Lu for better error codes upon exit
201
202* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
203- FHS packaging.
204
205* Wed Feb  9 2000 Jeff Johnson <jbj@redhat.com>
206- missing defattr.
207
208* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
209- handle compressed manpages
210
211* Fri Dec 17 1999 Jeff Johnson <jbj@redhat.com>
212- revert the stdout patch (#3358), restoring original GNU cpio behavior
213  (#6376, #7538), the patch was dumb.
214
215* Tue Aug 31 1999 Jeff Johnson <jbj@redhat.com>
216- fix infinite loop unpacking empty files with hard links (#4208).
217- stdout should contain progress information (#3358).
218
219* Sun Mar 21 1999 Crstian Gafton <gafton@redhat.com>
220- auto rebuild in the new build environment (release 12)
221
222* Sat Dec  5 1998 Jeff Johnson <jbj@redhat.com>
223- longlong dev wrong with "-o -H odc" headers (formerly "-oc").
224
225* Thu Dec 03 1998 Cristian Gafton <gafton@redhat.com>
226- patch to compile on glibc 2.1, where strdup is a macro
227
228* Tue Jul 14 1998 Jeff Johnson <jbj@redhat.com>
229- Fiddle bindir/libexecdir to get RH install correct.
230- Don't include /sbin/rmt -- use the rmt from dump package.
231- Don't include /bin/mt -- use the mt from mt-st package.
232- Add prereq's
233
234* Tue Jun 30 1998 Jeff Johnson <jbj@redhat.com>
235- fix '-c' to duplicate svr4 behavior (problem #438)
236- install support programs & info pages
237
238* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
239- translations modified for de, fr, tr
240
241* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
242- added BuildRoot
243- removed "(used by RPM)" comment in Summary
244
245* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
246- built against glibc
247- no longer statically linked as RPM doesn't use cpio for unpacking packages
Note: See TracBrowser for help on using the repository browser.