# Note that our versioning is a touch different here... I'm choosing to stick # with the version as reported by cpan directly, for a number of reasons: 1) # it's what v0.0.3 translates into when qv{}'ed, 2) it's easier on rpm, 3) it's # what the author intended by versioning it that way within the CPAN system. # note we have a CPAN version != the version embedded in the tarball %define tarver v0.0.3 Name: perl-Module-Starter-PBP Version: 0.000003 Release: 12%{?dist} Summary: Create a module as recommended in "Perl Best Practices" Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Module-Starter-PBP # note different macro! Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Module-Starter-PBP-%{tarver}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ## core BuildRequires: perl BuildRequires: perl(Test::More), perl(ExtUtils::MakeMaker) ## non-core BuildRequires: perl(Module::Starter), perl(version), perl(Module::Build) BuildRequires: perl(Test::Pod::Coverage), perl(Test::Pod) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # not picked up as it's a "use base" situation... Requires: perl(Module::Starter::Simple) %description This module implements a simple approach to creating modules and their support files, based on the Module::Starter approach. When used as a Module::Starter plugin, this module allows you to specify a simple directory of templates which are filled in with module-specific information, and thereafter form the basis of your new module. The default templates that this module initially provides are based on the recommendations in the book "Perl Best Practices". %prep %setup -q -n Module-Starter-PBP-%{tarver} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README Changes %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.000003-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.000003-11 - 661697 rebuild for fixing problems with vendorach/lib * Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.000003-10 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.000003-9 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.000003-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.000003-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.000003-6 Rebuild for new perl * Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.000003-5 - bump for mass rebuild * Tue Aug 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.000003-4 - bump for build & release * Tue Aug 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.000003-3 - added explicit br's on perl(Test::More) * Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.000003-2 - add explict requires on perl(Module::Starter::Simple) * Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.000003-1 - Initial spec file for F-E