[perl-Tree-Simple-VisitorFactory/f21] 0.12 bump; Modernize spec file

Jitka Plesnikova jplesnik at fedoraproject.org
Mon Nov 24 11:43:37 UTC 2014


commit 55a54706cd23792f4d5d55d798b72a399a1caf92
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date:   Mon Nov 24 12:43:09 2014 +0100

    0.12 bump; Modernize spec file

 .gitignore                           |    1 +
 perl-Tree-Simple-VisitorFactory.spec |   45 ++++++++++++++++------------------
 sources                              |    2 +-
 3 files changed, 23 insertions(+), 25 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 8b15f64..350c33c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 Tree-Simple-VisitorFactory-0.10.tar.gz
+/Tree-Simple-VisitorFactory-0.12.tgz
diff --git a/perl-Tree-Simple-VisitorFactory.spec b/perl-Tree-Simple-VisitorFactory.spec
index ad49a04..4bd3267 100644
--- a/perl-Tree-Simple-VisitorFactory.spec
+++ b/perl-Tree-Simple-VisitorFactory.spec
@@ -1,26 +1,28 @@
 Name:           perl-Tree-Simple-VisitorFactory
-Version:        0.10
-Release:        17%{?dist}
+Version:        0.12
+Release:        1%{?dist}
 Summary:        Factory object for dispensing Visitor objects
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Tree-Simple-VisitorFactory/
-Source0:        http://www.cpan.org/authors/id/S/ST/STEVAN/Tree-Simple-VisitorFactory-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/Tree-Simple-VisitorFactory-%{version}.tgz
 BuildArch:      noarch
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
-# core
+# Core
 BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Test::More)
-# cpan
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time
+BuildRequires:  perl(base)
+BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(Tree::Simple) >= 1.12
-# testing
+BuildRequires:  perl(Tree::Simple::Visitor)
+# Testing
 BuildRequires:  perl(Test::Exception) >= 0.15
-BuildRequires:  perl(Test::Pod), perl(Test::Pod::Coverage)
-
-# "use base"
-Requires:       perl(Tree::Simple::Visitor)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod) >= 1.14
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
 
 %description
 This package contains a collection of Tree::Simple::Visitor::* objects,
@@ -30,32 +32,27 @@ and a factory for easily creating instances of them.
 %setup -q -n Tree-Simple-VisitorFactory-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{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
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README t/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Mon Nov 24 2014 Jitka Plesnikova <jplesnik at redhat.com> - 0.12-1
+- 0.12 bump
+- Modernize spec file, update URL
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.10-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index e29d316..7dfe4cf 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ff7803a452e7fb188c71048cc2f69f6e  Tree-Simple-VisitorFactory-0.10.tar.gz
+9a58704eabb853cb38c1dd9cb88c3a64  Tree-Simple-VisitorFactory-0.12.tgz


More information about the scm-commits mailing list