[perl-Class-Std] Update to 0.011
Paul Howarth
pghmcfc at fedoraproject.org
Fri Nov 1 15:11:13 UTC 2013
commit 2aed7e66256e2afb3b3d7d07489e0f63276661de
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Nov 1 15:10:42 2013 +0000
Update to 0.011
- New upstream release 0.011
- Added 'how can I help' POD
- Fix overwritten warnings in UNIVERSAL::can (CPAN RT#30833)
- Removed git repository information
- Fixed incompatibility with Perl 5.11+ label constraints
- Remove unneeded dependency on version.pm
- Specify all dependencies
- Drop %defattr, redundant since rpm 4.4
- Make %files list more explicit
- Don't need to remove empty directories from the buildroot
- Don't use macros for commands
- Supply missing POD encoding (CPAN RT#78196)
.gitignore | 3 +-
Class-Std-0.011-pod-encoding.patch | 22 ++++++++++++
perl-Class-Std.spec | 65 ++++++++++++++++++++++++-----------
sources | 2 +-
4 files changed, 69 insertions(+), 23 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0e25007..0f0ee81 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-Class-Std-v0.0.8.tar.gz
+/Class-Std-v0.0.8.tar.gz
+/Class-Std-[0-9.]*.tar.gz
diff --git a/Class-Std-0.011-pod-encoding.patch b/Class-Std-0.011-pod-encoding.patch
new file mode 100644
index 0000000..a170afb
--- /dev/null
+++ b/Class-Std-0.011-pod-encoding.patch
@@ -0,0 +1,22 @@
+Fix for missing POD encoding (CPAN RT#78196)
+
+--- lib/Class/Std.pm
++++ lib/Class/Std.pm
+@@ -613,6 +613,8 @@
+ 1; # Magic true value required at end of module
+ __END__
+
++=encoding utf-8
++
+ =head1 NAME
+
+ Class::Std - Support for creating standard "inside-out" classes
+@@ -1509,7 +1511,7 @@
+ key/value pair, which may be specified in either Perl 5 "fat comma" syntax
+ ( C<< S<< key => 'value' >> >> ) or in one of the Perl 6 option syntaxes
+ ( C<< S<< :key<value> >> >> or C<< S<< :key('value') >> >> or
+-C<< S<< :key«value» >> >>).
++C<< S<< :key«value» >> >>).
+
+ Note that, due to a limitation in Perl itself, the complete C<:ATTR> marker,
+ including its options must appear on a single line.
diff --git a/perl-Class-Std.spec b/perl-Class-Std.spec
index eadc8e4..3d74470 100644
--- a/perl-Class-Std.spec
+++ b/perl-Class-Std.spec
@@ -1,40 +1,50 @@
Name: perl-Class-Std
-Version: 0.0.8
-Release: 16%{?dist}
+Version: 0.011
+Release: 1%{?dist}
Summary: Support for creating standard "inside-out" classes
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Class-Std/
-Source0: http://www.cpan.org/modules/by-module/Class/Class-Std-v%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0: http://www.cpan.org/modules/by-module/Class/Class-Std-%{version}.tar.gz
+Patch0: Class-Std-0.011-pod-encoding.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
-BuildRequires: perl(Module::Build), perl(version), perl(ExtUtils::MakeMaker)
+# Module Build
+BuildRequires: perl(Module::Build)
+# Module Runtime
+BuildRequires: perl(base)
+BuildRequires: perl(Carp)
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(overload)
+BuildRequires: perl(Scalar::Util)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Test Suite
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage)
-Requires: perl(version)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Runtime
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(Data::Dumper)
%description
This module provides tools that help to implement the "inside out object"
class structure in a convenient and standard way.
%prep
-%setup -q -n Class-Std-v%{version}
+%setup -q -n Class-Std-%{version}
-# Fix UTF-8
-iconv -f ISO_8859-1 -t UTF-8 -o tmp.man lib/Class/Std.pm &&
-mv -f tmp.man lib/Class/Std.pm
+# Supply missing POD encoding (CPAN RT#78196)
+%patch0
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build
%install
rm -rf %{buildroot}
-
./Build install destdir=%{buildroot} create_packlist=0
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} %{buildroot}/*
+%{_fixperms} %{buildroot}
%check
./Build test
@@ -43,12 +53,25 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
rm -rf %{buildroot}
%files
-%defattr(-,root,root,-)
%doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{perl_vendorlib}/Class/
+%{_mandir}/man3/Class::Std.3pm*
%changelog
+* Fri Nov 1 2013 Paul Howarth <paul at city-fan.org> - 0.011-1
+- Update to 0.011
+ - Added 'how can I help' POD
+ - Fix overwritten warnings in UNIVERSAL::can (CPAN RT#30833)
+ - Removed git repository information
+ - Fixed incompatibility with Perl 5.11+ label constraints
+ - Remove unneeded dependency on version.pm
+- Specify all dependencies
+- Drop %%defattr, redundant since rpm 4.4
+- Make %%files list more explicit
+- Don't need to remove empty directories from the buildroot
+- Don't use macros for commands
+- Supply missing POD encoding (CPAN RT#78196)
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.8-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
@@ -74,7 +97,7 @@ rm -rf %{buildroot}
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 15 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.0.8-8
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
* Fri Apr 30 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.0.8-7
- Mass rebuild with perl-5.12.0
@@ -89,7 +112,7 @@ rm -rf %{buildroot}
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 0.0.8-3
-Rebuild for new perl
+- Rebuild for new perl
* Sun Jan 20 2008 Andreas Thienemann <andreas at bawue.net> - 0.0.8-2
- Added changed BuildReqs to handle changed Perl packaging in fedora (bz
diff --git a/sources b/sources
index 3655863..dd84eca 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dc01fecfc8d5886e41d2e8bc2f29a7a2 Class-Std-v0.0.8.tar.gz
+de8ad4f39cc9984595bc219df01ee23b Class-Std-0.011.tar.gz
More information about the scm-commits
mailing list