2006-12-19 00:17:56 +01:00
|
|
|
|
#
|
2010-02-18 16:59:24 +01:00
|
|
|
|
# spec file for package tar (Version 1.22)
|
2006-12-19 00:17:56 +01:00
|
|
|
|
#
|
2010-02-12 08:01:31 +01:00
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:56 +01:00
|
|
|
|
#
|
2008-11-21 15:53:43 +01: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:17:56 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-03-28 18:54:23 +01:00
|
|
|
|
|
2006-12-19 00:17:56 +01:00
|
|
|
|
Name: tar
|
|
|
|
|
BuildRequires: help2man
|
2007-10-03 01:13:53 +02:00
|
|
|
|
Url: http://www.gnu.org/software/tar/
|
2010-02-12 08:01:31 +01:00
|
|
|
|
License: GPLv3+
|
2006-12-19 00:17:56 +01:00
|
|
|
|
Group: System/Base
|
|
|
|
|
Provides: base:/bin/tar
|
|
|
|
|
PreReq: %install_info_prereq
|
2007-10-03 01:13:53 +02:00
|
|
|
|
AutoReqProv: on
|
2010-03-26 02:16:16 +01:00
|
|
|
|
Version: 1.22
|
2010-03-19 13:52:28 +01:00
|
|
|
|
Release: 2
|
2007-05-17 11:59:45 +02:00
|
|
|
|
Summary: GNU implementation of tar ((t)ape (ar)chiver)
|
2006-12-19 00:17:56 +01:00
|
|
|
|
Source0: %name-%version.tar.bz2
|
2008-06-25 23:57:52 +02:00
|
|
|
|
#
|
2006-12-19 00:17:56 +01:00
|
|
|
|
Patch0: tar-disable_languages.patch
|
2010-03-26 02:16:16 +01:00
|
|
|
|
Patch1: tar-disable-listed02-test.diff
|
2006-12-19 00:17:56 +01:00
|
|
|
|
Patch2: tar-manpage.patch
|
2008-11-21 15:53:43 +01:00
|
|
|
|
Patch3: tar-wildcards.patch
|
2010-03-26 02:16:16 +01:00
|
|
|
|
Patch5: tar-1.22-fortifysourcessigabrt.patch
|
|
|
|
|
#fix possible heap overflow in rtapelib.c bnc#579475 (fix already in upstream git)
|
|
|
|
|
Patch6: tar-heap_overflow_in_rtapelib.patch
|
2006-12-19 00:17:56 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-02-11 12:58:15 +01:00
|
|
|
|
Recommends: xz
|
2009-09-02 18:41:56 +02:00
|
|
|
|
Recommends: tar-lang = %version
|
2006-12-19 00:17:56 +01:00
|
|
|
|
%define _bindir /bin
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package normally also includes the program "rmt", which provides
|
|
|
|
|
remote tape drive control. Since there are compatible versions of 'rmt'
|
|
|
|
|
in either the 'star' package or the 'dump' package, we didn't put 'rmt'
|
|
|
|
|
into this package. If you are planning to use the remote tape features
|
|
|
|
|
provided by tar you have to also install the 'dump' or the 'star'
|
|
|
|
|
package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Melissa O'Neill <oneill@cs.sfu.ca>
|
|
|
|
|
Bruno Haible <haible@clisp.cons.org>
|
|
|
|
|
Dale Worley <worley@ariadne.com>
|
|
|
|
|
David J. MacKenzie <djm@gnu.org>
|
|
|
|
|
Fran<EFBFBD>ois Pinard <pinard@iro.umontreal.ca>
|
|
|
|
|
Gerhard Poul <gpoul@gnu.org>
|
|
|
|
|
Jay Fenlason <hack@ai.mit.edu>
|
|
|
|
|
Jeff Dairiki <dairiki@dairiki.org>
|
|
|
|
|
Jim Kingdon <kingdon@ai.mit.edu>
|
|
|
|
|
Joy Kendall <jak@hobbes>
|
|
|
|
|
Machael Stone <mstone@cs.loyola.edu>
|
|
|
|
|
Michael I Bushnell <mib@gnu.org>
|
|
|
|
|
Noah Friedman <friedman@gnu.org>
|
|
|
|
|
Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
|
|
|
|
The King <elvis@gnu.org>
|
|
|
|
|
Tom Tromey <tromey@drip.colorado.edu>
|
|
|
|
|
|
2010-02-18 16:59:24 +01:00
|
|
|
|
|
|
|
|
|
%package backup-scripts
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
Summary: Backup scirpts
|
|
|
|
|
Group: Productivity/Archiving/Backup
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description backup-scripts
|
|
|
|
|
Shell scripts for system backup/restore
|
|
|
|
|
|
2009-02-11 12:58:15 +01:00
|
|
|
|
%lang_package
|
2006-12-19 00:17:56 +01:00
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
2008-11-21 15:53:43 +01:00
|
|
|
|
%patch3 -p1
|
2010-02-12 08:01:31 +01:00
|
|
|
|
%patch5 -p1
|
2010-03-26 02:16:16 +01:00
|
|
|
|
%patch6 -p1
|
2006-12-19 00:17:56 +01:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
rm -f po/no.* po/ky.*
|
|
|
|
|
#autoreconf -fi
|
|
|
|
|
aclocal -I m4
|
2007-10-08 12:32:55 +02:00
|
|
|
|
automake --force --add-missing
|
2006-12-19 00:17:56 +01:00
|
|
|
|
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS %my_cflags"
|
|
|
|
|
export RSH="/usr/bin/rsh"
|
|
|
|
|
./configure --prefix=%_prefix --bindir=%_bindir --mandir=%_mandir \
|
2010-02-18 16:59:24 +01:00
|
|
|
|
--infodir=%_infodir --build=%{_target_cpu}-suse-linux \
|
|
|
|
|
--enable-backup-scripts
|
2010-02-12 08:01:31 +01:00
|
|
|
|
make %{?jobs:-j%jobs};
|
|
|
|
|
|
|
|
|
|
%check
|
2006-12-19 00:17:56 +01:00
|
|
|
|
#%ifarch %arm
|
|
|
|
|
#make check || true
|
|
|
|
|
#%else
|
|
|
|
|
#make check
|
|
|
|
|
#%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2010-02-18 16:59:24 +01:00
|
|
|
|
install -D -m 644 scripts/backup-specs $RPM_BUILD_ROOT%{_sysconfdir}/backup-specs
|
2006-12-19 00:17:56 +01:00
|
|
|
|
rm -r %buildroot/usr/libexec
|
2007-05-17 11:59:45 +02:00
|
|
|
|
%find_lang %name
|
2006-12-19 00:17:56 +01:00
|
|
|
|
|
2009-02-11 12:58:15 +01:00
|
|
|
|
%files lang -f %name.lang
|
|
|
|
|
|
2010-02-18 16:59:24 +01:00
|
|
|
|
%files backup-scripts
|
|
|
|
|
%defattr(-,root, root)
|
|
|
|
|
%_sbindir/backup
|
|
|
|
|
%_sbindir/restore
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/backup-specs
|
|
|
|
|
|
2009-02-11 12:58:15 +01:00
|
|
|
|
%files
|
2006-12-19 00:17:56 +01:00
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%_bindir/tar
|
2010-03-26 02:16:16 +01:00
|
|
|
|
%doc README* ABOUT-NLS AUTHORS COPYING NEWS THANKS ChangeLog PORTS TODO
|
2006-12-19 00:17:56 +01:00
|
|
|
|
%_infodir/tar.info*.gz
|
|
|
|
|
%_mandir/man1/tar.1.gz
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-03-28 18:54:23 +01:00
|
|
|
|
|
2007-05-17 11:59:45 +02:00
|
|
|
|
%changelog
|