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