From d26a58c878976c40d0e3f35e8d377eef9e3113ed Mon Sep 17 00:00:00 2001 From: Iain Arnell Date: Tue, 1 Jun 2010 03:17:24 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + perl-CPAN-Meta.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 perl-CPAN-Meta.spec diff --git a/.cvsignore b/.cvsignore index e69de29..6768f35 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +CPAN-Meta-2.101461.tar.gz diff --git a/perl-CPAN-Meta.spec b/perl-CPAN-Meta.spec new file mode 100644 index 0000000..6fc7d47 --- /dev/null +++ b/perl-CPAN-Meta.spec @@ -0,0 +1,59 @@ +Name: perl-CPAN-Meta +Version: 2.101461 +Release: 1%{?dist} +Summary: Distribution metadata for a CPAN dist +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/CPAN-Meta/ +Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(JSON) >= 2 +BuildRequires: perl(Parse::CPAN::Meta) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Version::Requirements) >= 0.101020 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%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 CPAN::Meta::Spec. + +%prep +%setup -q -n CPAN-Meta-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install DESTDIR=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes dist.ini history LICENSE META.json README Todo +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri May 28 2010 Iain Arnell 2.101461-1 +- Specfile autogenerated by cpanspec 1.78. +- drop explicit requirements diff --git a/sources b/sources index e69de29..0ef8e86 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cb52286aaf8c2743c2707f3947b3b584 CPAN-Meta-2.101461.tar.gz