33c28d
# Run optional test
33c28d
%bcond_without perl_Sub_Install_enables_optional_test
33c28d
33c28d
Name:           perl-Sub-Install
33c28d
Version:        0.928
33c28d
Release:        15%{?dist}
33c28d
Summary:        Install subroutines into packages easily
33c28d
License:        GPL+ or Artistic
33c28d
Group:          Development/Libraries
33c28d
URL:            http://search.cpan.org/dist/Sub-Install/
33c28d
Source0:        http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Install-%{version}.tar.gz
33c28d
BuildArch:      noarch
33c28d
# ================= Module Build ============================
33c28d
BuildRequires:  perl-interpreter
33c28d
BuildRequires:  perl-generators
33c28d
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
33c28d
BuildRequires:  perl(strict)
33c28d
BuildRequires:  perl(warnings)
33c28d
# ================= Run-time ================================
33c28d
BuildRequires:  perl(B)
33c28d
BuildRequires:  perl(Carp)
33c28d
BuildRequires:  perl(Scalar::Util)
33c28d
# ================= Test Suite ==============================
33c28d
BuildRequires:  perl(Test::More) >= 0.88
33c28d
%if %{with perl_Sub_Install_enables_optional_test} && !%{defined perl_bootstrap}
33c28d
# ================= Optional Tests ==========================
33c28d
# Test::Output -> Sub::Exporter -> Sub::Install
33c28d
BuildRequires:  perl(Test::Output)
33c28d
%endif
33c28d
# ================= Run-time ================================
33c28d
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
33c28d
Requires:       perl(B)
33c28d
33c28d
%description
33c28d
This module makes it easy to install subroutines into packages without the
33c28d
unsightly mess of no strict or typeglobs lying about where just anyone
33c28d
can see them.
33c28d
33c28d
%prep
33c28d
%setup -q -n Sub-Install-%{version}
33c28d
33c28d
%build
33c28d
perl Makefile.PL INSTALLDIRS=vendor
33c28d
make %{?_smp_mflags}
33c28d
33c28d
%install
33c28d
rm -rf %{buildroot}
33c28d
make pure_install DESTDIR=%{buildroot}
33c28d
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
33c28d
%{_fixperms} %{buildroot}
33c28d
33c28d
%check
33c28d
make test
33c28d
33c28d
%files
33c28d
%doc Changes LICENSE README
33c28d
%{perl_vendorlib}/Sub/
33c28d
%{_mandir}/man3/Sub::Install.3pm*
33c28d
33c28d
%changelog
33c28d
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-15
33c28d
- Rebuild with enable hardening (bug #1636329)
33c28d
33c28d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.928-14
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
33c28d
33c28d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.928-13
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
33c28d
33c28d
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-12
33c28d
- Perl 5.26 re-rebuild of bootstrapped packages
33c28d
33c28d
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-11
33c28d
- Perl 5.26 rebuild
33c28d
33c28d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.928-10
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
33c28d
33c28d
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-9
33c28d
- Perl 5.24 re-rebuild of bootstrapped packages
33c28d
33c28d
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-8
33c28d
- Perl 5.24 rebuild
33c28d
33c28d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.928-7
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
33c28d
33c28d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.928-6
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
33c28d
33c28d
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-5
33c28d
- Perl 5.22 re-rebuild of bootstrapped packages
33c28d
33c28d
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-4
33c28d
- Perl 5.22 rebuild
33c28d
33c28d
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-3
33c28d
- Perl 5.20 re-rebuild of bootstrapped packages
33c28d
33c28d
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.928-2
33c28d
- Perl 5.20 rebuild
33c28d
33c28d
* Fri Jun 27 2014 Paul Howarth <paul@city-fan.org> - 0.928-1
33c28d
- Update to 0.928
33c28d
  - Cope with subroutines with spaces in their names when catching warnings
33c28d
  - Don't assume that the source sub isn't blessed in tests (!)
33c28d
33c28d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.927-3
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
33c28d
33c28d
* Wed Nov 20 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.927-2
33c28d
- Update BRs
33c28d
33c28d
* Wed Nov 13 2013 Robin Lee <cheeselee@fedoraproject.org> - 0.927-1
33c28d
- Update to 0.927
33c28d
33c28d
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.926-10
33c28d
- Perl 5.18 re-rebuild of bootstrapped packages
33c28d
33c28d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.926-9
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
33c28d
33c28d
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 0.926-8
33c28d
- Perl 5.18 rebuild
33c28d
33c28d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.926-7
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
33c28d
33c28d
* Thu Aug 23 2012 Paul Howarth <paul@city-fan.org> - 0.926-6
33c28d
- Be more selective about what to exclude when bootstrapping
33c28d
- Don't use macros for commands
33c28d
- Drop %%defattr, redundant since rpm 4.4
33c28d
- Don't need to remove empty directories from the buildroot
33c28d
- Make %%files list more explicit
33c28d
- Fix typo in %%description
33c28d
33c28d
* Mon Aug 20 2012 Petr Pisar <ppisar@redhat.com> - 0.926-5
33c28d
- Specify all dependencies
33c28d
33c28d
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.926-4
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
33c28d
33c28d
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.926-3
33c28d
- Perl 5.16 re-rebuild of bootstrapped packages
33c28d
33c28d
* Sun Jun 10 2012 Petr Pisar <ppisar@redhat.com> - 0.926-2
33c28d
- Perl 5.16 rebuild
33c28d
33c28d
* Mon Mar 12 2012 Robin Lee <cheeselee@fedoraproject.org> - 0.926-1
33c28d
- Update to 0.926
33c28d
33c28d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.925-10
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
33c28d
33c28d
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.925-9
33c28d
- Perl mass rebuild
33c28d
- add perl_bootstrap macro
33c28d
- add missing BR ExtUtils::MakeMaker
33c28d
33c28d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.925-8
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
33c28d
33c28d
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.925-7
33c28d
- 661697 rebuild for fixing problems with vendorach/lib
33c28d
33c28d
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.925-6
33c28d
- Mass rebuild with perl-5.12.0
33c28d
33c28d
* Thu Feb 25 2010 Marcela Mašláňová <mmaslano@redhat.com> - 0.925-5
33c28d
- add license
33c28d
33c28d
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.925-4
33c28d
- rebuild against perl 5.10.1
33c28d
33c28d
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.925-3
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
33c28d
33c28d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.925-2
33c28d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
33c28d
33c28d
* Tue Feb 03 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.925-1
33c28d
- update to 0.925
33c28d
33c28d
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.924-3
33c28d
- Rebuild for perl 5.10 (again)
33c28d
33c28d
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.924-2
33c28d
- rebuild for new perl
33c28d
- fix license tag
33c28d
33c28d
* Wed Nov 22 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.924-1
33c28d
- update to 0.924
33c28d
- add perl(Test::Perl::Critic) to BR's
33c28d
33c28d
* Wed Sep 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.922-2
33c28d
- bump
33c28d
33c28d
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.922-1
33c28d
- Specfile autogenerated by cpanspec 1.69.1.