|
|
261429 |
%{?scl:%scl_package perl-Parse-CPAN-Meta}
|
|
|
261429 |
%{!?scl:%global pkg_name %{name}}
|
|
|
261429 |
|
|
|
261429 |
Name: %{?scl_prefix}perl-Parse-CPAN-Meta
|
|
|
261429 |
# dual-lifed module needs to match the epoch in perl.spec
|
|
|
261429 |
Epoch: 1
|
|
|
261429 |
Version: 1.4404
|
|
|
261429 |
Release: 1%{?dist}
|
|
|
261429 |
Summary: Parse META.yml and META.json CPAN meta-data files
|
|
|
261429 |
License: GPL+ or Artistic
|
|
|
261429 |
Group: Development/Libraries
|
|
|
261429 |
URL: http://search.cpan.org/dist/Parse-CPAN-Meta/
|
|
|
261429 |
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Parse-CPAN-Meta-%{version}.tar.gz
|
|
|
261429 |
BuildArch: noarch
|
|
|
261429 |
BuildRequires: %{?scl_prefix}perl(Carp)
|
|
|
261429 |
BuildRequires: %{?scl_prefix}perl(CPAN::Meta::YAML) >= 0.008
|
|
|
261429 |
BuildRequires: %{?scl_prefix}perl(Exporter)
|
|
|
261429 |
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
|
|
|
261429 |
BuildRequires: %{?scl_prefix}perl(File::Spec) >= 0.80
|
|
|
261429 |
BuildRequires: %{?scl_prefix}perl(File::Spec::Functions)
|
|
|
261429 |
BuildRequires: %{?scl_prefix}perl(JSON::PP) >= 2.27200
|
|
|
261429 |
BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.47
|
|
|
261429 |
Requires: %{?scl_prefix}perl(CPAN::Meta::YAML) >= 0.008
|
|
|
261429 |
Requires: %{?scl_prefix}perl(Exporter)
|
|
|
261429 |
Requires: %{?scl_prefix}perl(JSON::PP) >= 2.27200
|
|
|
261429 |
%{?scl:%global perl_version %(scl enable %{scl} 'eval "`%{__perl} -V:version`"; echo $version')}
|
|
|
261429 |
%{!?scl:%global perl_version %(eval "`%{__perl} -V:version`"; echo $version)}
|
|
|
261429 |
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version})
|
|
|
261429 |
|
|
|
261429 |
%{?perl_default_filter}
|
|
|
261429 |
|
|
|
261429 |
%description
|
|
|
261429 |
Parse::CPAN::Meta is a parser for META.json and META.yml files, using
|
|
|
261429 |
JSON::PP and/or CPAN::Meta::YAML.
|
|
|
261429 |
|
|
|
261429 |
%prep
|
|
|
261429 |
%setup -q -n Parse-CPAN-Meta-%{version}
|
|
|
261429 |
|
|
|
261429 |
%build
|
|
|
261429 |
%{?scl:scl enable %{scl} "}
|
|
|
261429 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
261429 |
%{?scl:"}
|
|
|
261429 |
%{?scl:scl enable %{scl} "}
|
|
|
261429 |
make %{?_smp_mflags}
|
|
|
261429 |
%{?scl:"}
|
|
|
261429 |
|
|
|
261429 |
%install
|
|
|
261429 |
%{?scl:scl enable %{scl} "}
|
|
|
261429 |
make pure_install DESTDIR=%{buildroot}
|
|
|
261429 |
%{?scl:"}
|
|
|
261429 |
|
|
|
261429 |
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
261429 |
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
261429 |
|
|
|
261429 |
%{_fixperms} %{buildroot}/*
|
|
|
261429 |
|
|
|
261429 |
%check
|
|
|
261429 |
%{?scl:scl enable %{scl} "}
|
|
|
261429 |
make test
|
|
|
261429 |
%{?scl:"}
|
|
|
261429 |
|
|
|
261429 |
%files
|
|
|
261429 |
%doc Changes
|
|
|
261429 |
%{perl_vendorlib}/*
|
|
|
261429 |
%{_mandir}/man3/*
|
|
|
261429 |
|
|
|
261429 |
%changelog
|
|
|
261429 |
* Wed Feb 6 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4404-1
|
|
|
261429 |
- Stack package - initial release
|