cpio/cpio.spec

149 lines
4.5 KiB
RPMSpec
Raw Normal View History

Name: cpio
Version: 2.13
Release: 3mamba
Summary: A GNU archiving program
Group: Applications/Archiving
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: /usr/sbin/rmt
BuildRequires: gettext-devel
Requires(post):%{__install_info}
Provides: /bin/cpio
%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.
%debug_package
%prep
%setup -q
# gcc 10 fix
sed -i '/The name/,+2 d' src/global.c
#%patch2 -p1
autoreconf
%build
# 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
%{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)
%{_bindir}/cpio
#/bin/mt
%{_infodir}/cpio.*
%{_mandir}/man1/cpio.*
#%{_mandir}/man1/mt.*
%doc AUTHORS COPYING
%changelog
* Mon Apr 17 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.13-3mamba
- rebuilt after usr merge
* Sun Dec 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.13-2mamba
- rebuilt with debug package and gcc 10 build fix
* Sat Nov 09 2019 Automatic Build System <autodist@mambasoft.it> 2.13-1mamba
- automatic version update by autodist
* Thu Oct 08 2015 Automatic Build System <autodist@mambasoft.it> 2.12-1mamba
- automatic version update by autodist
* 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