source: projects/specs/trunk/c/cpio/cpio-vl.spec @ 9229

Revision 9229, 8.6 KB checked in by inagaki, 9 years ago (diff)

2015-01-05 Ryoichi INAGAKI <ryo1@…>

  • chmlib: rebuilt
  • cpio: added patch from Vine Linux 6
  • lm-sensors, rrdtool: updated


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