[5740] | 1 | # We don't really need ExtUtils::MakeMaker ≥ 6.30 |
---|
| 2 | %global old_eumm %(perl -MExtUtils::MakeMaker -e 'print (($ExtUtils::MakeMaker::VERSION < 6.30) ? 1 : 0);' 2>/dev/null || echo 0) |
---|
| 3 | |
---|
| 4 | # We need to patch the test suite if we have Test::More < 0.88 |
---|
| 5 | %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) |
---|
| 6 | |
---|
| 7 | Name: perl-CPAN-Meta-YAML |
---|
| 8 | Version: 0.005 |
---|
[5794] | 9 | Release: 2%{?_dist_release} |
---|
[5740] | 10 | Summary: Read and write a subset of YAML for CPAN Meta files |
---|
| 11 | License: GPL+ or Artistic |
---|
| 12 | Group: Development/Libraries |
---|
| 13 | URL: http://search.cpan.org/dist/CPAN-Meta-YAML/ |
---|
| 14 | Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-YAML-%{version}.tar.gz |
---|
| 15 | Patch0: CPAN-Meta-YAML-0.004-old-EU::MM.patch |
---|
| 16 | Patch1: CPAN-Meta-YAML-0.004-old-Test::More.patch |
---|
| 17 | Patch2: CPAN-Meta-YAML-0.004-old-Scalar::Util.patch |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) |
---|
| 19 | BuildArch: noarch |
---|
| 20 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 21 | BuildRequires: perl(File::Spec) |
---|
| 22 | BuildRequires: perl(Test::CPAN::Meta) |
---|
| 23 | BuildRequires: perl(Test::More) |
---|
| 24 | BuildRequires: perl(Test::Pod) |
---|
| 25 | # RHEL <= 6 doesn't have a recent enough perl(version) for perl(Test::Version) |
---|
| 26 | %if 0%{?fedora} || 0%{?rhel} > 6 |
---|
| 27 | BuildRequires: perl(Test::Version) |
---|
| 28 | %endif |
---|
| 29 | BuildRequires: perl(YAML) |
---|
| 30 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 31 | |
---|
| 32 | Vendor: Project Vine |
---|
| 33 | Distribution: Vine Linux |
---|
| 34 | Packager: shaolin |
---|
| 35 | |
---|
| 36 | %description |
---|
| 37 | This module implements a subset of the YAML specification for use in reading |
---|
| 38 | and writing CPAN metadata files like META.yml and MYMETA.yml. It should not be |
---|
| 39 | used for any other general YAML parsing or generation task. |
---|
| 40 | |
---|
| 41 | %prep |
---|
| 42 | %setup -q -n CPAN-Meta-YAML-%{version} |
---|
| 43 | |
---|
| 44 | # We don't really need ExtUtils::MakeMaker ≥ 6.30 |
---|
| 45 | %if %{old_eumm} |
---|
| 46 | %patch0 -p1 |
---|
| 47 | %endif |
---|
| 48 | |
---|
| 49 | # We need to patch the test suite if we have Test::More < 0.88 |
---|
| 50 | %if %{old_test_more} |
---|
| 51 | %patch1 -p1 |
---|
| 52 | %endif |
---|
| 53 | |
---|
| 54 | # Fix operation with Scalar::Util < 1.18 properly (CPAN RT#53490) |
---|
| 55 | %patch2 -p1 |
---|
| 56 | |
---|
| 57 | %build |
---|
| 58 | perl Makefile.PL |
---|
| 59 | make %{?_smp_mflags} |
---|
| 60 | |
---|
| 61 | %install |
---|
| 62 | rm -rf %{buildroot} |
---|
| 63 | make pure_install DESTDIR=%{buildroot} |
---|
| 64 | find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
---|
| 65 | find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null |
---|
| 66 | %{_fixperms} %{buildroot} |
---|
| 67 | |
---|
| 68 | %check |
---|
| 69 | make test TEST_FILES="t/*.t xt/*/*.t" |
---|
| 70 | |
---|
| 71 | %clean |
---|
| 72 | rm -rf %{buildroot} |
---|
| 73 | |
---|
| 74 | %files |
---|
| 75 | %defattr(-,root,root,-) |
---|
| 76 | %doc Changes LICENSE README |
---|
| 77 | %{perl_sitelib}/CPAN/ |
---|
| 78 | %{_mandir}/man3/CPAN::Meta::YAML.3pm* |
---|
| 79 | |
---|
| 80 | %changelog |
---|
[5794] | 81 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.005-2 |
---|
| 82 | - rebuild |
---|
| 83 | |
---|
[5740] | 84 | * Tue Feb 21 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.005-1 |
---|
| 85 | - initial package for Vine Linux |
---|
| 86 | |
---|
| 87 | * Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 0.005-2 |
---|
| 88 | - Fedora 17 mass rebuild |
---|
| 89 | |
---|
| 90 | * Tue Dec 13 2011 Paul Howarth <paul@city-fan.org> - 0.005-1 |
---|
| 91 | - Update to 0.005: |
---|
| 92 | - Fix documentation to clarify that users are responsible for UTF-8 |
---|
| 93 | encoding/decoding |
---|
| 94 | |
---|
| 95 | * Wed Sep 7 2011 Paul Howarth <paul@city-fan.org> - 0.004-1 |
---|
| 96 | - Update to 0.004: |
---|
| 97 | - Generated from ADAMK/YAML-Tiny-1.50.tar.gz |
---|
| 98 | - BR: perl(Test::Version) for additional test coverage |
---|
| 99 | - Update patch for building with ExtUtils::MakeMaker < 6.30 |
---|
| 100 | - Add patch to support building with Test::More < 0.88 |
---|
| 101 | - Add patch to fix operation with Scalar::Util < 1.18 |
---|
| 102 | |
---|
| 103 | * Tue Aug 16 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.003-7 |
---|
| 104 | - Install to vendor perl directories to avoid potential debuginfo conflicts |
---|
| 105 | with the main perl package if this module ever becomes arch-specific |
---|
| 106 | |
---|
| 107 | * Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.003-6 |
---|
| 108 | - Perl mass rebuild |
---|
| 109 | |
---|
| 110 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.003-4 |
---|
| 111 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 112 | |
---|
| 113 | * Thu Jan 27 2011 Paul Howarth <paul@city-fan.org> - 0.003-3 |
---|
| 114 | - Trim %%description (#672807) |
---|
| 115 | |
---|
| 116 | * Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 0.003-2 |
---|
| 117 | - Sanitize for Fedora submission |
---|
| 118 | |
---|
| 119 | * Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 0.003-1 |
---|
| 120 | - Initial RPM version |
---|