%define package @PACKAGE_TARNAME@
%define version @PACKAGE_VERSION@
%define release 1

Summary:        A script for managing file archives of various types.
Name:           %{package}
Group:          Applications/Archiving
Version:        %{version}
Release:        %{release}
Source:         %{package}-%{version}.tar.gz
URL:            http://www.student.lu.se/~nbi98oli/src/
License:        GPL
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
BuildArch:	noarch
Requires:	perl

%description
atool is a script for managing file archives of various types (tar,
tar+gzip, zip, etc). The main command is probably 'aunpack' which
extracts files from an archive. It overcomes the dreaded "multiple
files in archive root" problem by first extracting to a unique
subdirectory, and then moving back the files if possible. aunpack
also prevents local files from being overwritten by mistake. Other
commands provided are apack (for creating archives), als (for listing
files in archives), and acat (for extracting files to stdout). 

%prep
%setup -q

%build
./configure --prefix=/usr --mandir=\${prefix}/share/man

%install
make install prefix=$RPM_BUILD_ROOT/usr

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README ChangeLog COPYING NEWS TODO
%{_bindir}/*
%{_mandir}/*/*
