[perl-Test-CPAN-Meta-YAML] Initial import of perl-Test-CPAN-Meta-YAML-0.17-2
Paul Howarth
pghmcfc at fedoraproject.org
Fri Mar 18 18:37:58 UTC 2011
commit 505e29d51f095f5be71c49d1c8c22da9f2d0139c
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Mar 18 18:36:36 2011 +0000
Initial import of perl-Test-CPAN-Meta-YAML-0.17-2
This module was written to ensure that a META.yml file, provided with a
standard distribution uploaded to CPAN, meets the specifications that are
slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker,
Module::Build and Module::Install.
See CPAN::Meta for further details of the CPAN Meta Specification.
.gitignore | 1 +
Test-CPAN-Meta-YAML-0.17-utf8.patch | 10 +++++
perl-Test-CPAN-Meta-YAML.spec | 67 +++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..be702fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-CPAN-Meta-YAML-0.17.tar.gz
diff --git a/Test-CPAN-Meta-YAML-0.17-utf8.patch b/Test-CPAN-Meta-YAML-0.17-utf8.patch
new file mode 100644
index 0000000..00b49ba
--- /dev/null
+++ b/Test-CPAN-Meta-YAML-0.17-utf8.patch
@@ -0,0 +1,10 @@
+--- Test-CPAN-Meta-YAML-0.17/LICENSE
++++ Test-CPAN-Meta-YAML-0.17/LICENSE
+@@ -1,6 +1,6 @@
+ LICENSE FOR Test-CPAN-Meta-YAML
+
+-This software is copyright © 2007-2011 Barbie for Miss Barbell Productions.
++This software is copyright © 2007-2011 Barbie for Miss Barbell Productions.
+
+ This library is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License 2.0.
diff --git a/perl-Test-CPAN-Meta-YAML.spec b/perl-Test-CPAN-Meta-YAML.spec
new file mode 100644
index 0000000..1b6996d
--- /dev/null
+++ b/perl-Test-CPAN-Meta-YAML.spec
@@ -0,0 +1,67 @@
+Name: perl-Test-CPAN-Meta-YAML
+Version: 0.17
+Release: 2%{?dist}
+Summary: Validate a META.yml file within a CPAN distribution
+Group: Development/Libraries
+License: Artistic 2.0
+URL: http://search.cpan.org/dist/Test-CPAN-Meta-YAML/
+Source0: http://search.cpan.org/CPAN/authors/id/B/BA/BARBIE/Test-CPAN-Meta-YAML-%{version}.tar.gz
+Patch0: Test-CPAN-Meta-YAML-0.17-utf8.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Test::Builder)
+BuildRequires: perl(Test::Builder::Tester)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod)
+BuildRequires: perl(Test::Pod::Coverage)
+BuildRequires: perl(Test::YAML::Valid) >= 0.03
+BuildRequires: perl(YAML::Syck)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Explicitly requests the YAML::Syck backend for Test::YAML::Valid
+Requires: perl(YAML::Syck)
+
+%description
+This module was written to ensure that a META.yml file, provided with a
+standard distribution uploaded to CPAN, meets the specifications that are
+slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker,
+Module::Build and Module::Install.
+
+See CPAN::Meta for further details of the CPAN Meta Specification.
+
+%prep
+%setup -q -n Test-CPAN-Meta-YAML-%{version}
+
+# Recode LICENSE as UTF-8
+%patch0 -p1
+
+%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 AUTOMATED_TESTING=1
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc Changes LICENSE README
+%{perl_vendorlib}/Test/
+%{_mandir}/man3/Test::CPAN::Meta::YAML.3pm*
+%{_mandir}/man3/Test::CPAN::Meta::YAML::Version.3pm*
+
+%changelog
+* Wed Mar 16 2011 Paul Howarth <paul at city-fan.org> - 0.17-2
+- Sanitize for Fedora submission
+
+* Wed Mar 16 2011 Paul Howarth <paul at city-fan.org> - 0.17-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..6ea3f27 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b22c1b552401192cbb6a9a92a961e397 Test-CPAN-Meta-YAML-0.17.tar.gz
More information about the scm-commits
mailing list