Files
perl-Parse-CPAN-Authors/perl-Parse-CPAN-Authors.spec
2025-08-12 18:16:19 +02:00

73 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-Parse-CPAN-Authors
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Parse-CPAN-Authors
Name: perl-Parse-CPAN-Authors
Version: 2.270.0
Release: 0
# 2.27 -> normalize -> 2.270.0
%define cpan_version 2.27
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Parse 01mailrc.txt.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/L/LB/LBROCARD/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Accessor::Fast)
BuildRequires: perl(IO::Zlib)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Exception)
Requires: perl(Class::Accessor::Fast)
Requires: perl(IO::Zlib)
Requires: perl(Test::Exception)
Provides: perl(Parse::CPAN::Authors) = %{version}
Provides: perl(Parse::CPAN::Authors::Author)
%undefine __perllib_provides
%{perl_requires}
%description
The Comprehensive Perl Archive Network (CPAN) is a very useful collection
of Perl code. It has several indices of the files that it hosts, including
a file named "01mailrc.txt.gz" in the "authors" directory. This file
contains lots of useful information on CPAN authors and this module
provides a simple interface to the data contained within.
Note that this module does not concern itself with downloading this file.
You should do this yourself.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc CHANGES examples README
%changelog