[ATrpms-devel] Package for atool
Ed Avis
ed at membled.com
Sun Jan 2 18:40:09 CET 2005
atool is a handy program to pack and unpack tar.gz files, zip files
and other kinds of archive. There are other programs to do the same
job including my own 'unarc' but I think atool is better.
The tarball linked from
<http://www.student.lu.se/~nbi98oli/atool.html> includes a spec file,
or rather generates one when you run configure. The finished spec
file follows. Can you atrpmsify it and include this package?
%define package atool
%define version 0.29.0
%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}/*/*
--
Ed Avis <ed at membled.com>
More information about the atrpms-devel
mailing list