9a1c18
# We need to patch the test suite if we have an old version of Test::More
9a1c18
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
9a1c18
# Run extra test
9a1c18
%if ! (0%{?rhel})
9a1c18
%bcond_without perl_Package_Generator_enables_extra_test
9a1c18
%else
9a1c18
%bcond_with perl_Package_Generator_enables_extra_test
9a1c18
%endif
9a1c18
9a1c18
Name:		perl-Package-Generator
9a1c18
Version:	1.106
9a1c18
Release:	12%{?dist}
9a1c18
Summary:	Generate new packages quickly and easily
9a1c18
License:	GPL+ or Artistic
9a1c18
Group:		Development/Libraries
9a1c18
URL:		http://search.cpan.org/dist/Package-Generator/
9a1c18
Source0:	http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Package-Generator-%{version}.tar.gz
9a1c18
Patch1:		Package-Generator-1.106-old-Test::More.patch
9a1c18
BuildArch:	noarch
9a1c18
# Module Build
9a1c18
BuildRequires:	perl-generators
9a1c18
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.30
9a1c18
# Module
9a1c18
BuildRequires:	perl(Carp)
9a1c18
BuildRequires:	perl(Scalar::Util)
9a1c18
# Test Suite
9a1c18
BuildRequires:	perl(Params::Util) >= 0.11
9a1c18
BuildRequires:	perl(Test::More) >= 0.47
9a1c18
%if %{with perl_Package_Generator_enables_extra_test}
9a1c18
# Extra Tests
9a1c18
BuildRequires:	perl(Test::Pod)
9a1c18
%endif
9a1c18
# Runtime
9a1c18
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
9a1c18
9a1c18
%description
9a1c18
This module lets you quickly and easily construct new packages. It gives
9a1c18
them unused names and sets up their package data, if provided.
9a1c18
9a1c18
%prep
9a1c18
%setup -q -n Package-Generator-%{version}
9a1c18
9a1c18
# We need to patch the test suite if we have an old version of Test::More
9a1c18
%if %{old_test_more}
9a1c18
%patch1
9a1c18
%endif
9a1c18
9a1c18
%build
9a1c18
perl Makefile.PL INSTALLDIRS=vendor
9a1c18
make %{?_smp_mflags}
9a1c18
9a1c18
%install
9a1c18
rm -rf %{buildroot}
9a1c18
make pure_install DESTDIR=%{buildroot}
9a1c18
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
9a1c18
%{_fixperms} %{buildroot}
9a1c18
9a1c18
%check
9a1c18
make test
9a1c18
%if %{with perl_Package_Generator_enables_extra_test}
9a1c18
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
9a1c18
%endif
9a1c18
9a1c18
%files
9a1c18
%doc Changes LICENSE README
9a1c18
%{perl_vendorlib}/Package/
9a1c18
%{_mandir}/man3/Package::Generator.3pm*
9a1c18
%{_mandir}/man3/Package::Reaper.3pm*
9a1c18
9a1c18
%changelog
9a1c18
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.106-12
9a1c18
- Rebuild with enable hardening (bug #1636329)
9a1c18
9a1c18
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.106-11
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9a1c18
9a1c18
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.106-10
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9a1c18
9a1c18
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.106-9
9a1c18
- Perl 5.26 rebuild
9a1c18
9a1c18
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.106-8
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9a1c18
9a1c18
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.106-7
9a1c18
- Perl 5.24 rebuild
9a1c18
9a1c18
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.106-6
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9a1c18
9a1c18
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.106-5
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9a1c18
9a1c18
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.106-4
9a1c18
- Perl 5.22 rebuild
9a1c18
9a1c18
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.106-3
9a1c18
- Perl 5.20 rebuild
9a1c18
9a1c18
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.106-2
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9a1c18
9a1c18
* Sun Dec 29 2013 Paul Howarth <paul@city-fan.org> - 1.106-1
9a1c18
- Update to 1.106
9a1c18
  - Update github links
9a1c18
  - Typo fix
9a1c18
- Update patch for building with Test::More < 0.88
9a1c18
9a1c18
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.105-3
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9a1c18
9a1c18
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.105-2
9a1c18
- Perl 5.18 rebuild
9a1c18
9a1c18
* Mon Jul  8 2013 Paul Howarth <paul@city-fan.org> - 1.105-1
9a1c18
- Update to 1.105
9a1c18
  - Repackage, update bug tracker
9a1c18
  - Drop pod tests
9a1c18
- Add patch to support building with Test::More < 0.88
9a1c18
- Classify buildreqs by usage
9a1c18
- Explicitly run the extra tests
9a1c18
9a1c18
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103-15
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9a1c18
9a1c18
* Fri Aug 24 2012 Paul Howarth <paul@city-fan.org> - 0.103-14
9a1c18
- Drop EPEL-4 support
9a1c18
- Drop %%defattr, redundant since rpm 4.4
9a1c18
- Don't need to remove empty directories from the buildroot
9a1c18
- BR: perl(File::Spec)
9a1c18
9a1c18
* Tue Aug 14 2012 Petr Pisar <ppisar@redhat.com> - 0.103-13
9a1c18
- Specify all dependencies
9a1c18
- Package LICENSE
9a1c18
9a1c18
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103-12
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9a1c18
9a1c18
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.103-11
9a1c18
- Perl 5.16 re-rebuild of bootstrapped packages
9a1c18
9a1c18
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.103-10
9a1c18
- Perl 5.16 rebuild
9a1c18
9a1c18
* Tue Feb  7 2012 Paul Howarth <paul@city-fan.org> - 0.103-9
9a1c18
- Don't BR: perl(Test::Perl::Critic) if we're bootstrapping
9a1c18
9a1c18
* Wed Feb  1 2012 Paul Howarth <paul@city-fan.org> - 0.103-8
9a1c18
- Run Perl::Critic test in %%check too
9a1c18
- BR: perl(Test::Perl::Critic)
9a1c18
- BR: perl(Carp) and perl(Symbol), which might be dual-lived
9a1c18
- Use DESTDIR rather than PERL_INSTALL_ROOT
9a1c18
- Drop version requirement for perl(ExtUtils::MakeMaker); older versions work
9a1c18
  without problems, e.g. version 6.17 on EL-4
9a1c18
- Make %%files list more explicit
9a1c18
- Don't use macros for commands
9a1c18
- Use tabs
9a1c18
9a1c18
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103-7
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9a1c18
9a1c18
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.103-6
9a1c18
- Perl mass rebuild
9a1c18
9a1c18
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.103-5
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9a1c18
9a1c18
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.103-4
9a1c18
- Rebuild to fix problems with vendorarch/lib (#661697)
9a1c18
9a1c18
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.103-3
9a1c18
- Mass rebuild with perl-5.12.0
9a1c18
9a1c18
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.103-2
9a1c18
- Rebuild against perl 5.10.1
9a1c18
9a1c18
* Tue Aug 11 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.103-1
9a1c18
- Auto-update to 0.103 (by cpan-spec-update 0.01)
9a1c18
- Added a new br on perl(ExtUtils::MakeMaker) (version 6.42)
9a1c18
9a1c18
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.102-4
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9a1c18
9a1c18
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.102-3
9a1c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9a1c18
9a1c18
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.102-2
9a1c18
- Rebuild for perl 5.10 (again)
9a1c18
9a1c18
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.102-1
9a1c18
- Rebuild for new perl
9a1c18
- Update to 0.102
9a1c18
- Fix license tag
9a1c18
9a1c18
* Wed Sep 06 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.100-2
9a1c18
- Bump
9a1c18
9a1c18
* Tue Sep 05 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.100-1
9a1c18
- Specfile autogenerated by cpanspec 1.69.1