pkubat / rpms / cpio

Forked from rpms/cpio 4 years ago
Clone
f3614fa
%define _bindir /bin
66b91e3
7bc03a8
Summary: A GNU archiving program
cvsdist 512286a
Name: cpio
ff4e032
Version: 2.10
eb7cf5f
Release: 6%{?dist}
Radek Brich 074785d
License: GPLv3+
cvsdist 512286a
Group: Applications/Archiving
e032091
URL: http://www.gnu.org/software/cpio/
ff4e032
Source: ftp://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.bz2
Radek Brich e98db37
Source1: cpio.1
c517879
Patch1: cpio-2.9-rh.patch
c517879
Patch2: cpio-2.9-chmodRaceC.patch
c517879
Patch3: cpio-2.9-exitCode.patch
c517879
Patch4: cpio-2.9-dir_perm.patch
c517879
Patch5: cpio-2.9-dev_number.patch
c517879
Patch6: cpio-2.9-sys_umask.patch
c517879
Patch7: cpio-2.9.90-defaultremoteshell.patch
c517879
Patch8: cpio-2.10-utimens.patch
c517879
Patch9: cpio-2.10-patternnamesigsegv.patch
eb7cf5f
# CVE-2010-0624 fix heap-based buffer overflow by expanding
eb7cf5f
# a specially-crafted archive(#572150)
eb7cf5f
Patch10: cpio-2.10-rtapeliboverflow.patch
b333b78
Requires(post): /sbin/install-info
b333b78
Requires(preun): /sbin/install-info
985de07
BuildRequires: texinfo, autoconf, gettext, rmt
b333b78
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist 512286a
cvsdist 512286a
%description
cvsdist 512286a
GNU cpio copies files into or out of a cpio or tar archive.  Archives
cvsdist 512286a
are files which contain a collection of other files plus information
cvsdist 512286a
about them, such as their file name, owner, timestamps, and access
cvsdist 512286a
permissions.  The archive can be another file on the disk, a magnetic
cvsdist 512286a
tape, or a pipe.  GNU cpio supports the following archive formats:  binary,
cvsdist 512286a
old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1
cvsdist 512286a
tar.  By default, cpio creates binary format archives, so that they are
cvsdist 512286a
compatible with older cpio programs.  When it is extracting files from
cvsdist 512286a
archives, cpio automatically recognizes which kind of archive it is reading
cvsdist 512286a
and can read archives created on machines with a different byte-order.
cvsdist 512286a
cvsdist 512286a
Install cpio if you need a program to manage file archives.
cvsdist 512286a
cvsdist 512286a
%prep
cvsdist 512286a
%setup -q
c517879
%patch1  -p1 -b .rh
c517879
%patch2  -p1 -b .chmodRaceC
c517879
%patch3  -p1 -b .exitCode
c517879
%patch4  -p1 -b .dir_perm
c517879
%patch5  -p1 -b .dev_number
c517879
%patch6  -p1 -b .sys_umask
c517879
%patch7  -p1 -b .defaultremote
c517879
%patch8  -p1 -b .utimens
eb7cf5f
%patch9 -p1 -b .patternsegv
eb7cf5f
%patch10 -p1 -b .rtapelib
d46f00d
2940cc7
autoheader
cvsdist 512286a
cvsdist 512286a
%build
cvsdist 512286a
985de07
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -Wall" %configure --with-rmt="%{_sysconfdir}/rmt"
b333b78
make %{?_smp_mflags}
cvsdist 512286a
cvsdist 512286a
%install
cvsdist 512286a
rm -rf ${RPM_BUILD_ROOT}
cvsdist 512286a
f3614fa
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
cvsdist 512286a
cvsdist 512286a
Radek Brich 80cc52e
rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt
Radek Brich 80cc52e
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
Radek Brich 80cc52e
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1*
Radek Brich e98db37
install -c -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1
cvsdist 512286a
b333b78
%find_lang %{name}
cvsdist 512286a
cvsdist 512286a
%clean
cvsdist 512286a
rm -rf ${RPM_BUILD_ROOT}
cvsdist 512286a
cvsdist 512286a
%post
4717609
if [ -f %{_infodir}/cpio.info.gz ]; then
4717609
	/sbin/install-info %{_infodir}/cpio.info.gz %{_infodir}/dir || :
4717609
fi
cvsdist 512286a
cvsdist 512286a
%preun
cvsdist 512286a
if [ $1 = 0 ]; then
4717609
	if [ -f %{_infodir}/cpio.info.gz ]; then
4717609
		/sbin/install-info --delete %{_infodir}/cpio.info.gz %{_infodir}/dir || :
4717609
	fi
cvsdist 512286a
fi
cvsdist 512286a
0005073
%files -f %{name}.lang
0005073
%defattr(-,root,root,0755)
b333b78
%doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING
cvsdist 512286a
%{_bindir}/*
cvsdist 512286a
%{_mandir}/man*/*
cvsdist 512286a
%{_infodir}/*.info*
cvsdist 512286a
cvsdist 512286a
%changelog
eb7cf5f
* Wed Mar 10 2010 Ondrej Vasik <ovasik@redhat.com> 2.10-6
eb7cf5f
- CVE-2010-0624 fix heap-based buffer overflow by expanding
eb7cf5f
  a specially-crafted archive(#572150)
eb7cf5f
c517879
* Thu Feb 25 2010 Ondrej Vasik <ovasik@redhat.com> 2.10-5
c517879
- remove redundant setLocale patch
c517879
- fix segfault with nonexisting file with patternnames
c517879
  (#567022)
c517879
880ab2f
* Wed Jan 06 2010 Ondrej Vasik <ovasik@redhat.com> 2.10-4
880ab2f
- do not fail with new POSIX 2008 utimens() glibc call
880ab2f
  (#552320)
880ab2f
4717609
* Thu Aug 06 2009 Ondrej Vasik <ovasik@redhat.com> 2.10-3
4717609
- do process install-info only without --excludedocs(#515924)
4717609
ea1c00e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-2
ea1c00e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ea1c00e
ff4e032
* Mon Jun 22 2009 Ondrej Vasik <ovasik@redhat.com> 2.10-1
ff4e032
- new upstream release 2.10
ff4e032
985de07
* Mon Mar  9 2009 Ondrej Vasik <ovasik@redhat.com> 2.9.90-5
985de07
- define default remote shell as /usr/bin/ssh(#452904)
985de07
- use /etc/rmt as default rmt command
985de07
9435f79
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.90-4
9435f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9435f79
3a74730
* Wed Feb 11 2009 Ondrej Vasik <ovasik@redhat.com> 2.9.90-3
3a74730
- make -d honor system umask(#484997)
3a74730
39fcc65
* Fri Jul 18 2008 Kamil Dudka <kdudka@redhat.com> 2.9.90-2
39fcc65
- Support major/minor device numbers over 127 (bz#450109)
39fcc65
38c4c85
* Tue Jun 02 2008 Ondrej Vasik <ovasik@redhat.com> 2.9.90-1
38c4c85
- new upstream alpha version 2.9.90 + removed applied patches
38c4c85
Radek Brich c94c071
* Mon Mar 03 2008 Radek Brich <rbrich@redhat.com> 2.9-7
Radek Brich c94c071
- fix -dir_perm patch to restore permissions correctly even
Radek Brich c94c071
  in passthrough mode -- revert affected code to cpio 2.8 state
Radek Brich c94c071
  (bz#430835)
Radek Brich c94c071
Radek Brich e95f529
* Thu Feb 14 2008 Radek Brich <rbrich@redhat.com> 2.9-6
Radek Brich e95f529
- when extracting archive created with 'find -depth',
Radek Brich e95f529
  restore the permissions of directories properly (bz#430835)
Radek Brich e95f529
- fix for GCC 4.3
Radek Brich e95f529
Radek Brich 4d103ff
* Thu Nov 01 2007 Radek Brich <rbrich@redhat.com> 2.9-5
Radek Brich 4d103ff
- upstream patch for CVE-2007-4476 (stack crashing in safer_name_suffix)
Radek Brich 4d103ff
Radek Brich 074785d
* Tue Sep 04 2007 Radek Brich <rbrich@redhat.com> 2.9-4
Radek Brich 074785d
- Updated license tag
Radek Brich 074785d
bc0396a
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.9-3
bc0396a
- Rebuild for selinux ppc32 issue.
bc0396a
Radek Brich 80cc52e
* Thu Jul 19 2007 Radek Brich <rbrich@redhat.com> 2.9-1.1
Radek Brich 80cc52e
- fix spec, rebuild
Radek Brich 80cc52e
Radek Brich e98db37
* Thu Jul 19 2007 Radek Brich <rbrich@redhat.com> 2.9-1
Radek Brich e98db37
- update to 2.9, GPLv3
Radek Brich e98db37
e716c0e
* Tue Feb 20 2007 Peter Vrabec <pvrabec@redhat.com> 2.6-27
e716c0e
- fix typo in changelog
e716c0e
531744f
* Thu Feb 08 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 2.6-26
f3614fa
- Preserve timestamps when installing files
f3614fa
66b91e3
* Thu Feb 08 2007 Peter Vrabec <pvrabec@redhat.com> 2.6-25
66b91e3
- set cpio bindir properly
66b91e3
66b91e3
* Wed Feb 07 2007 Peter Vrabec <pvrabec@redhat.com> 2.6-24
b333b78
- fix spec file to meet Fedora standards (#225656) 
b333b78
f7f29be
* Mon Jan 22 2007 Peter Vrabec <pvrabec@redhat.com> 2.6-23
2a12b63
- fix non-failsafe install-info use in scriptlets (#223682)
2a12b63
7bc03a8
* Sun Dec 10 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-22
7bc03a8
- fix rpmlint issue in spec file
7bc03a8
d46f00d
* Tue Dec 05 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-21
d46f00d
- fix setlocale (#200478)
d46f00d
2e61e9c
* Sat Nov 25 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-20
2e61e9c
- cpio man page provided by RedHat
2e61e9c
8293934
* Tue Jul 18 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-19
8293934
- fix cpio --help output (#197597)
8293934
5a4a7e5
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.6-18.1
5a4a7e5
- rebuild
5a4a7e5
cd63260
* Sat Jun 10 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-18
cd63260
- autoconf was added to BuildRequires, because autoheader is 
cd63260
  used in prep phase (#194737)
cd63260
6f709e2
* Tue Mar 28 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-17
6f709e2
- rebuild
6f709e2
cd1ff72
* Sat Mar 25 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-15
cd1ff72
- fix (#186339) on ppc and s390
cd1ff72
81dcc18
* Thu Mar 23 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-14
81dcc18
- init struct  file_hdr (#186339)
81dcc18
9cadd2b
* Wed Mar 15 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-13
9cadd2b
- merge toAsciiError.patch with writeOutHeaderBufferOverflow.patch
9cadd2b
- merge largeFileGrew.patch with lfs.patch
9cadd2b
- fix large file support, cpio is able to store files<8GB 
9cadd2b
  in 'old ascii' format (-H odc option)
9cadd2b
- adjust warnings.patch
9cadd2b
b797743
* Tue Mar 14 2006 Peter Vrabec <pvrabec@redhat.com> 2.6-12
b797743
- fix warn_if_file_changed() and set exit code to #1 when 
b797743
  cpio fails to store file > 4GB (#183224)
b797743
fc5083c
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.6-11.2.1
fc5083c
- bump again for double-long bug on ppc(64)
fc5083c
65490d1
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.6-11.2
65490d1
- rebuilt for new gcc4.1 snapshot and glibc changes
65490d1
df93238
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
df93238
- rebuilt
df93238
3554935
* Wed Nov 23 2005 Peter Vrabec <pvrabec@redhat.com> 2.6-11
3554935
- fix previous patch(writeOutHeaderBufferOverflow)
3554935
1d52177
* Wed Nov 23 2005 Peter Vrabec <pvrabec@redhat.com> 2.6-10
1d52177
- write_out_header rewritten to fix buffer overflow(#172669)
1d52177
d94a0b9
* Mon Oct 31 2005 Peter Vrabec <pvrabec@redhat.com> 2.6-9
d94a0b9
- fix checksum error on 64-bit machines (#171649)
d94a0b9
501abeb
* Fri Jul 01 2005 Peter Vrabec <pvrabec@redhat.com> 2.6-8
501abeb
- fix large file support, archive >4GiB, archive members <4GiB (#160056)
501abeb
- fix race condition holes, use mode 0700 for dir creation
501abeb
64a7883
* Tue May 17 2005 Peter Vrabec <pvrabec@redhat.com> 2.6-7
64a7883
- fix #156314 (CAN-2005-1229) cpio directory traversal issue
64a7883
- fix some gcc warnings
64a7883
0005073
* Mon Apr 25 2005 Peter Vrabec <pvrabec@redhat.com> 2.6-6
0005073
- fix race condition (#155749)
0005073
- use find_lang macro
0005073
a8f28be
* Thu Mar 17 2005 Peter Vrabec <pvrabec@redhat.com>
a8f28be
- rebuild 2.6-5
a8f28be
cb0ea93
* Mon Jan 24 2005 Peter Vrabec <pvrabec@redhat.com>
cb0ea93
- insecure file creation (#145721)
cb0ea93
2940cc7
* Mon Jan 17 2005 Peter Vrabec <pvrabec@redhat.com>
2940cc7
- fix symlinks pack (#145225)
2940cc7
2940cc7
* Fri Jan 14 2005 Peter Vrabec <pvrabec@redhat.com>
edfc3dd
- new fixed version of lfs patch (#144688)
edfc3dd
e032091
* Thu Jan 13 2005 Peter Vrabec <pvrabec@redhat.com>
e032091
- upgrade to cpio-2.6
e032091
2f240b4
* Tue Nov 09 2004 Peter Vrabec <pvrabec@redhat.com>
2f240b4
- fixed "cpio -oH ustar (or tar) saves bad mtime date after Jan 10 2004" (#114580)
2f240b4
0396822
* Mon Nov 01 2004 Peter Vrabec <pvrabec@redhat.com>
0396822
- support large files > 2GB (#105617)
0396822
6b5c86a
* Thu Oct 21 2004 Peter Vrabec <pvrabec@redhat.com>
6b5c86a
- fix dependencies in spec
6b5c86a
cvsdist 59a4748
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 59a4748
- rebuilt
cvsdist 59a4748
cvsdist e40850b
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e40850b
- rebuilt
cvsdist e40850b
cvsdist f1e9394
* Tue Sep 23 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist f1e9394
- do not link against -lnsl
cvsdist f1e9394
cvsdist f1e9394
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist f1e9394
- rebuilt
cvsdist f1e9394
cvsdist 70c5bf1
* Fri Feb 14 2003 Jeff Johnson <jbj@redhat.com> 2.5-3
cvsdist 70c5bf1
- setlocale for i18n compliance (#79136).
cvsdist 70c5bf1
cvsdist 70c5bf1
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 70c5bf1
- rebuilt
cvsdist 70c5bf1
cvsdist 70c5bf1
* Mon Nov 18 2002 Jeff Johnson <jbj@redhat.com> 2.5-1
cvsdist 70c5bf1
- update 2.5, restack and consolidate patches.
cvsdist 70c5bf1
- don't apply (but include for now) freebsd and #56346 patches.
cvsdist 70c5bf1
- add url (#54598).
cvsdist 70c5bf1
cvsdist 70c5bf1
* Thu Nov  7 2002 Jeff Johnson <jbj@redhat.com> 2.4.2-30
cvsdist 70c5bf1
- rebuild from CVS.
cvsdist 70c5bf1
cvsdist 0fb48c1
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 0fb48c1
- automated rebuild
cvsdist 0fb48c1
cvsdist dfd5de6
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist dfd5de6
- automated rebuild
cvsdist dfd5de6
cvsdist d2350da
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist d2350da
- automated rebuild
cvsdist d2350da
cvsdist d2350da
* Thu Nov 22 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.4.2-25
cvsdist d2350da
- Fix up extraction of multiply linked files when the first link is
cvsdist d2350da
  excluded (Bug #56346)
cvsdist d2350da
cvsdist d2350da
* Mon Oct  1 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.4.2-24
cvsdist d2350da
- Merge and adapt patches from FreeBSD, this should fix FIFO handling
cvsdist d2350da
cvsdist cc63b14
* Tue Jun 26 2001 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist cc63b14
- Add and adapt Debian patch (pl36), fixes #45285 and a couple of other issues
cvsdist cc63b14
cvsdist 4220eea
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist 4220eea
- Bump release + rebuild.
cvsdist 4220eea
cvsdist 512286a
* Tue Aug  8 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 512286a
- update man page with decription of -c behavior (#10581).
cvsdist 512286a
cvsdist 512286a
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 512286a
- automatic rebuild
cvsdist 512286a
cvsdist 512286a
* Thu Jun 29 2000 Preston Brown <pbrown@redhat.com>
cvsdist 512286a
- patch from HJ Lu for better error codes upon exit
cvsdist 512286a
cvsdist 512286a
* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 512286a
- FHS packaging.
cvsdist 512286a
cvsdist 512286a
* Wed Feb  9 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 512286a
- missing defattr.
cvsdist 512286a
cvsdist 512286a
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
cvsdist 512286a
- handle compressed manpages
cvsdist 512286a
cvsdist 512286a
* Fri Dec 17 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 512286a
- revert the stdout patch (#3358), restoring original GNU cpio behavior
cvsdist 512286a
  (#6376, #7538), the patch was dumb.
cvsdist 512286a
cvsdist 512286a
* Tue Aug 31 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 512286a
- fix infinite loop unpacking empty files with hard links (#4208).
cvsdist 512286a
- stdout should contain progress information (#3358).
cvsdist 512286a
cvsdist 512286a
* Sun Mar 21 1999 Crstian Gafton <gafton@redhat.com> 
cvsdist 512286a
- auto rebuild in the new build environment (release 12)
cvsdist 512286a
cvsdist 512286a
* Sat Dec  5 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 512286a
- longlong dev wrong with "-o -H odc" headers (formerly "-oc").
cvsdist 512286a
cvsdist 512286a
* Thu Dec 03 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 512286a
- patch to compile on glibc 2.1, where strdup is a macro
cvsdist 512286a
cvsdist 512286a
* Tue Jul 14 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 512286a
- Fiddle bindir/libexecdir to get RH install correct.
cvsdist 512286a
- Don't include /sbin/rmt -- use the rmt from dump package.
cvsdist 512286a
- Don't include /bin/mt -- use the mt from mt-st package.
cvsdist 512286a
- Add prereq's
cvsdist 512286a
cvsdist 512286a
* Tue Jun 30 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 512286a
- fix '-c' to duplicate svr4 behavior (problem #438)
cvsdist 512286a
- install support programs & info pages
cvsdist 512286a
cvsdist 512286a
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
cvsdist 512286a
- translations modified for de, fr, tr
cvsdist 512286a
cvsdist 512286a
* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
cvsdist 512286a
- added BuildRoot
cvsdist 512286a
- removed "(used by RPM)" comment in Summary
cvsdist 512286a
cvsdist 512286a
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
cvsdist 512286a
- built against glibc
cvsdist 512286a
- no longer statically linked as RPM doesn't use cpio for unpacking packages