perl-CPAN-Meta/perl-CPAN-Meta.spec

69 lines
2.0 KiB
RPMSpec
Raw Normal View History

2010-06-01 03:17:24 +00:00
Name: perl-CPAN-Meta
2010-06-16 03:45:21 +00:00
Version: 2.101670
2010-06-14 15:00:34 +00:00
Release: 1%{?dist}
2010-06-01 03:17:24 +00:00
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
2010-06-16 03:45:21 +00:00
* Wed Jun 16 2010 Iain Arnell <iarnell@gmail.com> 2.101670-1
- update to latest upstream
2010-06-14 15:00:34 +00:00
* Mon Jun 14 2010 Iain Arnell <iarnell@gmail.com> 2.101610-1
- update to latest upstream
2010-06-01 03:33:15 +00:00
* Tue Jun 01 2010 Iain Arnell <iarnell@gmail.com> 2.101461-2
- rebuild for perl-5.12
2010-06-01 03:17:24 +00:00
* Fri May 28 2010 Iain Arnell <iarnell@gmail.com> 2.101461-1
- Specfile autogenerated by cpanspec 1.78.
- drop explicit requirements