2006-12-19 00:15:29 +01:00
|
|
|
#
|
2007-07-27 01:22:54 +02:00
|
|
|
# spec file for package cpio (Version 2.9)
|
2006-12-19 00:15:29 +01:00
|
|
|
#
|
2008-03-14 17:30:55 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:29 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-08-01 23:46:33 +02:00
|
|
|
# norootforbuild
|
2006-12-19 00:15:29 +01:00
|
|
|
|
2008-03-14 17:30:55 +01:00
|
|
|
|
2006-12-19 00:15:29 +01:00
|
|
|
Name: cpio
|
2007-10-03 00:49:55 +02:00
|
|
|
Url: http://www.gnu.org/software/cpio/cpio.html
|
2007-08-17 18:45:44 +02:00
|
|
|
License: GPL v3 only
|
2006-12-19 00:15:29 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
2007-10-03 00:49:55 +02:00
|
|
|
AutoReqProv: on
|
2007-07-27 01:22:54 +02:00
|
|
|
Version: 2.9
|
2008-08-01 23:46:33 +02:00
|
|
|
Release: 73
|
2006-12-19 00:15:29 +01:00
|
|
|
Summary: A Backup and Archiving Utility
|
2007-07-27 01:22:54 +02:00
|
|
|
Source: cpio-2.9.tar.bz2
|
|
|
|
Patch1: cpio-2.9-no_rmt.patch
|
|
|
|
Patch2: cpio-2.9-use_new_ascii_format.patch
|
|
|
|
Patch3: cpio-2.9-mt.patch
|
|
|
|
Patch4: cpio-2.9-use_sbin_rmt.patch
|
|
|
|
Patch5: cpio-2.9-open_nonblock.patch
|
|
|
|
Patch6: cpio-2.9-lfs_correction.patch
|
2007-08-17 18:45:44 +02:00
|
|
|
Patch7: cpio-2.9-chmodRaceC.patch
|
|
|
|
Patch8: cpio-2.9-paxlib-owl-alloca.patch
|
2007-10-03 00:49:55 +02:00
|
|
|
Patch9: cpio-2.9-gcc4_3.patch
|
|
|
|
Patch10: cpio-2.9-segfault_in_copyin.patch
|
2007-10-25 02:00:02 +02:00
|
|
|
Patch11: cpio-2.9-avoid_overflow_warning.patch
|
2007-11-08 23:52:24 +01:00
|
|
|
Patch12: cpio-2.9-doc_typo.patch
|
2007-11-29 18:16:37 +01:00
|
|
|
Patch13: cpio-2.9-m4_macro.patch
|
2008-04-06 04:37:13 +02:00
|
|
|
#patch dir_perm reverts some things which were added by patch #7 chmodRaceC
|
2008-03-14 17:30:55 +01:00
|
|
|
Patch14: cpio-2.9-dir_perm.patch
|
2008-04-06 04:37:13 +02:00
|
|
|
Patch15: cpio-2.9-eof_tape_handling.patch
|
2008-07-05 00:52:14 +02:00
|
|
|
Patch16: cpio-2.9-gnulib.patch
|
2008-07-18 21:51:19 +02:00
|
|
|
# make posibble to have device nodes with major number > 127
|
|
|
|
# Red Hat Bugzilla #450109
|
|
|
|
Patch17: cpio-2.9-dev_number.patch
|
2006-12-19 00:15:29 +01:00
|
|
|
PreReq: %install_info_prereq
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-03-14 17:30:55 +01:00
|
|
|
Requires: %{name}-lang = %{version}
|
2006-12-19 00:15:29 +01:00
|
|
|
|
|
|
|
%description
|
2007-08-17 18:45:44 +02:00
|
|
|
GNU cpio is a program to manage archives of files. This package also
|
|
|
|
includes 'mt', a tape drive control program. Cpio copies files into or
|
|
|
|
out of a cpio or tar archive. An archive is a file that contains other
|
|
|
|
files plus information about them, such as their pathname, owner, time
|
|
|
|
stamps, and access permissions. The archive can be another file on the
|
|
|
|
disk, a magnetic tape, or a pipe. This package normally includes the
|
|
|
|
program 'rmt', which providesremote tape drive control. Because there
|
|
|
|
is a compatible 'rmt' in the'dump' package, 'rmt' is not included in
|
|
|
|
this package. If you are planningto use the remote tape features
|
|
|
|
provided by cpio, install the'dump' package as well.
|
2006-12-19 00:15:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-07-27 01:22:54 +02:00
|
|
|
David J. MacKenzie <djm@gnu.org>
|
2006-12-19 00:15:29 +01:00
|
|
|
Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
2008-03-14 17:30:55 +01:00
|
|
|
%lang_package
|
2006-12-19 00:15:29 +01:00
|
|
|
%prep
|
|
|
|
%setup
|
2007-07-27 01:22:54 +02:00
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2006-12-19 00:15:29 +01:00
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
2007-08-17 18:45:44 +02:00
|
|
|
%patch7
|
|
|
|
%patch8
|
2007-10-03 00:49:55 +02:00
|
|
|
%patch9
|
|
|
|
%patch10
|
2007-10-25 02:00:02 +02:00
|
|
|
%patch11
|
2007-11-08 23:52:24 +01:00
|
|
|
%patch12
|
2007-11-29 18:16:37 +01:00
|
|
|
%patch13
|
2008-03-14 17:30:55 +01:00
|
|
|
%patch14 -p1
|
2008-04-06 04:37:13 +02:00
|
|
|
%patch15
|
2008-07-05 00:52:14 +02:00
|
|
|
%patch16
|
2008-07-18 21:51:19 +02:00
|
|
|
%patch17
|
2006-12-19 00:15:29 +01:00
|
|
|
chmod 755 .
|
|
|
|
chmod u+w *
|
|
|
|
chmod a+r *
|
|
|
|
|
|
|
|
%build
|
2007-07-27 01:22:54 +02:00
|
|
|
gettextize -f
|
2006-12-19 00:15:29 +01:00
|
|
|
autoreconf --force --install
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
|
|
|
|
./configure DEFAULT_RMT_DIR=/sbin \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--infodir=%{_infodir} \
|
|
|
|
--libdir=%{_libdir}
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/{usr/bin,bin}
|
|
|
|
make prefix=$RPM_BUILD_ROOT/usr infodir=$RPM_BUILD_ROOT/%_infodir mandir=$RPM_BUILD_ROOT/%_mandir install
|
|
|
|
mv $RPM_BUILD_ROOT/usr/bin/cpio $RPM_BUILD_ROOT/bin
|
|
|
|
ln -sf ../../bin/cpio $RPM_BUILD_ROOT/usr/bin/cpio
|
2007-07-27 01:22:54 +02:00
|
|
|
%find_lang %{name}
|
2006-12-19 00:15:29 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2008-08-01 23:46:33 +02:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-03-14 17:30:55 +01:00
|
|
|
%files
|
2006-12-19 00:15:29 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
/bin/cpio
|
|
|
|
/usr/bin/cpio
|
|
|
|
/usr/bin/mt
|
|
|
|
%doc %{_infodir}/cpio.info.gz
|
|
|
|
%doc %{_mandir}/man1/cpio.1.gz
|
|
|
|
%doc %{_mandir}/man1/mt.1.gz
|
2007-07-27 01:22:54 +02:00
|
|
|
#/usr/share/locale/*/LC_MESSAGES/cpio.mo
|
2007-11-29 18:16:37 +01:00
|
|
|
|
2008-03-14 17:30:55 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-07-27 01:22:54 +02:00
|
|
|
%changelog
|
2008-08-01 23:46:33 +02:00
|
|
|
* Fri Aug 01 2008 cthiel@suse.de
|
|
|
|
- specfile cleanup
|
2008-07-18 21:51:19 +02:00
|
|
|
* Fri Jul 18 2008 lmichnovic@suse.cz
|
|
|
|
- make possible device nodes with major number > 127 [rhb#450109]
|
|
|
|
(*dev_number.patch)
|
2008-07-05 00:52:14 +02:00
|
|
|
* Fri Jun 27 2008 schwab@suse.de
|
|
|
|
- Fix gnulib macro.
|
2008-04-12 20:03:36 +02:00
|
|
|
* Fri Apr 11 2008 lmichnovic@suse.cz
|
|
|
|
- adjusted eof-handling.patch to check for 'end-of-file' and
|
|
|
|
'end-of-data' marker when detecting reel change. [bnc#371077]
|
2008-04-06 04:37:13 +02:00
|
|
|
* Fri Apr 04 2008 lmichnovic@suse.cz
|
|
|
|
- adjusted cpio-2.9-dir_perm.patch acording Red Hat patch to fix
|
|
|
|
correct dir permissions after extraction in pass-through mode.
|
|
|
|
- fix for two tapes handling (eof_tape_handling.patch) [bnc#371077]
|
2008-03-14 17:30:55 +01:00
|
|
|
* Thu Mar 13 2008 lmichnovic@suse.cz
|
|
|
|
- lang subpackage split off
|
|
|
|
* Thu Mar 13 2008 lmichnovic@suse.cz
|
|
|
|
- applying upstream patch cpio-2.9-dir_perm.patch which fixes
|
|
|
|
incorrect directory permissions after archive extraction
|
|
|
|
* Thu Nov 29 2007 lmichnovic@suse.cz
|
2007-11-29 18:16:37 +01:00
|
|
|
- removed unused m4 macro gl_LONG_LONG (*m4_macro.patch)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Wed Nov 07 2007 lmichnovic@suse.cz
|
2007-11-08 23:52:24 +01:00
|
|
|
- upstream fix of typo in documantation (*doc_typo.patch)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Oct 23 2007 lmichnovic@suse.cz
|
2007-10-25 02:00:02 +02:00
|
|
|
- rewrote code which uses overflow to copy string in structure and
|
|
|
|
gcc was complaining about it (*avoid_overflow_warning.patch)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Oct 01 2007 lmichnovic@suse.cz
|
2007-10-03 00:49:55 +02:00
|
|
|
- Fixed typo in copin.c causing segfault [#329744]
|
|
|
|
(*segfault_in_copyin.patch)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Sep 25 2007 lmichnovic@suse.cz
|
2007-10-03 00:49:55 +02:00
|
|
|
- fix for compiling with new gcc 4.3 (*gcc4_3.patch)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Aug 20 2007 lmichnovic@suse.cz
|
2007-08-20 18:50:15 +02:00
|
|
|
- fixed typo in paxlib-owl-alloca.patch [#301416]
|
2008-03-14 17:30:55 +01:00
|
|
|
* Fri Aug 17 2007 lmichnovic@suse.cz
|
2007-08-17 18:45:44 +02:00
|
|
|
- upstream fix: use of alloca can cause stack overflow
|
|
|
|
(paxlib-owl-alloca.patch)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Aug 14 2007 lmichnovic@suse.cz
|
2007-08-17 18:45:44 +02:00
|
|
|
- CAN-2005-1111 is not fixed completely in 2.9 (chmodRaceC.patch)
|
|
|
|
based on fedora patch
|
2008-03-14 17:30:55 +01:00
|
|
|
* Wed Jul 25 2007 lmichnovic@suse.cz
|
2007-07-27 01:22:54 +02:00
|
|
|
- fixed types of variables for LFS support (*lfs_correction.patch)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Jul 24 2007 lmichnovic@suse.cz
|
2007-07-27 01:22:54 +02:00
|
|
|
- adjusted *mt.patch to fix compression handling [#223494]
|
2008-03-14 17:30:55 +01:00
|
|
|
* Fri Jul 20 2007 lmichnovic@suse.cz
|
2007-07-27 01:22:54 +02:00
|
|
|
- update to version 2.9
|
|
|
|
- obsoletes *lstat.patch
|
|
|
|
* Licensed under the GPLv3.
|
|
|
|
* Bugfixes: Honor umask when creating intermediate directories,
|
|
|
|
not specified in the archive (debian bug #430053). (This bug
|
|
|
|
is only in version 2.8)
|
|
|
|
* 2.8:
|
|
|
|
* Option --owner can be used in copy-out mode, allowing
|
|
|
|
to uniformly override the ownership of the files being added
|
|
|
|
to the archive.
|
|
|
|
* Bugfixes:
|
|
|
|
- Symlinks were handled incorrectly in copy-out mode. (This
|
|
|
|
bug was only in version 2.7)
|
|
|
|
- Fix handling of large files. {obsoletes lfs.patch}
|
|
|
|
o Fix setting the file permissions in copy-out mode.
|
|
|
|
o Fix CAN-2005-1111 {obsoletes chmodRaceC.patch}
|
|
|
|
* 2.7:
|
|
|
|
* Improved error checking and diagnostics
|
|
|
|
* Fixed CAN-1999-1572 {obsoletes writeOutHeaderBufferOverflow.patch}
|
|
|
|
* Allow to use --sparse in both copy-in and copy-pass.
|
|
|
|
* Fix bug that eventually caused copying out the same
|
|
|
|
hard-linked file several times to archive.
|
|
|
|
* Fix several LFS-related issues. {obsoletes lfs.patch}
|
|
|
|
* Fix Debian bug #335580.
|
|
|
|
- obsoletes *dirTraversal.patch implemented with option
|
|
|
|
--no-absolute-pathnames; option --absolute-pathnames is still possible
|
|
|
|
- obsoletes *checksum.patch, fix_umask.patch, sparse.patch
|
|
|
|
- using lang macro
|
2008-03-14 17:30:55 +01:00
|
|
|
* Thu Sep 21 2006 lmichnovic@suse.cz
|
2006-12-19 00:15:29 +01:00
|
|
|
- fixed typo in cpio-2.6.dif; renamed to *-mt.patch
|
|
|
|
- united suffix of patches
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Sep 19 2006 schwab@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- Fix missing newline after mt status.
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Jul 24 2006 rguenther@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- remove useless build-dependency on rsh.
|
2008-03-14 17:30:55 +01:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Dec 06 2005 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- add cpio-2.6-chmodRaceC.patch and cpio-2.6-dirTraversal.patch to
|
|
|
|
fix bug #80226
|
|
|
|
- add cpio-2.6-writeOutHeaderBufferOverflow.patch to fix #133454
|
|
|
|
- add cpio-2.6-checksum.patch fix wrong checksum on 64bit archs
|
|
|
|
- add cpio-2.6-lfs.patch to support large files on 32bit archs
|
2008-03-14 17:30:55 +01:00
|
|
|
* Wed Aug 10 2005 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- fix call to setlocale to make multibyte characters work (#98902)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Thu Jun 30 2005 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- open with O_NONBLOCK option (#94449)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Wed May 04 2005 ro@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- properly detect lstat in configure
|
2008-03-14 17:30:55 +01:00
|
|
|
* Wed Apr 27 2005 snwint@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- fix '--sparse' option check
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Apr 25 2005 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- update to cpio 2.6
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Jan 24 2005 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- fix problem with cpio not respecting umask (#50054)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Jan 19 2004 ro@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- fix build as user
|
2008-03-14 17:30:55 +01:00
|
|
|
* Sun Jan 11 2004 adrian@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- add %%defattr
|
2008-03-14 17:30:55 +01:00
|
|
|
* Thu Apr 24 2003 ro@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- fix install_info --delete call and move from preun to postun
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Apr 15 2003 coolo@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- use BuildRoot
|
2008-03-14 17:30:55 +01:00
|
|
|
* Fri Feb 07 2003 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- Use %%install_info macro
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Sep 17 2002 ro@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- removed bogus self-provides
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Aug 13 2002 mfabian@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- add cpio-2.5-i18n-0.1.patch received from
|
|
|
|
"Mitsuru Chinen" <CHINEN@jp.ibm.com>
|
|
|
|
The patch just adds a setlocale (LC_ALL, "").
|
2008-03-14 17:30:55 +01:00
|
|
|
* Sun Jul 28 2002 kukuk@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- remove unused tetex from neededforbuild
|
2008-03-14 17:30:55 +01:00
|
|
|
* Fri Jul 05 2002 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- update to new version 2.5
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Dec 03 2001 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- make the -c switch comatible to SVR4 (and compatible to RedHat)
|
|
|
|
- fix the man page accordingly
|
|
|
|
- add rsh to #needfobuild to allow remote file access again (#12543)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Sun Dec 03 2000 schwab@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- Fix a few bugs and typos.
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Nov 28 2000 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- add compile options for LFS
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Apr 17 2000 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- move cpio binary to /bin for compatibility with RedHat
|
2008-03-14 17:30:55 +01:00
|
|
|
* Fri Feb 25 2000 kukuk@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- remove Makefile.Linux
|
|
|
|
- use _infodir/_mandir
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-03-14 17:30:55 +01:00
|
|
|
* Thu Sep 02 1999 fehr@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- Fix patch for broken header (cast to short instead of int)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Wed Aug 04 1999 kukuk@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- Add patch for broken header in oldascii format
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Sep 22 1998 ro@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- define _GNU_SOURCE for glibc where including getopt
|
2008-03-14 17:30:55 +01:00
|
|
|
* Tue Sep 01 1998 ro@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- fixed strdup-macro problem
|
2008-03-14 17:30:55 +01:00
|
|
|
* Thu Jun 05 1997 florian@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- go through the list of regex in a more suitable way (from ma@suse.de)
|
2008-03-14 17:30:55 +01:00
|
|
|
* Mon Apr 14 1997 florian@suse.de
|
2006-12-19 00:15:29 +01:00
|
|
|
- update to new version 2.4.2
|
|
|
|
- add Linux patches from RedHat
|
|
|
|
- add patches from gnu.utils.bugs
|