Summary: A GNU archiving program Name: cpio Version: 2.11 Release: 2 License: GPLv3+ Group: Applications/Archiving URL: http://www.gnu.org/software/cpio/ Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2.sig Patch0: %{name}-%{version}-aix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: info Requires: gettext Requires: /sbin/install-info, info %description GNU cpio copies files into or out of a cpio or tar archive. Archives are files which contain a collection of other files plus information about them, such as their file name, owner, timestamps, and access permissions. The archive can be another file on the disk, a magnetic tape, or a pipe. GNU cpio supports the following archive formats: binary, old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1 tar. By default, cpio creates binary format archives, so that they are compatible with older cpio programs. When it is extracting files from archives, cpio automatically recognizes which kind of archive it is reading and can read archives created on machines with a different byte-order. Install cpio if you need a program to manage file archives. %prep %setup -q %patch0 %build export CC="cc -qcpluscmt -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --enable-largefile \ --disable-mt make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : gzip --best ${RPM_BUILD_ROOT}%{_infodir}/%{name}* rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir cd ${RPM_BUILD_ROOT} mkdir -p usr/linux/bin cd usr/linux/bin ln -sf ../../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %post /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : fi %files %defattr(-,root,system) %doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING %{_bindir}/* %{_mandir}/man1/* %{_infodir}/*info* /usr/linux/bin/* %changelog * Thu Jul 01 2010 Michael Perzl - 2.11-2 - removed dependency on gettext >= 0.17 * Thu Apr 22 2010 Michael Perzl - 2.11-1 - updated to version 2.11 * Tue Jul 14 2009 Michael Perzl - 2.10-1 - updated to version 2.10 * Wed Mar 26 2008 Michael Perzl - 2.9-1 - first version for AIX V5.1 and higher