File perl-CPAN-Meta.spec of Package perl-CPAN-Meta
#
# spec file for package perl-CPAN-Meta
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-CPAN-Meta
Version: 2.150005
Release: 0
%define cpan_name CPAN-Meta
Summary: The Distribution Metadata for a Cpan Dist
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/CPAN-Meta/
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121000
BuildRequires: perl(CPAN::Meta::YAML) >= 0.008
BuildRequires: perl(File::Temp) >= 0.20
BuildRequires: perl(JSON::PP) >= 2.27200
BuildRequires: perl(Parse::CPAN::Meta) >= 1.4414
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(version) >= 0.88
Requires: perl(CPAN::Meta::Requirements) >= 2.121000
Requires: perl(CPAN::Meta::YAML) >= 0.008
Requires: perl(JSON::PP) >= 2.27200
Requires: perl(Parse::CPAN::Meta) >= 1.4414
Requires: perl(version) >= 0.88
%{perl_requires}
%description
Software distributions released to the CPAN include a _META.json_ or, for
older distributions, _META.yml_, which describes the distribution, its
contents, and the requirements for building and installing the
distribution. The data structure stored in the _META.json_ file is
described in the CPAN::Meta::Spec manpage.
CPAN::Meta provides a simple class to represent this distribution metadata
(or _distmeta_), along with some helpful methods for interrogating that
data.
The documentation below is only for the methods of the CPAN::Meta object.
For information on the meaning of individual fields, consult the spec.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTING.mkdn LICENSE README Todo
%changelog