File atool.spec of Package atool

# vim: set ts=4 sw=4 et:

# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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/

Name:           atool
Version:        0.39.0
Release:        0
Summary:        Commandline Tool for Managing File Archives of various Types
Source:         http://download-mirror.savannah.gnu.org/releases/atool/atool-%{version}.tar.gz
URL:            http://www.nongnu.org/atool/
Group:          Productivity/Archiving/Compression
License:        GPL-2.0+
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
Requires:       perl tar gzip bzip2
%if 0%{?suse_version} >= 1010
Suggests:       unzip zip
Suggests:       rar unrar
Suggests:       unace
Suggests:       lzop
Suggests:       lha
Suggests:       cpio
Suggests:       unarj arj
Suggests:       arc nomarch
Suggests:       p7zip
Suggests:       unalz
Suggests:       lzma
%endif
BuildRequires:  make perl
BuildArch:      noarch

%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
%__make %{?_smp_flags}

%install
%makeinstall

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc ChangeLog COPYING NEWS README TODO
%{_bindir}/acat
%{_bindir}/adiff
%{_bindir}/als
%{_bindir}/apack
%{_bindir}/arepack
%{_bindir}/atool
%{_bindir}/aunpack
%doc %{_mandir}/man1/acat.1*
%doc %{_mandir}/man1/adiff.1*
%doc %{_mandir}/man1/als.1*
%doc %{_mandir}/man1/apack.1*
%doc %{_mandir}/man1/arepack.1*
%doc %{_mandir}/man1/atool.1*
%doc %{_mandir}/man1/aunpack.1*

%changelog
openSUSE Build Service is sponsored by