[perl-Term-ProgressBar] 2.10 bump

Petr Šabata psabata at fedoraproject.org
Fri Jan 13 14:39:51 UTC 2012


commit 1a459a929dec0789f92ac4cbe200bd81688a9088
Author: Petr Šabata <contyk at redhat.com>
Date:   Fri Jan 13 15:36:44 2012 +0100

    2.10 bump

 .gitignore                 |    1 +
 perl-Term-ProgressBar.spec |   51 ++++++++++++++++++++++---------------------
 sources                    |    2 +-
 3 files changed, 28 insertions(+), 26 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c021959..b738e5e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 Term-ProgressBar-2.09.tar.gz
+/Term-ProgressBar-2.10.tar.gz
diff --git a/perl-Term-ProgressBar.spec b/perl-Term-ProgressBar.spec
index 09a55a3..82c6be5 100644
--- a/perl-Term-ProgressBar.spec
+++ b/perl-Term-ProgressBar.spec
@@ -5,28 +5,27 @@
 #   rpmbuild ... --define '_with_network_tests 1' ...
 #   rpmbuild ... --with network_tests ...
 #   define _with_network_tests 1 in your ~/.rpmmacros
-#
-# Note that right now, the only way to run tests locally from a cvs sandbox
-# "make noarch" type scenario is the third one.
 
 Name:           perl-Term-ProgressBar
-Version:        2.09
-Release:        11%{?dist}
+Version:        2.10
+Release:        1%{?dist}
 Summary:        Provide a progress meter on a standard terminal
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Term-ProgressBar/
-Source0:        http://www.cpan.org/authors/id/F/FL/FLUFFY/Term-ProgressBar-%{version}.tar.gz
+Source0:        http://search.cpan.org/CPAN/authors/id/S/SZ/SZABGAB/Term-ProgressBar-%{version}.tar.gz
 BuildArch:      noarch
-
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Capture::Tiny)
 BuildRequires:  perl(Class::MethodMaker) >= 1.02
-BuildRequires:  perl(Module::Build)
-BuildRequires:  perl(Term::ReadKey) >= 2.14
-
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Fatal)
 %{?_with_network_tests:BuildRequires: perl(Module::Signature) }
-
-## cpanspec generated -- left for informational purposes...
-#Requires:       perl(Class::MethodMaker) >= 1.02
+BuildRequires:  perl(Term::ReadKey) >= 2.14
+BuildRequires:  perl(Test::Exception)
+BuildRequires:  perl(Test::More)
+Requires:       perl(Class::MethodMaker) >= 1.02
 Requires:       perl(Term::ReadKey) >= 2.14
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
@@ -37,36 +36,38 @@ done, and maybe an estimate at how long remains.
 
 %prep
 %setup -q -n Term-ProgressBar-%{version}
+for file in examples/*.pl; do
+    sed -i 's/\r//' ${file}
+done
 
 %build
-%{__perl} Build.PL installdirs=vendor
-./Build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
-./Build install destdir=%{buildroot} create_packlist=0
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
 %{_fixperms} %{buildroot}/*
 
 %check
 # nix signature check if we're not building with network tests...
 %{!?_with_network_tests: rm t/0-signature.t }
-
 # if we are, get rid of files not in MANIFEST
 %{?_with_network_tests: rm debug*.list }
-
-./Build test
-
-%clean
-rm -rf %{buildroot}
+make test
 
 %files
-%defattr(-,root,root,-)
 %doc BUGS Changes README examples/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Fri Jan 13 2012 Petr Šabata <contyk at redhat.com> - 2.10-1
+- 2.10 bump, switch to EE::MM
+- Spec cleanup
+
 * Fri Jun 24 2011 Marcela Mašláňová <mmaslano at redhat.com> - 2.09-11
 - Perl mass rebuild
 
diff --git a/sources b/sources
index c1e98d2..ea96955 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-440dfd04fe51a12d314e9adf2445f04a  Term-ProgressBar-2.09.tar.gz
+e8c6a2c779440698f7fbd2b024fae0ac  Term-ProgressBar-2.10.tar.gz



More information about the perl-devel mailing list