2011-12-20 19:14:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Archive-Peek
|
|
|
|
#
|
2025-06-12 17:23:25 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-12-20 19:14:56 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-11-16 14:52:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-12-20 19:14:56 +00:00
|
|
|
#
|
|
|
|
|
2021-11-16 14:52:32 +00:00
|
|
|
|
|
|
|
%define cpan_name Archive-Peek
|
2011-12-20 19:14:56 +00:00
|
|
|
Name: perl-Archive-Peek
|
2025-06-12 17:23:25 +00:00
|
|
|
Version: 0.370.0
|
2011-12-20 19:14:56 +00:00
|
|
|
Release: 0
|
2025-06-12 17:23:25 +00:00
|
|
|
# 0.37 -> normalize -> 0.370.0
|
|
|
|
%define cpan_version 0.37
|
2021-11-16 14:52:32 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-06-12 17:23:25 +00:00
|
|
|
Summary: Peek into archives without extracting them
|
2021-11-16 14:52:32 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-06-12 17:23:25 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/Z/ZM/ZMUGHAL/%{cpan_name}-%{cpan_version}.tar.gz
|
2021-11-16 14:52:32 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:11:50 +02:00
|
|
|
Source100: README.md
|
2011-12-20 19:14:56 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Archive::Tar)
|
|
|
|
BuildRequires: perl(Archive::Zip)
|
2021-11-16 14:52:32 +00:00
|
|
|
BuildRequires: perl(Moo)
|
|
|
|
BuildRequires: perl(Types::Path::Tiny)
|
2011-12-20 19:14:56 +00:00
|
|
|
Requires: perl(Archive::Tar)
|
|
|
|
Requires: perl(Archive::Zip)
|
2021-11-16 14:52:32 +00:00
|
|
|
Requires: perl(Moo)
|
|
|
|
Requires: perl(Types::Path::Tiny)
|
2025-06-12 17:23:25 +00:00
|
|
|
Provides: perl(Archive::Peek) = %{version}
|
|
|
|
Provides: perl(Archive::Peek::Tar)
|
|
|
|
Provides: perl(Archive::Peek::Zip)
|
|
|
|
%undefine __perllib_provides
|
2011-12-20 19:14:56 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module lets you peek into archives without extracting them. It
|
|
|
|
currently supports tar files and zip files. To support Bzip2- compressed
|
|
|
|
files, you should install IO::Uncompress::Bunzip2.
|
|
|
|
|
|
|
|
%prep
|
2025-06-12 17:23:25 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2011-12-20 19:14:56 +00:00
|
|
|
|
|
|
|
%build
|
2021-11-16 14:52:32 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-12-20 19:14:56 +00:00
|
|
|
|
|
|
|
%check
|
2021-11-16 14:52:32 +00:00
|
|
|
make test
|
2011-12-20 19:14:56 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc CHANGES README
|
|
|
|
|
|
|
|
%changelog
|