2006-12-19 00:15:29 +01:00
|
|
|
#
|
2011-09-18 16:50:19 +02:00
|
|
|
# spec file for package cpio
|
2006-12-19 00:15:29 +01:00
|
|
|
#
|
2016-02-19 17:42:39 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:29 +01:00
|
|
|
#
|
2009-06-18 17:05:33 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:15:29 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-07-18 17:55:03 +02:00
|
|
|
|
2006-12-19 00:15:29 +01:00
|
|
|
Name: cpio
|
2015-10-09 13:20:18 +02:00
|
|
|
Version: 2.12
|
2011-12-01 12:54:47 +01:00
|
|
|
Release: 0
|
2006-12-19 00:15:29 +01:00
|
|
|
Summary: A Backup and Archiving Utility
|
2012-01-02 21:28:53 +01:00
|
|
|
License: GPL-3.0
|
2014-08-30 14:33:47 +02:00
|
|
|
Group: Productivity/Archiving/Backup
|
2015-03-16 20:27:04 +01:00
|
|
|
Url: http://www.gnu.org/software/cpio/cpio.html
|
|
|
|
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2.sig
|
|
|
|
Source2: %{name}.keyring
|
2010-08-14 00:00:07 +02:00
|
|
|
Patch2: cpio-use_new_ascii_format.patch
|
2010-03-26 00:54:28 +01:00
|
|
|
#oouch what a ...?! pieces of code grabed from mt_st package to add missing functionality (e.g. density info)
|
2010-08-14 00:00:07 +02:00
|
|
|
Patch3: cpio-mt.patch
|
|
|
|
Patch4: cpio-use_sbin_rmt.patch
|
|
|
|
Patch5: cpio-open_nonblock.patch
|
|
|
|
Patch15: cpio-eof_tape_handling.patch
|
2008-07-18 21:51:19 +02:00
|
|
|
# make posibble to have device nodes with major number > 127
|
|
|
|
# Red Hat Bugzilla #450109
|
2010-08-14 00:00:07 +02:00
|
|
|
Patch17: cpio-dev_number.patch
|
|
|
|
Patch18: cpio-default_tape_dev.patch
|
2009-12-08 11:21:50 +01:00
|
|
|
#PATCH-FIX-UPSTREAM cpio-2.10-close_files_after_copy.patch
|
2010-08-14 00:00:07 +02:00
|
|
|
Patch20: cpio-close_files_after_copy.patch
|
|
|
|
Patch21: cpio-pattern-file-sigsegv.patch
|
2013-08-22 17:40:08 +02:00
|
|
|
Patch23: paxutils-rtapelib_mtget.patch
|
2014-07-29 13:44:14 +02:00
|
|
|
Patch24: cpio-check_for_symlinks.patch
|
|
|
|
Patch25: cpio-fix_truncation_check.patch
|
2015-10-09 13:20:18 +02:00
|
|
|
Patch26: cpio-2.12-util.c_no_return_in_nonvoid_fnc.patch
|
2016-02-19 17:42:39 +01:00
|
|
|
Patch27: cpio-2.12-out_of_bounds_write.patch
|
2015-03-16 20:27:04 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
2010-09-03 13:02:57 +02:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2015-03-16 20:27:04 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2011-05-24 15:05:51 +02:00
|
|
|
program 'rmt', which provides remote tape drive control. Because there
|
|
|
|
is a compatible 'rmt' in the 'dump' package, 'rmt' is not included in
|
|
|
|
this package. If you are planning to use the remote tape features
|
|
|
|
provided by cpio, install the 'dump' package as well.
|
2006-12-19 00:15:29 +01:00
|
|
|
|
2008-03-14 17:30:55 +01:00
|
|
|
%lang_package
|
2015-03-16 20:27:04 +01:00
|
|
|
|
2006-12-19 00:15:29 +01:00
|
|
|
%prep
|
2015-03-16 20:27:04 +01:00
|
|
|
%setup -q
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2006-12-19 00:15:29 +01:00
|
|
|
%patch4
|
|
|
|
%patch5
|
2008-04-06 04:37:13 +02:00
|
|
|
%patch15
|
2008-07-18 21:51:19 +02:00
|
|
|
%patch17
|
2008-08-04 12:30:39 +02:00
|
|
|
%patch18
|
2009-12-08 11:21:50 +01:00
|
|
|
%patch20
|
2010-08-14 00:00:07 +02:00
|
|
|
%patch21 -p1
|
2013-08-22 17:40:08 +02:00
|
|
|
%patch23 -p1
|
2014-07-29 13:44:14 +02:00
|
|
|
%patch24 -p1
|
|
|
|
%patch25 -p1
|
2014-12-03 10:59:19 +01:00
|
|
|
%patch26 -p1
|
2016-02-19 17:42:39 +01:00
|
|
|
%patch27 -p1
|
2009-07-10 16:39:06 +02:00
|
|
|
#chmod 755 .
|
|
|
|
#chmod u+w *
|
|
|
|
#chmod a+r *
|
2006-12-19 00:15:29 +01:00
|
|
|
|
|
|
|
%build
|
2007-07-27 01:22:54 +02:00
|
|
|
gettextize -f
|
2006-12-19 00:15:29 +01:00
|
|
|
autoreconf --force --install
|
2015-03-16 20:27:04 +01:00
|
|
|
CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIE" \
|
2015-01-02 16:18:30 +01:00
|
|
|
LDFLAGS="-pie" \
|
2009-07-10 16:39:06 +02:00
|
|
|
./configure \
|
|
|
|
--with-rmt="%{_sysconfdir}/rmt" \
|
|
|
|
--enable-mt \
|
2015-10-09 13:20:18 +02:00
|
|
|
--prefix=%{_prefix} \
|
2006-12-19 00:15:29 +01:00
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--infodir=%{_infodir} \
|
2010-11-09 12:22:13 +01:00
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--disable-silent-rules
|
2010-07-02 18:28:18 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:15:29 +01:00
|
|
|
|
|
|
|
%install
|
2015-03-16 20:27:04 +01:00
|
|
|
mkdir -p %{buildroot}/{usr/bin,bin}
|
2015-10-09 13:20:18 +02:00
|
|
|
make prefix=%{buildroot}%{_prefix} infodir=%{buildroot}/%{_infodir} mandir=%{buildroot}/%{_mandir} install
|
2015-03-16 20:27:04 +01:00
|
|
|
#UsrMerge
|
|
|
|
ln -sf %{_bindir}/cpio %{buildroot}/bin
|
|
|
|
#EndUsrMerge
|
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
|
|
|
|
|
2015-03-16 20:27:04 +01:00
|
|
|
%preun
|
2006-12-19 00:15:29 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2008-03-14 17:30:55 +01:00
|
|
|
%files
|
2006-12-19 00:15:29 +01:00
|
|
|
%defattr(-,root,root)
|
2015-03-16 20:27:04 +01:00
|
|
|
#UsrMerge
|
2006-12-19 00:15:29 +01:00
|
|
|
/bin/cpio
|
2015-03-16 20:27:04 +01:00
|
|
|
#EndUsrMerge
|
|
|
|
%{_bindir}/cpio
|
|
|
|
%{_bindir}/mt
|
2015-10-09 13:20:18 +02:00
|
|
|
%{_infodir}/cpio.info.gz
|
|
|
|
%{_mandir}/man1/cpio.1.gz
|
|
|
|
%{_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
|
2015-03-16 20:27:04 +01:00
|
|
|
%defattr(-,root,root)
|
2008-03-14 17:30:55 +01:00
|
|
|
|
2007-07-27 01:22:54 +02:00
|
|
|
%changelog
|