File afio.spec of Package afio

#
# spec file for package afio (Version 2.5)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#

# norootforbuild

Name:         afio
Version:      2.5
Release:      35
Group:        Productivity/Archiving/Compression
Summary:      Archiver and backup program with builtin compression
License:      Artistic License, Other License(s), see package
Autoreqprov:  on
Source:       ftp://sunsite.unc.edu/pub/Linux/system/backup/afio-%{version}.tgz
Patch0:       afio-%{version}.dif
Patch1:       afio-toc_ppc.dif
Patch2:       afio-script1.dif
Patch3:       afio-syserr.dif
Patch4:       afio-sentinel.dif
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
Afio makes cpio-format archives.  Afio can make compressed cpio
archives that are much safer than compressed tar or cpio archives. Afio
is best used as an `archive engine' in a backup script. Documentation
and some sample scripts are in /usr/share/doc/packages/afio/.



Authors:
--------
    Mark Brukhartz
    Koen Holtman <koen@win.tue.nl>

%prep
%setup -n afio-%{version}
%patch0
%patch1
%patch2
%patch3
%patch4

%build
export RPM_OPT_FLAGS
make
rm -f script1/*.orig
rm -f script2/*.orig
###
### regtest -- 2gb test needs >4GB free space
###
#make -C regtest all
#make -C regtest 2gb

%install
export RPM_BUILD_ROOT
mkdir -p                   $RPM_BUILD_ROOT/usr/bin/
install -c    -m755 afio   $RPM_BUILD_ROOT/usr/bin/
mkdir -p                   $RPM_BUILD_ROOT%{_mandir}/man1
install -c    -m644 afio.1 $RPM_BUILD_ROOT%{_mandir}/man1
rm -f                      $RPM_BUILD_ROOT%{_mandir}/man1/afio.1.gz
gzip -9f                   $RPM_BUILD_ROOT%{_mandir}/man1/afio.1

%files
%defattr(-,root,root)
%doc afio.lsm
%doc README
%doc HISTORY
%doc PORTING
%doc SCRIPTS
%doc script1
%doc script2
%doc script3
%doc script4
%doc INSTALLATION
%attr(755,root,root) /usr/bin/afio
%doc %{_mandir}/man1/afio.1.gz

%changelog -n afio
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 14 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Jan 19 2005 - mt@suse.de
- added fix for argument list termination (NULL instead of 0)
  => new patch file: afio-sentinel.dif
* Wed Feb 11 2004 - mt@suse.de
- added norootforbuild flag
* Tue Feb 10 2004 - mt@suse.de
- updated to version 2.5 with >2GB support
- adopted and splited patches into multiple files
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Sat Aug 17 2002 - olh@suse.de
- toc is a reseved symbol on ppc64, rename this function
* Fri Jan 25 2002 - mt@suse.de
- updated to afio-2.4.7
* Wed Nov 22 2000 - mt@suse.de
- enabled the usage of BuildRoot and _tmppath macro
* Fri Feb 25 2000 - kukuk@suse.de
- Use %%{_mandir}, fill out group tag.
* Fri Jan 21 2000 - mt@suse.de
- Updated to 2.4.6 with security fix in pgp encription handling
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Nov 19 1998 - mt@suse.de
- new package in version 2.4.5
openSUSE Build Service is sponsored by