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

Revision 12322, 9.8 KB checked in by tomop, 4 years ago (diff)

updated 13 packages

cpio-2.13-1

curl-7.68.0-1

e2fsprogs-1.45.5-1

firefox-68.5.0-1

flex-2.6.4-1

libarchive-3.4.2-1

libogg-1.3.4-1

libssh-0.9.3-1

libtasn1-4.16.0-1

libvorbis-1.3.6-1

nghttp2-1.40.0-1

thunderbird-68.5.0-1

vorbis-tools-1.4.0-5

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