File perl-CPAN-Meta.spec of Package perl-CPAN-Meta
#
# spec file for package perl-CPAN-Meta
#
# Copyright (c) 2014 SUSE LINUX Products 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.133380
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/
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121
BuildRequires: perl(CPAN::Meta::YAML) >= 0.008
BuildRequires: perl(File::Temp) >= 0.20
BuildRequires: perl(JSON::PP) >= 2.27200
BuildRequires: perl(List::Util) >= 1.33
BuildRequires: perl(Parse::CPAN::Meta) >= 1.4403
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(version) >= 0.88
#BuildRequires: perl(CPAN::Meta)
#BuildRequires: perl(CPAN::Meta::Converter)
#BuildRequires: perl(CPAN::Meta::Feature)
#BuildRequires: perl(CPAN::Meta::Prereqs)
#BuildRequires: perl(CPAN::Meta::Validator)
#BuildRequires: perl(Pod::Wordlist)
#BuildRequires: perl(Test::Spelling) >= 0.12
Requires: perl(CPAN::Meta::Requirements) >= 2.121
Requires: perl(CPAN::Meta::YAML) >= 0.008
Requires: perl(JSON::PP) >= 2.27200
Requires: perl(List::Util) >= 1.33
Requires: perl(Parse::CPAN::Meta) >= 1.4403
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 cpanfile LICENSE perlcritic.rc README Todo
%changelog