2024-01-05 21:32:01 +01:00
|
|
|
Name: cpio
|
2024-01-05 21:32:01 +01:00
|
|
|
Version: 2.13
|
2024-01-05 21:32:01 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A GNU archiving program
|
|
|
|
Group: Applications/Archiving
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
|
|
URL: http://www.gnu.org/software/cpio/
|
|
|
|
Source: http://ftp.gnu.org/pub/gnu/cpio/%{name}-%{version}.tar.gz
|
|
|
|
Patch: %{name}-2.9-cve_2007_4476.patch
|
|
|
|
Patch1: %{name}-2.10-mt.patch
|
|
|
|
Patch2: %{name}-2.11-fix-x86_64-cross-build.patch
|
|
|
|
License: GPL
|
2024-01-05 21:32:01 +01:00
|
|
|
Requires(post):%{__install_info}
|
2024-01-05 21:32:01 +01:00
|
|
|
BuildRequires: /sbin/rmt
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: bash
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: texinfo
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
GNU cpio copies files into or out of a cpio or tar archive.
|
|
|
|
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, POSIX.1 tar.
|
|
|
|
The tar format is provided for compatability with the tar program.
|
|
|
|
By default, cpio creates binary format archives, for compatibility with older cpio programs.
|
|
|
|
When extracting from archives, cpio automatically recognizes which kind of archive it is reading and can read archives created on machines with a different byte-order.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 21:32:01 +01:00
|
|
|
#%patch2 -p1
|
2024-01-05 21:32:01 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf
|
|
|
|
# NOTE: there no configure test for LSTAT (hard link bug) and SETLOCALE,
|
|
|
|
# but the variables are used in 'lib/system.h'
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" \
|
|
|
|
%configure \
|
|
|
|
CPPFLAGS='-DHAVE_LSTAT=1 -DHAVE_SETLOCALE=1' \
|
|
|
|
CPIO_MT_PROG=mt \
|
|
|
|
--with-rmt=/sbin/rmt \
|
|
|
|
--disable-rpath
|
|
|
|
|
|
|
|
%make
|
|
|
|
%if "%{_host}" == "%{_build}"
|
|
|
|
%make check
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeoldinstall bindir=%{buildroot}/bin
|
|
|
|
|
|
|
|
%{find_lang} %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info %{name}.info
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%uninstall_info %{name}.info
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/bin/cpio
|
2024-01-05 21:32:01 +01:00
|
|
|
#/bin/mt
|
2024-01-05 21:32:01 +01:00
|
|
|
%{_infodir}/cpio.*
|
|
|
|
%{_mandir}/man1/cpio.*
|
2024-01-05 21:32:01 +01:00
|
|
|
#%{_mandir}/man1/mt.*
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
#ChangeLog NEWS README THANKS TODO
|
2024-01-05 21:32:01 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:32:01 +01:00
|
|
|
* Sat Nov 09 2019 Automatic Build System <autodist@mambasoft.it> 2.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:32:01 +01:00
|
|
|
* Thu Oct 08 2015 Automatic Build System <autodist@mambasoft.it> 2.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:32:01 +01:00
|
|
|
* Tue Jun 22 2010 Automatic Build System <autodist@mambasoft.it> 2.11-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 08 2009 Automatic Build System <autodist@mambasoft.it> 2.10-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Nov 29 2007 Aleph0 <aleph0@openmamba.org> 2.9-2mamba
|
|
|
|
- security fix against stack crashing in safer_name_suffix (CVE-2007-4476)
|
|
|
|
|
|
|
|
* Mon Jul 02 2007 Aleph0 <aleph0@openmamba.org> 2.9-1mamba
|
|
|
|
- update to 2.9
|
|
|
|
|
|
|
|
* Tue Jun 12 2007 Aleph0 <aleph0@openmamba.org> 2.8-1mamba
|
|
|
|
- update to 2.8
|
|
|
|
- fix handling of symbolic links in copy-out mode: our patch dropped
|
|
|
|
- fix setting file permissions in copy-out mode
|
|
|
|
- fix handling of large files
|
|
|
|
- fix CAN-2005-1111
|
|
|
|
|
|
|
|
* Mon Oct 23 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.7-1qilnx
|
|
|
|
- update to version 2.7 by autospec
|
|
|
|
- dropped security patches against CAN-1999-[1111,1229,1572]: fixed upstream
|
|
|
|
- removed patches #3 (mt) and #4 (gcc4)
|
|
|
|
|
|
|
|
* Tue Nov 15 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.6-3qilnx
|
|
|
|
- added gcc4 support
|
|
|
|
- added mt binary file and manpage
|
|
|
|
|
|
|
|
* Tue Jun 28 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.6-2qilnx
|
|
|
|
- CPPFLAGS=-DHAVE_LSTAT=1
|
|
|
|
- run make test
|
|
|
|
- security fix QSA-2005-078 (CAN-2005-1111, CAN-2005-1229)
|
|
|
|
|
|
|
|
* Thu Mar 10 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.6-1qilnx
|
|
|
|
- update to version 2.6 by autospec
|
|
|
|
- added `/sbin/install-info' as pre-requirement
|
|
|
|
- security patch for CAN-1999-1572 ported to 2.6 release
|
|
|
|
|
|
|
|
* Thu Mar 10 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.5-3qilnx
|
|
|
|
- security fix QSA-2005-024 (CAN-1999-1572)
|
|
|
|
- specfile updates and fixes
|
|
|
|
- removed mt binary file and manpage
|
|
|
|
- added specfile scriptlets for the info page
|
|
|
|
|
|
|
|
* Fri Jul 11 2003 Silvan Calarco <silvan.calarco@qinet.it> 2.5-2qilnx
|
|
|
|
- given correct location of libexec dir
|
|
|
|
|
|
|
|
* Wed Apr 16 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it>
|
|
|
|
- creation of cpio package
|