File perl-CPAN-Meta.spec of Package perl-CPAN-Meta
#
# spec file for package perl-CPAN-Meta
#
# Copyright (c) 2012 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.120921
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
Patch0: perl-CPAN-Meta-use_lib.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-CPAN-Meta-Requirements >= 2.121
BuildRequires: perl-macros
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.4403
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(version) >= 0.88
Requires: perl-CPAN-Meta-Requirements >= 2.121
Requires: perl(CPAN::Meta::YAML) >= 0.008
Requires: perl(JSON::PP) >= 2.27200
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}
%if 0%{?suse_version} <= 1110
%patch0 -p1
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t
%endif
%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 LICENSE perlcritic.rc README README.PATCHING Todo
%changelog