File tar.spec of Package tar.import5595

# spec file for package tar
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

Name:           tar
Version:        1.26
Release:        1.<RELEASE5>
License:        GPLv3+
Summary:        GNU implementation of tar ((t)ape (ar)chiver)
Group:          System/Base
Source0:        %{name}-%{version}.tar.bz2
Patch0:         tar-disable_languages.patch
Patch1:         tar-disable-listed02-test.patch
Patch2:         tar-manpage.patch
Patch3:         tar-wildcards.patch
Patch5:         tar-fortifysourcessigabrt.patch
Patch6:         tar-backup-spec-fix-paths.patch
Patch7:         tar-1.26-remove_O_NONBLOCK.patch
BuildRequires:  help2man
PreReq:         %install_info_prereq
Recommends:     tar-lang = %version
Recommends:     xz
Provides:       base:/bin/tar
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define _bindir  /bin

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 backup-scripts
License:        GPLv3+
Summary:        Backup scripts
Group:          Productivity/Archiving/Backup
Requires:       %{name} = %{version}-%{release}

%description backup-scripts
Shell scripts for system backup/restore

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1

rm -f po/no.* po/ky.*
#autoreconf -fi
aclocal -I m4
automake --force --add-missing
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
export CFLAGS="%{optflags} %my_cflags"
export RSH="/usr/bin/rsh"
%configure \
	--enable-backup-scripts \
make %{?_smp_mflags};

#%ifarch %arm
#make check || true
#make check

install -d -m 755 %{buildroot}%{_sysconfdir}/backup
install -D -m 644 scripts/backup-specs %{buildroot}%{_sysconfdir}/backup/backup-specs
rm -rf %{buildroot}%{_libexecdir}/rmt
%find_lang %{name}

%files lang -f %{name}.lang

%files backup-scripts
%defattr(-,root, root)
%dir %{_sysconfdir}/backup
%config(noreplace) %{_sysconfdir}/backup/backup-specs

%defattr(-, root, root)

%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

rm -rf %{buildroot}

openSUSE Build Service is sponsored by