# We don't really need ExtUtils::MakeMaker ≥ 6.31 %global old_eumm %(perl -MExtUtils::MakeMaker -e 'printf "%d\\n", $ExtUtils::MakeMaker::VERSION < 6.31 ? 1 : 0;' 2>/dev/null || echo 0) Name: perl-CPAN-Meta-YAML Version: 0.003 Release: 7%{?dist} Summary: Read and write a subset of YAML for CPAN Meta files License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/CPAN-Meta-YAML/ Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-YAML-%{version}.tar.gz Patch0: CPAN-Meta-YAML-0.003-old-EU::MM.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) BuildRequires: perl(Test::CPAN::Meta) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(YAML) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description This module implements a subset of the YAML specification for use in reading and writing CPAN metadata files like META.yml and MYMETA.yml. It should not be used for any other general YAML parsing or generation task. %prep %setup -q -n CPAN-Meta-YAML-%{version} # We don't really need ExtUtils::MakeMaker ≥ 6.31 %if %{old_eumm} %patch0 -p1 %endif %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null %{_fixperms} %{buildroot} %check make test TEST_FILES="t/*.t xt/*/*.t" %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes LICENSE README %{perl_vendorlib}/CPAN/ %{_mandir}/man3/CPAN::Meta::YAML.3pm* %changelog * Tue Aug 16 2011 Marcela Mašláňová - 0.003-7 - Install to vendor perl directories to avoid potential debuginfo conflicts with the main perl package if this module ever becomes arch-specific * Wed Jun 29 2011 Marcela Mašláňová - 0.003-6 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.003-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jan 27 2011 Paul Howarth - 0.003-3 - Trim %%description (#672807) * Wed Jan 26 2011 Paul Howarth - 0.003-2 - Sanitize for Fedora submission * Tue Jan 25 2011 Paul Howarth - 0.003-1 - Initial RPM version