[perl-CPAN-Meta-YAML] Initial import (perl-CPAN-Meta-YAML-0.003-3)
Paul Howarth
pghmcfc at fedoraproject.org
Thu Jan 27 15:56:28 UTC 2011
commit 71fa66d69380138545860ea1566d37c28acd959f
Author: Paul Howarth <paul at city-fan.org>
Date: Thu Jan 27 15:55:00 2011 +0000
Initial import (perl-CPAN-Meta-YAML-0.003-3)
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.
.gitignore | 1 +
CPAN-Meta-YAML-0.003-old-EU::MM.patch | 30 +++++++++++++++
perl-CPAN-Meta-YAML.spec | 67 +++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1c0baf4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/CPAN-Meta-YAML-0.003.tar.gz
diff --git a/CPAN-Meta-YAML-0.003-old-EU::MM.patch b/CPAN-Meta-YAML-0.003-old-EU::MM.patch
new file mode 100644
index 0000000..ff1099b
--- /dev/null
+++ b/CPAN-Meta-YAML-0.003-old-EU::MM.patch
@@ -0,0 +1,30 @@
+--- CPAN-Meta-YAML-0.003/Makefile.PL 2011-01-02 22:32:12.000000000 +0000
++++ CPAN-Meta-YAML-0.003/Makefile.PL 2011-01-25 10:24:19.048578140 +0000
+@@ -4,7 +4,7 @@
+
+ BEGIN { require 5.004; }
+
+-use ExtUtils::MakeMaker 6.31;
++use ExtUtils::MakeMaker;
+
+
+
+@@ -18,7 +18,7 @@
+ 'vars' => '0'
+ },
+ 'CONFIGURE_REQUIRES' => {
+- 'ExtUtils::MakeMaker' => '6.31'
++ 'ExtUtils::MakeMaker' => '0'
+ },
+ 'DISTNAME' => 'CPAN-Meta-YAML',
+ 'EXE_FILES' => [],
+@@ -52,6 +52,9 @@
+ delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+ unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
++delete $WriteMakefileArgs{LICENSE}
++ unless eval { ExtUtils::MakeMaker->VERSION(6.31) };
++
+ WriteMakefile(%WriteMakefileArgs);
+
+
diff --git a/perl-CPAN-Meta-YAML.spec b/perl-CPAN-Meta-YAML.spec
new file mode 100644
index 0000000..3d5127d
--- /dev/null
+++ b/perl-CPAN-Meta-YAML.spec
@@ -0,0 +1,67 @@
+# 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: 3%{?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_u} -n)
+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=perl
+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_privlib}/CPAN/
+%{_mandir}/man3/CPAN::Meta::YAML.3pm*
+
+%changelog
+* Thu Jan 27 2011 Paul Howarth <paul at city-fan.org> - 0.003-3
+- Trim %%description (#672807)
+
+* Wed Jan 26 2011 Paul Howarth <paul at city-fan.org> - 0.003-2
+- Sanitize for Fedora submission
+
+* Tue Jan 25 2011 Paul Howarth <paul at city-fan.org> - 0.003-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..8e7c671 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+62d0f9726a2b91971b2f3f4ac770de5d CPAN-Meta-YAML-0.003.tar.gz
More information about the scm-commits
mailing list