[perl-Const-Fast] 0.011 bump

Petr Pisar ppisar at fedoraproject.org
Thu Jun 14 07:40:15 UTC 2012


commit b38b69adf77261ab1bbb62c61540c87aaae89f62
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Jun 14 09:39:50 2012 +0200

    0.011 bump
    
    This makes tests passing.

 .gitignore           |    1 +
 perl-Const-Fast.spec |   45 +++++++++++++++++++++++----------------------
 sources              |    2 +-
 3 files changed, 25 insertions(+), 23 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 02fcf62..4d3c608 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /Const-Fast-0.006.tar.gz
+/Const-Fast-0.011.tar.gz
diff --git a/perl-Const-Fast.spec b/perl-Const-Fast.spec
index e543620..8900241 100644
--- a/perl-Const-Fast.spec
+++ b/perl-Const-Fast.spec
@@ -1,27 +1,32 @@
 Name:           perl-Const-Fast
-Version:        0.006
-Release:        5%{?dist}
+Version:        0.011
+Release:        1%{?dist}
 Summary:        Facility for creating read-only scalars, arrays, and hashes
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Const-Fast/
 Source0:        http://www.cpan.org/authors/id/L/LE/LEONT/Const-Fast-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl >= 0:5.008
-BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+# Run-time
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(Storable)
 BuildRequires:  perl(Sub::Exporter)
+# Tests
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Test::More) >= 0.88
 BuildRequires:  perl(Test::Exception)
-BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Pod::Coverage)
+# Optional tests
+BuildRequires:  perl(Test::Script) >= 1.05
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
-This the only function of this module and it is exported by default. It
-takes a scalar, array or hash lvalue as first argument, and a list of one or
+This the only function of this module and it is exported by default. It takes
+a scalar, array or hash left-value as first argument, and a list of one or
 more values depending on the type of the first argument as the value for the
 variable. It will set the variable to that value and subsequently make it
-readonly. Arrays and hashes will be made deeply readonly.
+read-only. Arrays and hashes will be made deeply read-only.
 
 
 %prep
@@ -29,35 +34,31 @@ readonly. Arrays and hashes will be made deeply readonly.
 
 
 %build
-%{__perl} Build.PL installdirs=vendor
-./Build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 
 %check
-./Build test
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+make test
 
 
 %files
-%defattr(-,root,root,-)
 %doc Changes LICENSE README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 
 %changelog
+* Thu Jun 14 2012 Petr Pisar <ppisar at redhat.com> - 0.011-1
+- 0.011 bump
+
 * Wed Jun 13 2012 Petr Pisar <ppisar at redhat.com> - 0.006-5
 - Perl 5.16 rebuild
 
diff --git a/sources b/sources
index c869b48..e07f5b1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-26b5cc952e64c34b94fcc6f77d09c1b2  Const-Fast-0.006.tar.gz
+3c35f86bc5864685d4284648a1729380  Const-Fast-0.011.tar.gz


More information about the scm-commits mailing list