atool-0.37.0.tar.gz
[atool.git] / atool.spec.in
bloba00a0360a4bbbe88abe588ecf8496e8f15550cec
1 %define package @PACKAGE_TARNAME@
2 %define version @PACKAGE_VERSION@
3 %define release 1
5 Summary: A script for managing file archives of various types.
6 Name: %{package}
7 Version: %{version}
8 Release: %{release}
9 License: GPL
10 Group: Applications/Archiving
11 Source: http://savannah.nongnu.org/download/%{package}/%{package}-%{version}.tar.gz
12 URL: http://www.nongnu.org/%{package}/
13 Packager: Oskar Liljeblad <oskar@osk.mine.nu>
14 Vendor: Oskar Liljeblad <oskar@osk.mine.nu>
15 BuildRoot: %{_tmppath}/%{package}-%{version}-%{release}-root
16 BuildArch: noarch
17 Requires: perl
19 %description
20 atool is a script for managing file archives of various types (tar,
21 tar+gzip, zip etc).
23 The main command is aunpack which extracts files from an archive. Did you
24 ever extract files from an archive, not checking whether the files were
25 located in a subdirectory or in the top directory of the archive, resulting
26 in files scattered all over the place? aunpack overcomes this problem by
27 first extracting to a new directory, and if there was only a single file in
28 the archive, moving that file to the original directory. aunpack also
29 prevents local files from being overwritten by mistake.
31 The other commands provided are apack (to create archives), als (to list
32 files in archives), and acat (to extract files to standard out).
34 %prep
35 %setup -q
37 %build
38 ./configure --prefix=%{_prefix}
39 make
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 make DESTDIR=$RPM_BUILD_ROOT install
45 %clean
46 rm -rf $RPM_BUILD_ROOT
48 %files
49 %defattr(-,root,root)
50 %doc README ChangeLog COPYING NEWS TODO
51 %{_prefix}/bin/*
52 %{_prefix}/share/man/man1/*