File pax.spec of Package pax
#
# spec file for package pax
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: pax
Summary: POSIX File System Archiver
Version: 3.4
Release: 146
License: BSD-3-Clause
AutoReqProv: on
Prefix: %{_prefix}
Group: Productivity/Archiving/Backup
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Pax is the POSIX standard archive tool. It supports the two most
common forms of standard archive (backup) files - CPIO and TAR.
%prep
%setup -q
%build
# Package adds -Werror, disable it.
export CFLAGS="$RPM_OPT_FLAGS -Wno-error"
%ifarch %arm
export CFLAGS="$CFLAGS -Wno-cast-align"
%endif
./configure --prefix=%{_prefix} --mandir=%{_mandir} %{_target_cpu}-suse-linux
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/pax
%doc %{_mandir}/man1/*
%changelog