2006-12-19 00:15:29 +01:00
|
|
|
#
|
2009-07-10 16:39:06 +02:00
|
|
|
# spec file for package cpio (Version 2.10)
|
2006-12-19 00:15:29 +01:00
|
|
|
#
|
2009-06-18 17:05:33 +02:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
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
|
2009-07-10 16:39:06 +02:00
|
|
|
Version: 2.10
|
2009-08-13 17:38:45 +02:00
|
|
|
Release: 3
|
2006-12-19 00:15:29 +01:00
|
|
|
Summary: A Backup and Archiving Utility
|
2009-07-10 16:39:06 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Patch2: %{name}-%{version}-use_new_ascii_format.patch
|
|
|
|
Patch3: %{name}-%{version}-mt.patch
|
|
|
|
Patch4: %{name}-%{version}-use_sbin_rmt.patch
|
|
|
|
Patch5: %{name}-%{version}-open_nonblock.patch
|
|
|
|
Patch7: %{name}-%{version}-chmodRaceC.patch
|
2008-04-06 04:37:13 +02:00
|
|
|
#patch dir_perm reverts some things which were added by patch #7 chmodRaceC
|
2009-07-10 16:39:06 +02:00
|
|
|
Patch14: %{name}-%{version}-dir_perm.patch
|
|
|
|
Patch15: %{name}-%{version}-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
|
2009-07-10 16:39:06 +02:00
|
|
|
Patch17: %{name}-%{version}-dev_number.patch
|
|
|
|
Patch18: %{name}-%{version}-default_tape_dev.patch
|
|
|
|
#PATCH-FIX-UPSTREAM include_fatal_c.patch fix undefined ref in mt build
|
|
|
|
Patch19: %{name}-%{version}-include_fatal_c.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
|
|
|
%patch2
|
|
|
|
%patch3
|
2006-12-19 00:15:29 +01:00
|
|
|
%patch4
|
|
|
|
%patch5
|
2007-08-17 18:45:44 +02:00
|
|
|
%patch7
|
2008-03-14 17:30:55 +01:00
|
|
|
%patch14 -p1
|
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-07-10 16:39:06 +02:00
|
|
|
%patch19
|
|
|
|
#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
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
|
2009-07-10 16:39:06 +02:00
|
|
|
./configure \
|
|
|
|
--with-rmt="%{_sysconfdir}/rmt" \
|
|
|
|
--enable-mt \
|
2006-12-19 00:15:29 +01:00
|
|
|
--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
|