File perl-Archive-Extract.spec of Package perl-Archive-Extract
#
# spec file for package perl-Archive-Extract
#
# Copyright (c) 2022 Andreas Vögele <andreas@andreasvoegele.com>
#
# 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 send bugfixes or comments to the author.
#
Name: perl-Archive-Extract
Version: 0.88
Release: 0
Summary: Generic archive extracting mechanism
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/dist/Archive-Extract
Source: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Archive-Extract-%{version}.tar.gz
BuildArch: noarch
AutoProv: 1
AutoReq: 0
# Build:
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl
%if 0%{?fedora} > 0 || 0%{?rhel} > 0
BuildRequires: perl-generators
Requires: perl-libs
%endif
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime:
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(Locale::Maketext::Simple)
BuildRequires: perl(Module::Load::Conditional)
BuildRequires: perl(Params::Check)
BuildRequires: perl(if)
# Tests:
BuildRequires: perl(Test::More)
Requires: perl(File::Basename)
Requires: perl(File::Path)
Requires: perl(File::Spec)
Requires: perl(IPC::Cmd)
Requires: perl(Locale::Maketext::Simple)
Requires: perl(Module::Load::Conditional)
Requires: perl(Params::Check)
Requires: perl(if)
%{?perl_requires}
%{?perl_default_filter}
%description
Archive::Extract is a generic archive extraction mechanism. It allows you to
extract any archive file of the type .tar, .tar.gz, .gz, .Z, tar.bz2, .tbz,
.bz2, .zip, .xz,, .txz, .tar.xz, or .lzma without having to worry how it does
so, or use different interfaces for each type by using either perl modules, or
command-line tools on your system.
%prep
%autosetup -n Archive-Extract-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make
%install
%{make_install}
%{_fixperms} %{buildroot}/*
find %{buildroot} \
\( -name perllocal.pod -o -name .packlist -o -type d -empty \) \
-delete
%check
make test
%files
%defattr(-, root, root)
%doc CHANGES README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog